我正在尝试使用以下行运行安装:
python setup.py install --user
要从以下位置安装数据集读取器:github
但是当我收到错误消息时:
gcc: error: unrecognized command line option ‘-R’
哪个是与this
相关的编译问题但是当我跟踪错误源时:
C compiler: gcc -pthread -B /home/username/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
我找不到要更改的文件
/ home / username / anaconda3 / compiler_compat
解决-R问题。
“ read_eagle”已于03/2018下载,标识号为:4a73486d8248d16bfd5dc28283e6160156dc28c5,来自以下网址:github.com/jchelly/read_eagle
我有以下程序版本:
Conda:4.4.11
Python 3.6.2 :: Anaconda自定义(64位
gcc(Ubuntu 5.4.0-6ubuntu1〜16.04.10)5.4.0 20160609
完整错误:
running install
running build
running build_py
running build_ext
building '_read_eagle' extension
C compiler: gcc -pthread -B /home/username/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-I/home/username/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/include -I/home/username/anaconda3/include/python3.6m -c'
gcc: ./src/_read_eagle.c
gcc: ./src/read_eagle.c
./src/read_eagle.c: In function ‘get_dataset_list’:
./src/read_eagle.c:194:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<nobj; i+=1)
^
./src/read_eagle.c: In function ‘count_particles_with_index’:
./src/read_eagle.c:948:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<n;i+=1)
^
./src/read_eagle.c:960:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<n;i+=1)
^
./src/read_eagle.c: In function ‘read_extra_dataset’:
./src/read_eagle.c:1250:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(ipart=0;ipart<dims[0];ipart+=1)
^
gcc -pthread -shared -B /home/username/anaconda3/compiler_compat -L/home/username/anaconda3/lib -Wl,-rpath=/home/username/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/src/_read_eagle.o build/temp.linux-x86_64-3.6/src/read_eagle.o -L/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -L/home/username/anaconda3/lib -R/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -lhdf5 -lpython3.6m -o build/lib.linux-x86_64-3.6/_read_eagle.cpython-36m-x86_64-linux-gnu.so
gcc: error: unrecognized command line option ‘-R’
gcc: error: unrecognized command line option ‘-R’
error: Command "gcc -pthread -shared -B /home/username/anaconda3/compiler_compat -L/home/username/anaconda3/lib -Wl,-rpath=/home/username/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/src/_read_eagle.o build/temp.linux-x86_64-3.6/src/read_eagle.o -L/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -L/home/username/anaconda3/lib -R/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -lhdf5 -lpython3.6m -o build/lib.linux-x86_64-3.6/_read_eagle.cpython-36m-x86_64-linux-gnu.so" failed with exit status 1