I was trying to run pip install libarchive
in a virtualenv, but it failed:
(.env) $ pip install libarchive
Downloading/unpacking libarchive
Downloading libarchive-0.4.3.tar.gz
Running setup.py egg_info for package libarchive
Requirement already satisfied (use --upgrade to upgrade): nose in /var/tmp/.env/lib/python2.6/site-packages (from libarchive)
Installing collected packages: libarchive
Running setup.py install for libarchive
Verifying that the library is accessible.
Library can not be loaded: libarchive.so: cannot open shared object file: No such file or directory
error: None
Complete output from command /var/tmp/.env/bin/python -c "import setuptools;
__file__='/var/tmp/.env/build/libarchive/setup.py'; execfile('/var/tmp/.env/build/libarchive/setup.py')" install --single-version-externally-managed --record /tmp/pip-1hz9vY-record/install-record.txt --install-headers /var/tmp/.env/include/site/python2.6:
running install
Verifying that the library is accessible.
Library can not be loaded: libarchive.so: cannot open shared object file: No such file or directory
error: None
----------------------------------------
Command /var/tmp/.env/bin/python -c "import setuptools; __file__='/var/tmp/.env/build/libarchive/setup.py'; execfile('/var/tmp/.env/build/libarchive/setup.py')" install --single-version-externally-managed --record /tmp/pip-1hz9vY-record/install-record.txt --install-headers /var/tmp/.env/include/site/python2.6 failed with error code 1
Storing complete log in /home/me/.pip/pip.log
The error message is not very helpful, but I guess the problem is that the binary package libarchive13
(or, for Debian Squeeze, libarchive1
) is not installed.
I do not have installation privileges (much less root) on this system, and need to be able to deploy to systems where users are in a similar predicament. Is there a way to do that?
(The libarchive documentation suggests that there is a problem with the .so
symlink on Ubuntu, but this is happening on Debian -- and anyway, I was unable to find any public bug report about this dispute. Pertinent, but tangential -- I may need an additional workaround after getting the package installed.)