python - 编译错误:gcc:错误:无法识别的命令行选项'-R'
问题描述
我正在尝试使用以下行运行安装:
python setup.py install --user
要从以下位置安装数据集阅读器:github
但是当我这样做时,我得到了错误:
gcc: error: unrecognized command line option ‘-R’
这是与此相关的编译问题
但是当我跟踪错误源时:
C compiler: gcc -pthread -B /home/username/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
我找不到要更改的文件
/home/用户名/anaconda3/compiler_compat
修复 -R 问题。
“read_eagle”于 2018 年 3 月 7 日下载,身份编号:4a73486d8248d16bfd5dc28283e6160156dc28c5,历史记录来自:github.com/jchelly/read_eagle
我有以下程序版本:
康达: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
解决方案
推荐阅读
- java - Java 字节码执行不理解 go 语句在字节码中的工作方式
- google-apps-script - 当列标题与字符串匹配并且该列中的单元格包含指定值时,显示选项卡中的行
- javascript - 如何使用 jquery 删除“阅读更多”?
- pandas - How do I merge and repeat population cells in a data frame with existing data frame?
- c - STM32 使用 CubeMX 和 STMStudio:'int main()' 不起作用
- xamarin.forms - ZXing 是否能够解码旧版本的 Data Matrix 条码?
- python - 在 PyQt5 GUI 中嵌入 Plotly-Dash 图:握手失败,SSL 错误
- angular - 在 Ionic/Angular 中使用 Google Charts 为 PieChart 动态创建数据表
- python - 如何按特定顺序将数据导出到 csv 文件
- python - Selenium .click() 用于 trulia.com 搜索按钮未单击