centos6

gdb can not find debug info on Centos

[亡魂溺海] 提交于 2019-12-02 03:48:09
I am trying to figure out a very strange issue. I have CentOS 6.5 system with gdb: GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) and gcc: gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-8) I have this file: #include<stdio.h> int main() { printf("OK!"); return 0; } which I compile with: gcc -o a a.c -g -O0 The file seems to be fine: $ file a a: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped But when I try to debug it, this happens: $ gdb a GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) Copyright (C) 2010 Free

yum install texinfo on CentOS 6.6 (no package)

主宰稳场 提交于 2019-12-02 00:16:12
To resolve some dependency to one of my programs, I have to install texinfo on my centos 6.6 system yum install texinfo it resulted to Setting up Install Process No package texinfo available Error: Nothing to do I don't know how to resolve this. So far, I've downloaded that binary rpm. Can anyone point me to the right direction ? texinfo is provided by the BASE repo. Available Packages Name : texinfo Arch : x86_64 Version : 4.13a Release : 8.el6 Size : 668 k Repo : base Summary : Tools needed to create Texinfo format documentation files URL : http://www.gnu.org/software/texinfo/ License :

搭建Web服务器之Step8:CentOS6.3安装MySQL5.5

痴心易碎 提交于 2019-12-01 12:43:05
1.到chinaunix下载MySQL 下载地址: http://download.chinaunix.net/download/0008000/7159.shtml 我下载的版本:mysql-5.5.22.tar.gz 2.安装之前先卸载CentOS自带的MySQL [root@localhost ~]# yum remove mysql 3.编译安装Cmake 下载cmake源码包: http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz 从共享目录移至usr目录 [root@localhost ~]# mv /mnt/hgfs/Share-CentOS/cmake-2.8.4.tar.gz /usr/cmake-2.8.4.tar.gz [root@localhost ~]# cd /usr 解压并安装cmake [root@localhost usr]# tar xzvf cmake-2.8.4.tar.gz [root@localhost usr]# cd cmake-2.8.4 [root@localhost cmake-2.8.4]# ./bootstrap --------------------------------------------- CMake 2.8.4, Copyright 2000-2009

Send a binary file (line by line) to a socket server with Netcat

假装没事ソ 提交于 2019-12-01 12:00:44
As a spin off to this Stack Overflow question I want to archieve the same except for a couple of tweaks. I want to connect to a host, send a binary file, line by line, and have a couple of seconds of delay between each line... and it must be in the same connection. The strings I want to send are mostly textbased but there are a couple of non-printable chars in the line. This is an example of a string/line I want to send (thousands of lines per file): <null>e<null><null>00326513,6598,no,8,,2z<null> The <null> value is the HEX value 0x00 . I have rewitten my question from its first entry but

Send a binary file (line by line) to a socket server with Netcat

好久不见. 提交于 2019-12-01 09:54:29
问题 As a spin off to this Stack Overflow question I want to archieve the same except for a couple of tweaks. I want to connect to a host, send a binary file, line by line, and have a couple of seconds of delay between each line... and it must be in the same connection. The strings I want to send are mostly textbased but there are a couple of non-printable chars in the line. This is an example of a string/line I want to send (thousands of lines per file): <null>e<null><null>00326513,6598,no,8,,2z

Jenkins中使用ant管理Android应用开发生命周期

夙愿已清 提交于 2019-12-01 09:09:53
软件环境 OS :CentOS 6.0 64-bit Android SDK :adt-bundle-linux-x86_64 Jenkins: 1.529 Ant: 1.8.2 配置管理 1.Jenkins中配置JDK,直接配置1.7+以上JDK。过程略。 2.把Android工程改造成具有Ant特性 (如果项目本身已经ant化了,略过此步。) 先从源码库,比如SVN检出源码,然后进行工作空间执行 # cd /myworkspace # $ANDROID_HOME/sdk/tools/android update project -p my-android-app 再把生成的文件上传到SVN。 也可以从头开始生成一个全新的空白ant特性的android工程, # $ANDROID_HOME/sdk/tools/android create project -n myandroidapp -t a ndroid-19 -p my-android-app -k pragmatic.pkg -a Pragmatic -n Project name. -t android target id,必选 -p 工程文件夹目录位置 ,必选 -k 安卓包名称即AndroidManifest.xml中<manifest package=的名称, 必选 -a 安卓Activity名称,

how to get the filename along with absolute path to the file, whenever a new file is created using inode in linux?

妖精的绣舞 提交于 2019-12-01 06:01:15
问题 I doing some experiments with my linux OS (CentOS) and I want to track all the tool logs created under the same environment, tool generates the respective logs (.log extn) for tracking these changes I wrote a perl watcher which actually monitoring the directory that I set and when the new file is created it will show at the output but This is consuming a lot of memory and CPU utilization as i have set 2sec as the sleep period. My QUESTION "Is there any better of way doing this ?" I thought of

sudo python runs old python version

混江龙づ霸主 提交于 2019-11-30 21:44:35
I have installed python 2.7.3 on CentOS 6 with thse instructions http://villaroad.com/2010/10/rolling-python-2-6-2-on-centos-5-3/ I have added aliases to bash_profile of both root and myuser for new python. Now when I write python to shell, it runs python2.7.3 correctly from both users. However, if I write sudo python it stills runs old version python2.6.6 What could be the problem? sudo doesn't use your shell to run commands, it just exec s the command directly. This means (a) there's nothing that sources root's bash_profile , so it doesn't matter what you put there, and (b) shell aliases

PHP installation conflicts on Centos6

喜夏-厌秋 提交于 2019-11-30 20:37:59
I'm new to server and linux and I ran into some problems. I'm trying to update my PHP by looking for linux commands through the net. Some commands ran perfectly but some not. I tried using this command to install php-gd since I have this error message 'Required GD library is missing'. So, I tried to run this below: yum install php-gd However, it give me this error message below: php56w-common conflicts with php-common-5.3.3-46.el6_6.x86_64 Here are some info on my server: [root@uat ~]# rpm -ql php package php is not installed [root@uat ~]# rpm -qa php\* php56w-pdo-5.6.11-1.w6.x86_64 php56w-5.6

pdo dblib on centos 6.x

泪湿孤枕 提交于 2019-11-30 17:56:44
问题 I am trying to install dblib on CentOS release 6.5 (Final) 64bit. centos 6 does not have freetds so I had to get freetds from elsewhere. freetds-devel-0.91-2.1.x86_64.rpm . using pecl to download and instal PDO DBLIB but i get stuck at make. the error i receive is as follows. [root@rajesh PDO_DBLIB-1.0]# make /bin/sh /root/php/PDO_DBLIB-1.0/libtool --mode=compile cc -I/usr/include/php/ext -DPDO_DBLIB_FLAVOUR=\"freetds\" -I. -I/root/php/PDO_DBLIB-1.0 -DPHP_ATOM_INC -I/root/php/PDO_DBLIB-1.0