Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0 Installation failure #337

Closed
55jr55 opened this issue Oct 17, 2016 · 8 comments
Closed

2.0 Installation failure #337

55jr55 opened this issue Oct 17, 2016 · 8 comments

Comments

@55jr55
Copy link

55jr55 commented Oct 17, 2016

Downloaded the latest 2.0 code. OS is Linux debian 3.2.0-4-486 #1 Debian 3.2.63-2+deb7u1 i686 GNU/Linux. Python version is 2.7. Installation failed with the following:

user@debian:~/scancode/scancode-toolkit-develop$ ./scancode --help

  • Configuring ScanCode for first use...
  • Activating ...
    Command "/home/user/scancode/scancode-toolkit-develop/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-hYZQ6B/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-AlJxVa-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/scancode/scancode-toolkit-develop/include/site/python2.7/lxml" failed with error code 1 in /tmp/pip-build-hYZQ6B/lxml/

Failed to execute command:
pip install --no-allow-external --use-wheel --no-index --no-cache-dir --quiet --find-links="/home/user/scancode/scancode-toolkit-develop/thirdparty/dev" --find-links="/home/user/scancode/scancode-toolkit-develop/thirdparty/base" --find-links="/home/user/scancode/scancode-toolkit-develop/thirdparty/prod" -r "/home/user/scancode/scancode-toolkit-develop/etc/conf/base.txt". Aborting...
./scancode: line 16: /home/user/scancode/scancode-toolkit-develop/bin/scancode: No such file or directory

@steven-esser
Copy link
Contributor

Did you pull in the v2.0 changes via git? If so, try running: ./configure --clean && source configure

@pombredanne
Copy link
Member

Actually the issue is that the doc is not up to date and is missing important new required system packages that must be installed.

There are new XML-related prereqs are not fulfilled and in particular not yet documented in the README. Sorry for that.

You are actually missing these new packages:
sudo apt-get install libxml2-dev libxslt1-dev

And the README doc should be updated to :
On Debian/Ubuntu distros, you will need to install these packages first: libbz2 xzutils zlib1g libxml2-dev libxslt1-dev

And the corresponding packages should be on Centos/RedHat should now be:

On RPM-based distros, you will need to install these packages first: zlib bzip2-libs xz-libs libxml2-devel libxslt-devel

pombredanne added a commit that referenced this issue Oct 18, 2016
 * Add new package requirements for XML-related support
 * Also updated reqs for Mac and Windows (Python 2.7.12) 
   and other minor refinements
@pombredanne
Copy link
Member

@55jr55 This latest update to the README should cover it. Tell if this fixes your problem.

@yahalom5776
Copy link

@pombredanne : At least on Debian 8 (Jessie) the names of two packages are different.

Both were already installed on my system.

pombredanne added a commit that referenced this issue Oct 18, 2016
 * The packages listed for Debian Jessie/8 were incorrect.
 * Thanks to @yahalom5776 for the report and fix
@pombredanne
Copy link
Member

@yahalom5776 Thanks! I updated the README accordingly

@55jr55
Copy link
Author

55jr55 commented Oct 18, 2016

Install works with the new README instructions and the tip from yahalom5776. Thanks for the help!

@pombredanne
Copy link
Member

@55jr55 great! @yahalom5776 Thanks ++

@pombredanne
Copy link
Member

great! I am closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants