If you are seeing this in your bash (SSH), It makes it tough to navigate through SSH since it doesn't give you much information. [code]-bash-3.2#[/code] To fix that, you can simply type this in your SSH when logged in: [code]PS1="[\u@\h \W]\$ "[/code]
If you are like me, you may be doing this to install essential build libraries to compile something from source [code]# wrong method yum install build-essential[/code] :) Build essential is a Ubuntu / Debian package. On CentOS, you need to do this [code]yum groupinstall "Development Tools"[/code] Warning: This will install all development tools approx 49 packages closing to 65MB
Its been about almost more then two years since I have been playing with CentOS on many different platforms etc. Its very stable but on the other hand, PHP/MySQL updates are very hard to get and still PHP is 5.1.6. I tried EPEL repo and it updated PHP to 5.3.1 but still there were conflicts with stuff and many core packages. So, I thought why not move to Ubuntu since it has just announced 10.04LTS (Long Term Support) in April 2010. Folks at iWeb were really nice to do a reinstall without any charges and also process a memory upgrade request at an amazing 50% discount. Ubuntu 10.04 LTS Apache 2 version is 2.2.14 PHP version is 5.3.2 MySQL version is 5.1.41-3ubuntu12 SVN (Subversion) version is 1.6.6 As a comparison…
Are you getting the following error while updating any package in pear? pear.php.net is using a unsupported protocal - This should never happen. I got this error right after I upgraded PHP from 5.2 to 5.9 (using CentOS-Testing repo). To resolve this situation, do this. [code lang="plain"]rm -fr /usr/share/pear/.channels[/code] and then do this [code lang="plain"]pear update-channels[/code] It should now give you the following output [code lang="plain"]Updating channel "doc.php.net" Update of Channel "doc.php.net" succeeded Updating channel "pear.php.net" Update of Channel "pear.php.net" succeeded Updating channel "pecl.php.net" Update of Channel "pecl.php.net" succeeded[/code] That's it, your issue is resolved.
All my technical life, I knew and followed this simple rule New updates to any application or component are meant to improve and fix the bugs present in it. Downloading new updates ensures that you system is up-to-update, has fixes to all those bugs you have been getting annoyed with and more stable. Unfortunately not every IT department thinks that, especially the one I am facing at work. According to them, the new updates should only be applied IF and only IF they offer some new functionality (duhh!). Hello! what happened to the bug-fixes that are promised with these updates? (more…)
Are you getting this? There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. if so, just do this [sourcecode lang="plain"]yum install yum-utils[/sourcecode] and then run [sourcecode lang="plain"]yum-complete-transaction[/sourcecode]
If you are using [sourcecode lang="plain"]yum update[/sourcecode] on CentOS and getting the following errors Missing Dependency: /usr/lib/python2.4 is needed by package libxml2-python-2.6.26-184.108.40.206.i386 (installed) gamin-python-0.1.7-8.el5.i386 from installed has depsolving problems Missing Dependency: /usr/lib/python2.4 is needed by package gamin-python-0.1.7-8.el5.i386 (installed) Error: Missing Dependency: /usr/lib/python2.4 is needed by package libxml2-python-2.6.26-220.127.116.11.i386 (installed) Error: Missing Dependency: /usr/lib/python2.4 is needed by package gamin-python-0.1.7-8.el5.i386 (installed) Don't panic, the solution is simple ... just run the following command [sourcecode lang="plain"]yum clean all[/sourcecode] Then do [sourcecode lang="plain"]yum update[/sourcecode]
If you want to install PHP 5.2.x instead of the PHP 5.1.6 offered with default CentOSPlus repo. Please consider installing the utterramblings repo. Setting up this repo is a breeze ... just follow these steps (more…)