当前在尝试在 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 软件包工具方法而不是 apt-get 进行安装的说明,但这似乎是为在 SleuthKit 4.1.2 上开发而量身定制的。
pytsk 文档中是否缺少依赖项,这是版本冲突的问题(即 SleuthKit 3.2.3 安装试图从源代码中提取 4.1.3),还是我遗漏了一些明显的东西?
提前致谢,蜂巢思维。