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 an trying to follow the procedure as given in the installation guide http://opencv.willowgarage.com/wiki/InstallGuide_Linux While trying do Path configuration I tried creating a opencv.conf file in /etc/ld.so.conf.d/ containing a single line /usr/local/lib . But as soon as I save it I get error message:

vineet@vineet-XPS-M1530 /etc/ld.so.conf.d $ sudo gedit opencv.conf

(gedit:3765): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.L45S9V': No such file or directory

(gedit:3765): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:3765): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.U5FA9V': No such file or directory

(gedit:3765): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:3765): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.2ITB9V': No such file or directory

(gedit:3765): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
vineet@vineet-XPS-M1530 /etc/ld.so.conf.d $ 

I am new to linux. Please tell me how to do it.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

That is because you are using sudo to open a file using a graphical text editor.

When you close geditit will try to save the most recent file (the one you are editing) in to a recent edited files history. Because that file does not exist it fails.

The solution for that is to use gksudo which is made to open graphical applications with sudo rights and user configuration.

Open the file with gksudo gedit opencv.conf instead of sudo gedit opencv.conf.

share|improve this answer
    
if i dont use sudo then i get an error in the editor that I cannot save it –  bubble Feb 16 '12 at 16:16
    
Please let me know what to type in terminal –  bubble Feb 16 '12 at 16:17
    
Edited the answer for more information and steps to take. –  Bruno Pereira Feb 16 '12 at 16:17

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.