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 have manually built numpy, scipy, matplotlib etc - without root privilages. Now when I'm trying to install anything related - synaptic suggest me to install all the libs system wide. Is there a way I can tell synaptic to use the locally installed libs?

Edit:

All libs installed in the standard place:

~/.local/lib/python2.7
share|improve this question

2 Answers 2

up vote 2 down vote accepted

No you can't.

The Debian/Ubuntu package management (APT) has no control over your user-specific installed libraries. This is intentional. Intentional why? This would break security in a certain aspect - local users would have the ability to 'own' the system libraries.

In case you need specific versions of Python libraries I would recommend using pip to manage them in your local (home) directories. Also consider building your own .deb packages in case you want to distribute them in case other stuff doesn't break on this being installed system-wide.

share|improve this answer

try copying the libs to the global directory. To do this type

sudo cp /path/to/lib /usr/lib

do this for every lib you want to copy.

share|improve this answer
    
I would recommend against using this. It will confuse your package management and possibly break stuff. Don't touch stuff in your /usr/lib directory, but use /usr/local if you really need to put it in a system-wide place. –  gertvdijk Jan 16 '13 at 13:22
    
Any way -- putting local things in system wide dir -- doesn't make synaptic aware of that stuff. –  Adobe Jan 16 '13 at 13:53
    
APT/Dpkg will not be aware of any file unless you've installed it using a package. No matter where you put it. Overwriting files in /usr/lib is generally harmful as it might break other stuff (no dependency checks for you!), whereas stuff in /usr/local is meant for local changes to your system. –  gertvdijk Jan 17 '13 at 1:50

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.