avatar
M*n
1
【 以下文字转载自 Linux 讨论区 】
发信人: MildSeven (七星*极夜), 信区: Linux
标 题: link的问题
发信站: BBS 未名空间站 (Sat Nov 5 16:40:47 2005), 转信
用intel fortran compiler编译一个程序:
ifort -O2 -L/usr/lib -larpack -llapack -lblas -lg2c Migration.o -o
migration.out
出错信息:
IPO link: can not find -larpack
IPO link: can not find -llapack
IPO link: can not find -lblas
IPO link: can not find -lg2c
IPO Error: unresolved : dsaupd_
Referenced in eigen_spectrum.o
ld: cannot find -larpack
可是那些库文件都在/usr/lib/里呀:
$ ls /usr/lib/libarpack.
avatar
k*e
2
create a link file libarpack.so to libarpack.so.2 or libarpack.so.2.1.

【在 M*******n 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 发信人: MildSeven (七星*极夜), 信区: Linux
: 标 题: link的问题
: 发信站: BBS 未名空间站 (Sat Nov 5 16:40:47 2005), 转信
: 用intel fortran compiler编译一个程序:
: ifort -O2 -L/usr/lib -larpack -llapack -lblas -lg2c Migration.o -o
: migration.out
: 出错信息:
: IPO link: can not find -larpack
: IPO link: can not find -llapack

avatar
A*s
3

It will be odd there is no libarpack.so already there, unless the libraries
are not installed completely. My guess is libarpack.so is a link to libarpack.
so.2 and libarpack.so.2 is a link to libarpack.so.2.1.
As I suggested in Linux board, check your LD_LIBRARY_PATH first. If no
libarpack.so in the directory, as kyte pointed out, make a link. Probably you
don't have write permissin in /usr/lib if you are not admin. That's fine, just
create the link in build directory, but make sure to use abso

【在 k**e 的大作中提到】
: create a link file libarpack.so to libarpack.so.2 or libarpack.so.2.1.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。