Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded many portable app images from http://portablelinuxapps.org and works fine in Ubuntu 10.04. When I run it on Ubuntu 12.10 I get error like

error while loading shared libraries: libxcb-randr.so.0: cannot open shared object file: No such file or directory

I think the problem due to load error in $LD_LIBRARY_PATH LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}"
In some app images, after extracting app image, the following code fixes the problem but it break portability by adding data to system library (also pollution) and need root privilege.

echo -e '\n/home/ubuntu/pgm/usr/lib'  | sudo tee -a /etc/ld.so.conf.d/pgm.conf
sudo ldconfig

How can I fix this without using ROOT (and system files).

share|improve this question
1  
Can you first make sure the library actually exists? find / | grep libxcb-randr.so.0 –  Cheiron Aug 15 '13 at 8:44
    
Yes, all libraries are inside the image. That's why it work after extracting image and the location to /etc/ld.so.conf.d/pgm.conf fix the problem –  Prinz Aug 16 '13 at 9:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.