How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

August 13, 2012

Failed to download pecl/ssh2 within preferred state “stable”, latest release is version 0.11.3

Filed under: Linux — Tags: , , , , — admin @ 11:49 am

Today I was trying to upgrade a php on centos 5.4 from php 5.2 to php 5.3
The upgrade was run using

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic update php

Well everythins was ok, however after upgrade I see that if I run php -v i got some errors, memcache and ssh2 was installed using pecl and they should be reinstalled.
Well the pecl install memcache work well however
pecl install ssh2
return this error
Failed to download pecl/ssh2 within preferred state “stable”, latest release is version 0.11.3,

Well I did manage to install it by using
pecl install “channel://pecl.php.net/ssh2-0.11.3”

Regards

July 30, 2012

PHP Fatal error: Class ‘PHPUnit_Extensions_Database_TestCase’ not found

Filed under: Linux — Tags: , , , — admin @ 10:05 am

Well today I was playing with continous integration jenkins method, and I have this error at some point. First I was thinking that I miss some files from repositories however, from what I see it was missing DbUnit.

So to install it just run
pear -d preferred_state=beta install phpunit/DbUnit

Regards

June 8, 2012

ERROR: libmp3lame >= 3.98.3 not found

Filed under: Linux — Tags: , , — admin @ 10:29 am

Well if you have this error when you try to install ffmpeg then you must download lame from sourceforge

wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?r=http%3A%2F%2Fffmpeg.zeranoe.com%2Fforum%2Fviewtopic.php%3Ff%3D5%26t%3D94&ts=1339140293&use_mirror=ignum

After
tar -zxvf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure
make
make install

Don’t forget about ldconfig

June 7, 2012

Run a script as a different user

Filed under: Linux — Tags: , , , , — admin @ 12:16 pm

Well if you want to run a script as diferent user you should try to run with su comand.
If you will run like this

su - x -c "/path/script.sh"
after the script is run the su comand return at your user.

June 1, 2012

How to change my screen resolution using Linux terminal

Filed under: Linux — Tags: , , — admin @ 11:11 am

Hello
Well my computer started with another resolution then my monitor and I could not see the menu.
So right klick on desktop, opened a terminal, from there run
xrandr -s 800x600
This will set 800×600, now you may see your menu and modify acordly with your monitor.
If you want to see al resolution available you should run simply
xrandr

« Newer PostsOlder Posts »

Powered by WordPress