问题描述
我将在没有root访问权限的情况下在Solaris 10上安装 libffi 。这用于稍后使用Python 3.6的点安装 cffi 和 Jupyter 。建设期间我遇到了一些错误,请帮忙。谢谢!
uname -a
的输出是 SunOS 5.10 Generic_150400-63 sun4v sparc
- 我下载了libffi-3.3 here,并使用
./configure --prefix=XXXX
和make
进行了构建,但出现错误:
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -Wall -fexceptions -DSPARC -E -x assembler-with-cpp -o libffi.map
gcc: warning: `-x assembler-with-cpp' after last input file has no effect
gcc: no input files
*** Error code 1
make: Fatal error: Command failed for target `libffi.map'
...
...
- 如libffi git site所述,“ SPARC Solaris构建要求使用GNU汇编器和链接器。在配置之前将AS和LD环境变量指向那些工具。”,因此我试图安装提供GNU AS和LD的 binutils 。我尝试使用
./configure --prefix=XXXX
和make
或make <target>
安装所有binutils目标或仅安装gas或ld,但是总是出现错误
rm -f stamp-h1
/bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
...
...
/usr/bin/sed -e s/NN/32/g < > elf32-target.h
bash: -c: line 0: syntax error near unexpected token `>'
*** Error code 2
make: Fatal error: Command failed for target `elf32-target.h'
...
...
make: Fatal error: Command failed for target `all-bfd'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)