“make install”错误

“make install”错误

我正在尝试在我的 ubuntu 上安装 vmd,但“make install”出现这些错误。有人能帮忙吗?这些是错误。谢谢帮助。

if [ ! -d "/usr/local/lib/vmd" ]; then \
        mkdir -p "/usr/local/lib/vmd" ; \
    fi ; \
    if [ ! -d "/usr/local/bin" ]; then \
        mkdir -p "/usr/local/bin" ; \
    fi ; \
    if [ ! -d "/usr/local/lib/vmd"/doc ]; then \
        mkdir -p "/usr/local/lib/vmd"/doc; \
    fi
cp ../Announcement  "/usr/local/lib/vmd"
cp: cannot create regular file `/usr/local/lib/vmd/Announcement': Permission denied
make: [install] Error 1 (ignored)
cp ../README        "/usr/local/lib/vmd"
cp: cannot create regular file `/usr/local/lib/vmd/README': Permission denied
make: [install] Error 1 (ignored)
cp ../LICENSE       "/usr/local/lib/vmd"
cp: cannot create regular file `/usr/local/lib/vmd/LICENSE': Permission denied
make: [install] Error 1 (ignored)
cp ../doc/ug.pdf        "/usr/local/lib/vmd"/doc
cp: cannot create regular file `/usr/local/lib/vmd/doc/ug.pdf': Permission denied
make: [install] Error 1 (ignored)
if [ -f /usr/local/lib/vmd/vmd_LINUXAMD64 ]; then \
           mv -f "/usr/local/lib/vmd/vmd_LINUXAMD64" "/usr/local/lib/vmd/OLD_vmd_LINUXAMD64" ; rm -f "/usr/local/lib/vmd/OLD_vmd_LINUXAMD64" ; fi
cp ../LINUXAMD64/vmd_LINUXAMD64 "/usr/local/lib/vmd"
cp: cannot overwrite directory `/usr/local/lib/vmd/vmd_LINUXAMD64' with non-directory
make: [install] Error 1 (ignored)
if [ -d "../lib/redistrib/lib_LINUXAMD64" ]; then \
        cd ../lib/redistrib/lib_LINUXAMD64; tar -cf - ./* | \
        (cd "/usr/local/lib/vmd" ; tar -xf -) \
    fi ;
tar: ./libcudart.so.4: Cannot open: Permission denied
tar: ./libexpat.so.0: Cannot open: Permission denied
tar: ./libsqlite3.so.0: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
make: *** [install] Error 2

答案1

尝试这个:

安装

通常,make install 需要 root 权限才能在文件系统中创建新文件。

相关内容