在hp ux上获取scons错误以构建简单的helloworld应用程序

时间:2018-06-14 12:54:07

标签: scons

在HP UX上我第一次安装了scons,在同一个文件夹中我有一个test.c,它是一个简单的hello world printf可执行文件。

当我尝试运行scons来构建test.c时,它失败了,给出了以下错误

$ scons

  

SCons导入失败。无法找到引擎文件:
        /usr/local/bin/../engine /usr/local/bin/scons-local-3.0.1 /usr/local/bin/scons-local /usr/local/lib/scons-3.0.1 /usr/local/lib/scons-3.0.1 /usr/lib/scons-3.0.1 /usr/local/lib/python2.7/site-packages/scons-3.0.1 /usr/local/lib/python2.7/site-packages/scons-3.0.1 /usr/lib/python2.7/site-packages/scons-3.0.1 /usr/local/lib/scons-3.0.1 /usr/local/lib/scons /usr/local/lib/scons /usr/lib/scons /usr/local/lib/python2.7/site-packages/scons /usr/local/lib/python2.7/site-packages/scons /usr/lib/python2.7/site-packages/scons /usr/local/lib/scons Traceback (most recent call last): "/usr/local/bin/scons", line 192, in module import SCons.Script "/usr/local/lib/scons-3.0.1/SCons/Script/__init__.py", line 82, in module import SCons.Environment "/usr/local/lib/scons-3.0.1/SCons/Environment.py", line 55, in module import SCons.Platform "/usr/local/lib/scons-3.0.1/SCons/Platform/__init__.py", line 53, in module import tempfile

如何摆脱这些错误?

1 个答案:

答案 0 :(得分:0)

我们终于通过从网上为hp ux下载libz.so文件来解决问题。感谢。