[ubuntu] WARNING gnome-keyring in lubuntu

If you have met the same problem, this maybe help.

Background :

I installed phpunit in my ubuntu 12.04(the os is lubuntu), the installation passed quite well, but when I launch the command in termianl, I got always this warning :

$ phpunit --version
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-xAGrk8/pkcs11: No such file or directory
PHPUnit 4.4.5 by Sebastian Bergmann.

After a google search, I got the answer, this warning is because several gnome services are not normally running when you are logged into the desktop system such as xubuntu, in my case, it was lubuntu.

The solution is :
Open the file ~/.bashrc, of course you have the Bourne shell. ( ~/.cshrc file if c shell)
Add the configuration (for Bourne shell):

unset GNOME_KEYRING_CONTROL

Or
Add the configuration (for Bourne shell):

unsetenv GNOME_KEYRING_CONTROL

And don’t forget to restart your config just by typing :

source ~/.bashrc

Ref from : askubuntu.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s