mpich v3.2.1中的“找不到-L”编译错误

时间:2019-05-26 10:32:13

标签: linux gcc compiler-errors compilation mpich

我想在我的Linux系统中安装mpich 3.2.1进行并行计算。我已成功安装gcc 6.1.0,并将这些信息添加到~/.bashrc

# gcc-6.1.0
export DIR=/diskx/hyf/lib
export PATH=/diskx/hyf/lib/gcc-6.1.0/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/gcc-6.1.0/lib/../lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/gcc-6.1.0/lib/

但是,虽然我遵守了MPICH 3.2.1,但

 ./configure --prefix=$DIR/mpich
make

错误显示如下:

/diskx/hyf/lib/binutils-2.25/bin/ld: cannot find -l-L/diskx/hyf/lib/gcc-6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpifort.la] Error 1
make[2]: Leaving directory `/diskx/hyf/backup/mpich-3.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/diskx/hyf/backup/mpich-3.2.1'
make: *** [all] Error 2

我不知道为什么找不到gcc库,因为它们已经被预定义了。任何建议都将适用!

0 个答案:

没有答案