GRIB API,Jasper,Pygrib的问题

时间:2016-06-16 09:11:22

标签: python

在最近几天我遇到GRIB API安装问题,我能够安装它并禁用--disable-shared标志,但问题是我在运行Pygrib测试时遇到错误“python animate.py” (GRIB_API错误:未启用JPEG支持。)

所以我必须再次安装GRIB API而不禁用共享但是我收到了这个错误:

     time     |  size  | sym  | price 
--------------+--------+------+-------
 11:53:40.198 |    100 | AMD  |  2.42
 15:00:01.007 |    158 | AMD  |  2.42
 10:27:16.818 |    100 | AMD  |  2.42
 09:54:03.057 |     65 | GEVO |  2.42
 10:02:50.139 |     80 | SNTA |  2.42
 15:01:26.752 |    100 | AMD  |  2.42
 14:02:25.981 |   1100 | AMD  |  2.42
 14:35:20.165 |    882 | AMD  |  2.42
 13:22:25.701 |   1900 | AMD  |  2.42
 15:59:40.409 |    113 | SNTA |  2.42
 14:32:30.422 |  15900 | AMD  |  2.42
 09:32:39.217 |     50 | SNTA |  2.42
 10:58:37.311 |     10 | OREX |  2.42
 10:12:28.215 |    100 | AMD  |  2.42
 13:42:59.869 |    100 | OREX |  2.42
 11:13:12.193 |    100 | SNTA |  2.42
 09:40:25.264 |     98 | SNTA |  2.42
 11:02:04.777 |    200 | AMD  |  2.42
 12:02:37.364 |    100 | AMD  |  2.42
 09:51:47.947 |    100 | AMD  |  2.42
 15:52:23.795 |    100 | OREX |  2.42
 10:03:16.637 |    100 | AMD  |  2.42
 09:56:08.089 |    100 | AMD  |  2.42
 15:45:28.617 |   1200 | AMD  |  2.42

然后我开始用-fPIC标志再次编译Jasper,但我仍然得到了 “重新编译-fPIC”,因为我将MAKE文件中的标志更改为:

Linking C shared library ../lib/libgrib_api.so
/usr/bin/ld: /usr/local/lib/libjasper.a(jpc_math.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libjasper.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libgrib_api.so] Error 1
make[1]: *** [src/CMakeFiles/grib_api.dir/all] Error 2
make: *** [all] Error 2

仍然没有重复...我搜索了许多但没有重新计算

提前致谢

0 个答案:

没有答案