在Fastjet中制作时出错

时间:2016-11-30 05:36:04

标签: shared-libraries gnu-make

amandeep@amandeep-Vostro-2420:~/fastjet$ make install
Making install in src
make[1]: Entering directory `/home/amandeep/fastjet/src'
make[2]: Entering directory `/home/amandeep/fastjet/src'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libfastjet.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libfastjet.so.0.0.0 /usr/local/lib/libfastjet.so.0.0.0
/usr/bin/install: cannot create regular file '/usr/local/lib/libfastjet.so.0.0.0': Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/amandeep/fastjet/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/amandeep/fastjet/src'
make: *** [install-recursive] Error 1

Fastjet发布:fastjet-3.2.1(手动,doxygen,fjcore)

Ubuntu软件版本:14.04

make时有这个问题。我也试过了其他版本。每个版本都存在问题。

1 个答案:

答案 0 :(得分:0)

$ make install
...
/usr/bin/install: cannot create regular file '/usr/local/lib/libfastjet.so.0.0.0': Permission denied

关于Linux和类Unix操作系统的一个基本事实是您需要root(超级用户)权限 在主目录之外安装软件。因此,运行:

$ sudo make install

请参阅man sudo