-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
How to use --extract on Linux-32 ? What extract archive mean? #33
Comments
@K-Rex which exact Linux distro do you run? |
My Linux environment is : Ubuntu 12.04 i386 GNU/Linux. Can you tell me what -e command do? I try to use it on WIN7 64bit. It generate housekeeper.a-extract directory (included file and platform_conf.o) But I can't understand what it do. Thx |
@K-Rex Thanks for the Linux version info. The -e or --extract option looks in the input directory and extracts any archive or compressed files found there, such as a zip file, a tarball (or in your example a static library In your example above, If you do not have archives in the directory you want to scan or you would prefer to extract these by hand before a scan, you do not need the |
@K-Rex see also
|
@K-Rex the new https://github.com/nexB/scancode-toolkit/releases/tag/v1.3.0 has experimental binaries for Linux 32 bits and improved help for the --extract option. I will make this an official release when I have you testing feedback |
I download "scancode-toolkit-1.3.0.tar.bz2" and install it, but it still can't work for Linux 32 bits. error: |
@K-Rex This was another silly un-tested mistake... (I unfortunately have no 32 bits test machine for now). |
Uh.. It still can't work on Linux-32 ./scancode -e ../../qdu_claro/yuki/tools/gpl/ Traceback (most recent call last): OSError: liblzma.so.1: cannot open shared object file: No such file or directory |
@K-Rex You need to install a Linux pre-requisite package that may not be present on Ubuntu 12.04. Use this:
|
FYI, xz-utils provides liblzma |
My OS had already install xz-utils $sudo apt-get install xz-utils It still has no liblzma.so.1 QQ |
@K-Rex: ok, I will install a VM to test run extactly on your OS |
I try to use VM to install Ubuntu 12.04 and test develop.tar.gz and latest version 1.3.1 Error Message:
Failed to execute command: Is that because PIP? My environment is : |
@K-Rex since you are trying a VM, can you try to install a 64 bits VM instead? |
If possible I would like to focus on 64 bits instead |
The tests are all passing fine on Ubuntu 12 64 bits FWIW: See https://travis-ci.org/nexB/scancode-toolkit/branches |
Well, maybe I don't need -e command. It's ok. |
@K-Rex I made a last attempt to rebuild libarchive on 32 bits, on Ubuntu 12. If this does not work, I will instead likely provide a better error handling and disable entirely 32 bits support |
But if you are using Linux in a VM, please use a 64 bits VM, rather than 32 bits |
Hey, it can work on Linux-32 bit and VM-32bits, the error is because the $LANG. |
@K-Rex Thank you for the test!. I am not entirely surprise by that... because the last error you had was really something in a core python tool called pip. |
Signed-off-by: Jono Yang <jyang@nexb.com>
* Create copyright statement from holder information Signed-off-by: Jono Yang <jyang@nexb.com>
* This is used for the case where we are starting off a project and have not yet generated requirements files Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add --init option to configure.bat * Update help text in configure and configure.bat Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update README.rst Signed-off-by: Jono Yang <jyang@nexb.com>
* Update README.rst with instructions for post-initialization usage Signed-off-by: Jono Yang <jyang@nexb.com>
* Replace references to scancode-toolkit repo with links to the skeleton repo * Remove --python option from configure.bat Signed-off-by: Jono Yang <jyang@nexb.com>
I want to use -c -l to scan, but it scan all the files like .c .h and all, I don't want to scan .svn/ directory. How can I do?
I use : ./scancode -e ../gpl/
I get this error:
Extracting archives...
[------------------------------------] 0
Traceback (most recent call last):
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/bin/scancode", line 9, in
load_entry_point('scancode-toolkit==1.2.4', 'console_scripts', 'scancode')()
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/local/lib/python2.7/site-packages/click/core.py", line 664, in call
return self.main(_args, *_kwargs)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(_args, **kwargs)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/scancode/cli.py", line 258, in scancode
extract_with_progress(abs_input, verbose)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/scancode/cli.py", line 345, in extract_with_progress
for xevent in extractions:
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/local/lib/python2.7/site-packages/click/_termui_impl.py", line 240, in next
rv = next(self.iter)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/scancode/api.py", line 44, in extract_archives
from extractcode.extract import extract
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/extractcode/extract.py", line 37, in
from extractcode import archive
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/extractcode/archive.py", line 47, in
from extractcode import libarchive2
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/extractcode/libarchive2.py", line 91, in
libarchive = load_lib()
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.2.4/src/extractcode/libarchive2.py", line 87, in load_lib
raise ImportError('Failed to load libarchive: %(libarchive)r' % locals())
ImportError: Failed to load libarchive: '/home/rex/qdu_claro/yuki/scancode-toolkit-1.2.4/src/extractcode/bin/linux-32/bin/libarchive.so'
There is no libarchive.so in that directory!!!
Can anyone help me? Thx...
The text was updated successfully, but these errors were encountered: