centos5

Linux - Yum Install GCC - Missing Kernel-headers

强颜欢笑 提交于 2020-06-24 02:58:10
问题 When ever i try to install GCC on my linux (centos) It comes back with missing glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates) glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates) Error: Missing Dependency: kernel-headers >= 2.2

Run wkhtmltopdf on CentOS 5.5 32bit

对着背影说爱祢 提交于 2020-02-06 15:45:08
问题 I'm trying to run wkhtmltopdf on CentOS 5.5 32bit version, I'm running that software on a VPS. Somehow I cannot execute the binary, this is what I get: -bash-3.2# ./wkhtmltopdf-i386 http://www.google.nl/ test.pdf Segmentation fault I haven't got a clue to what the problem might be, the file has the proper owner and it's permissions are 777. The only thing I can think of making this problem go away is installing the X11 packages on my VPS, I'm not sure if that will solve the problem though.

top command first iteration always returns the same result

流过昼夜 提交于 2020-01-11 05:26:09
问题 When running top -b -n 1, the command always returns the same CPU values. Consider the following test run 5 times in succession: [user@server ~]$ top -b -n 5 -d.2 | grep "Cpu(s)" Cpu(s): 18.5%us, 10.0%sy, 0.0%ni, 67.0%id, 4.2%wa, 0.0%hi, 0.2%si, 0.1%st Cpu(s): 39.8%us, 27.7%sy, 0.0%ni, 31.3%id, 0.0%wa, 0.0%hi, 1.2%si, 0.0%st Cpu(s): 39.0%us, 35.4%sy, 0.0%ni, 23.2%id, 0.0%wa, 0.0%hi, 1.2%si, 1.2%st Cpu(s): 41.2%us, 34.1%sy, 0.0%ni, 15.3%id, 1.2%wa, 0.0%hi, 2.4%si, 5.9%st Cpu(s): 59.0%us, 30.1

pg_config, ruby pg, postgresql 9.0 problem after upgrade, centos 5

不打扰是莪最后的温柔 提交于 2020-01-10 19:28:18
问题 After upgrade postgresql 8.1 to 9.0 ive noticed issues with libraries dependency. Postgresql works fine (connection, queries). yum list postgresql* Installed Packages postgresql.i386 9.0.0-1PGDG.el5 installed postgresql-debuginfo.i386 9.0.0-1PGDG.el5 installed postgresql-devel.i386 9.0.0-1PGDG.el5 installed postgresql-libs.i386 9.0.0-1PGDG.el5 installed postgresql-odbcng.i386 0.90.101-2.el5 installed postgresql-plruby.i386 0.5.1-5.el5 installed postgresql-server.i386 9.0.0-1PGDG.el5 install

Reason for ENOMEM failure to create threads?

北战南征 提交于 2020-01-04 06:09:10
问题 I have an application that is using pthread_create() and pthread_detach() in the main thread and later pthread_exit() in the child thread. After around 54 pthread_create() calls that have each been paired with a subsequent pthread_detach() and then pthread_exit() the pthread_create() fails. It is ENOMEM failure "Out of memory". What might cause pthread_exit() to not be freeing up the memory of the old threads and causing my application to leak memory and eventually run out? This is running on

Reason for ENOMEM failure to create threads?

核能气质少年 提交于 2020-01-04 06:08:07
问题 I have an application that is using pthread_create() and pthread_detach() in the main thread and later pthread_exit() in the child thread. After around 54 pthread_create() calls that have each been paired with a subsequent pthread_detach() and then pthread_exit() the pthread_create() fails. It is ENOMEM failure "Out of memory". What might cause pthread_exit() to not be freeing up the memory of the old threads and causing my application to leak memory and eventually run out? This is running on

How to specify which version of perl to use on CentOS

只谈情不闲聊 提交于 2020-01-01 03:23:09
问题 I am running CentOS 5.4 which only has version 5.8 of perl available by default, and I have a program which requires perl 5.10, so I compiled perl 5.10 on CentOS. How do I specify which perl I want to run the program with because the perl command uses 5.8 by default. 回答1: I add my voice to recommending against messing with the system perl at all. No one mentioned App::perlbrew yet. It allows you to have several versions of Perl and switch between them easily. This can be done manually of

measure CPU usage per second of a dynamically linked library

放肆的年华 提交于 2019-12-25 01:43:49
问题 I have a sample application which uses a dynamically linked library library.so . I was measuring CPU usage of the sample application with the top command. But it shows CPU usage of both sample app and library.so per second. But I want to see the CPU usage of only the library.so . Is there anyway to do this? I heard its achievable with htop but could not find out how. I used the tree view but it shows several processes as the sample app process. I could not understand which one is library.so .

Append timestamp to log entries generated from AWK script

Deadly 提交于 2019-12-25 01:32:53
问题 The script already logs the output to a file called "server_mon.txt. I would like to append a timestamp to each entry for the purpose of tracking server activity. I now understand that standard AWK doesn't have an inherent time/date function that can easily be assigned to a variable. I attempted the following but didn't work for me: tail -fn0 /var/log/user | /usr/bin/awk ' BEGIN { str = "date +%Y-%m-%d"; str = | getline date; close str; The following is my full script so far: #!/bin/bash PATH

PHPUnit 3.6 PHP 5.2.7 PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /usr/local/bin/phpunit on line 16

女生的网名这么多〃 提交于 2019-12-24 17:09:22
问题 In our Development server, we have php 5.2 installed. I was asked to install phpunit on it. I followed the instruction on phpunit site as below: http://phpunit.de/manual/3.6/en/installation.html Note PHPUnit 3.6 requires PHP 5.2.7 (or later) but PHP 5.3.9 (or later) is highly recommended. PHP_CodeCoverage, the library that is used by PHPUnit to collect and process code coverage information, depends on Xdebug 2.0.5 (or later) but Xdebug 2.1.3 (or later) is highly recommended. The following two