当尝试在Ubuntu 12.04中安装pytsk时,目前在查找SleuthKit(3.2.3-2ubuntu1)头文件时遇到问题。这是我收到的安装错误:
Downloading/unpacking pytsk
Downloading pytsk-4.1.3-20140506.tar.gz (142kB): 142kB downloaded
Running setup.py (path:/tmp/pip_build_root/pytsk/setup.py) egg_info for package pytsk
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
从/home/some_jerk/.pip/登录如下:
------------------------------------------------------------
/usr/local/bin/pip run on Thu Feb 12 12:12:28 2015
Downloading/unpacking pytsk
Getting page https://pypi.python.org/simple/pytsk/
URLs to search for versions for pytsk:
* https://pypi.python.org/simple/pytsk/
Analyzing links from page https://pypi.python.org/simple/pytsk/
Found link https://pypi.python.org/packages/2.7/p/pytsk/pytsk-4.1.3-20140506.linux-x86_64.tar.gz#md5=dbc9cce02bb318d5f3145dd23ffa93f7 (from https://pypi.python.org/simple/pytsk/), version: 4.1.3-20140506.linux-x86_64
Found link https://pypi.python.org/packages/source/p/pytsk/pytsk-4.1.3-20140506.tar.gz#md5=a0d0c7af34b6873334d48a61295e51eb (from https://pypi.python.org/simple/pytsk/), version: 4.1.3-20140506
Ignoring link https://pypi.python.org/packages/2.7/p/pytsk/pytsk-4.1.3-20140506.linux-x86_64.tar.gz#md5=dbc9cce02bb318d5f3145dd23ffa93f7 (from https://pypi.python.org/simple/pytsk/), version 4.1.3-20140506.linux-x86_64 is a pre-release (use --pre to allow).
Downloading from URL https://pypi.python.org/packages/source/p/pytsk/pytsk-4.1.3-20140506.tar.gz#md5=a0d0c7af34b6873334d48a61295e51eb (from https://pypi.python.org/simple/pytsk/)
Running setup.py (path:/tmp/pip_build_root/pytsk/setup.py) egg_info for package pytsk
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
----------------------------------------
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pytsk
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pytsk
在一些google-fu并参考GitHub上的pytsk故障排除文档之后,我还没有找到解决此问题的任何内容。在我的研究中,我还使用Debian package tools而不是apt-get的更直接的方法来了解安装的一些说明,但这似乎是针对SleuthKit 4.1.2的开发量身定制的。
pytsk文档中是否缺少依赖项,这是版本冲突的问题(即SleuthKit 3.2.3安装尝试从源代码中提取4.1.3),还是我遗漏了一些明显的东西?
提前致谢,hive mind。
答案 0 :(得分:0)
您需要头文件,但默认情况下不会安装这些文件。
apt-get(或其他)安装libtsk