24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2147  |  回复: 12

miaozhang

木虫 (小有名气)

[交流] 【求助】求助:安装abinit-6.2.3出现错误已有2人参与

第一次接触abinit,以前也没接触过,弱弱问下面这个问题是怎么回事?
/usr/bin/install -c abinetcdf abinit aim anaddb band2eps conducti cut3d fftprof lwf mrgddb mrggkk mrgscr newsp optic ujdet macroave '/usr/local/bin'
/usr/bin/install: cannot create regular file `/usr/local/bin/abinetcdf': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/abinit': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/aim': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/anaddb': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/band2eps': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/conducti': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/cut3d': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/fftprof': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/lwf': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/mrgddb': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/mrggkk': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/mrgscr': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/newsp': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/optic': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/ujdet': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/macroave': Permission denied
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory `/home/ygzhang/abinit-6.2.3/src/98_main'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/ygzhang/abinit-6.2.3/src/98_main'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/ygzhang/abinit-6.2.3/src'
make: *** [install-recursive] Error 1
见有人出现过相同问题,但没看懂到底是什么原因,怎么解决啊?
还有在并行机上安装abinit需要设置什么东西吗?
谢谢!!!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

valenhou001

至尊木虫 (职业作家)

★ ★ ★
miaozhang(金币+1):谢谢参与
miaozhang(金币+2): 2010-10-01 08:51:19
zzy870720z(金币+2):侯老师辛苦了,多谢指点 2010-10-01 21:22:01
问题出在,你在configure这一步时,没有指定安装的目录(也就是没有设置--prefix的赋值),那运行make install这一步的时候,就默认得编译得到的abinit可执行模块都要拷贝到/usr/local/bin目录下,但是,这个目录一般是只有root权限的用户可以才可读写文件。

解决的办法:重新./configure ---prefix="指定一个你当前用户帐号可以读写的目录"  .........
其他的与你以前的设置和做的步骤一样。再重新编译,安装。
2楼2010-10-01 08:19:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wenjlu

木虫 (正式写手)

★ ★
miaozhang(金币+1):谢谢参与
miaozhang(金币+1): 2010-10-01 08:51:30
zzy870720z(金币+1):谢谢提示,一般软件还是不用root安装为好 2010-10-01 21:22:36
Permission denied

要切换 root 用户组
3楼2010-10-01 08:36:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

miaozhang

木虫 (小有名气)

引用回帖:
Originally posted by valenhou001 at 2010-10-01 08:19:11:
问题出在,你在configure这一步时,没有指定安装的目录(也就是没有设置--prefix的赋值),那运行make install这一步的时候,就默认得编译得到的abinit可执行模块都要拷贝到/usr/local/bin目录下,但是,这个目录一 ...

在并行机上这样就可以了吗?需要设置一些参数吗?
谢谢!
4楼2010-10-01 08:54:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

miaozhang(金币+1):谢谢参与
5楼2010-10-01 09:02:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

miaozhang

木虫 (小有名气)

引用回帖:
Originally posted by wenjlu at 2010-10-01 08:36:07:
Permission denied

要切换 root 用户组

老师把root收回去了,我只在自己的帐号下安装,应该可以用吧?
6楼2010-10-01 09:03:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

valenhou001

至尊木虫 (职业作家)

★ ★
miaozhang(金币+1):谢谢参与
zzy870720z(金币+1):谢谢提示 2010-10-01 21:22:56
安装到你自己的目录中,也是可以用。
7楼2010-10-01 14:35:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhouhua0227

新虫 (小有名气)

abinit


miaozhang(金币+1):谢谢参与
楼主啊,你有abinit软件包,能不能上传啊?我找了好久,都没有找到!先谢谢了!
8楼2010-10-01 16:41:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zxzj05

荣誉版主 (著名写手)

★ ★
miaozhang(金币+1):谢谢参与
zzy870720z(金币+1):辛苦了 2010-10-01 21:23:09
引用回帖:
Originally posted by zhouhua0227 at 2010-10-01 16:41:10:
楼主啊,你有abinit软件包,能不能上传啊?我找了好久,都没有找到!先谢谢了!

http://www.abinit.org
官方网站
储氢家族欢迎储氢研究者!
9楼2010-10-01 20:23:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

miaozhang

木虫 (小有名气)

引用回帖:
Originally posted by valenhou001 at 2010-10-01 14:35:11:
安装到你自己的目录中,也是可以用。

IFORT,  MPI,我都装上了,在.BASHRC中指认了路径:
# .bashrc
# User specific aliases and functions
export PATH=/home/ygzhang/mpich2/bin:$PATH
export PATH=/home/ygzhang/abinit/bin:$PATH
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

然后./configure --prefix=/home/abinit FC=mpif90   --enable-mpi=yes
出现了以下错误,
checking for mpif90... /opt/intel/impi/3.1/bin64/mpif90
checking whether we are using the GNU Fortran compiler... no
checking whether mpif90 accepts -g... no
checking which type of Fortran compiler we have... generic 0.0
checking fortran 90 modules extension...
configure: setting Fortran module extension to ".mod"
checking for Fortran flag to compile .F90 files... unknown
configure: WARNING: Fortran file extension could not be changed
configure: WARNING: some advanced Fortran tests may fail
configure: determining Fortran module case
configure: error: in `/home/ygzhang/abinit-6.2.3':
configure: error: unable to compile a simple Fortran module
不知怎么解决,是f90的编译器出问题了?
谢谢!
10楼2010-10-02 09:01:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 miaozhang 的主题更新
普通表情 高级回复(可上传附件)
信息提示
请填处理意见