安装SystemC 2.3.2失败

时间:2018-11-07 15:22:24

标签: install ubuntu-16.04 systemc

我想在Ubuntu 16.04上安装SystemC 2.3.2,所以我遵循了安装文件指令:

  2. Create a temporary directory, e.g.,

        > mkdir objdir

  3. Change to the temporary directory, e.g.,

        > cd objdir

  4. Choose your compiler by setting the CXX environment variable

        > export CXX=g++


  5. Configure the package for your system, e.g.,
     (The configure script is explained below.)

        > ../configure

     In case you want to install the package in another place than the
     top level directory (systemc-2.3.2), configure the package e.g. as
     follows:

        > ../configure --prefix=/usr/local/systemc-2.3.2

  6. Compile the package.

        > make

  7. At this point you may wish to verify the compiled package by
     testing the example suite.

        > make check

  8. Install the package.

        > make install

  9. You can now remove the temporary directory, .e.g,

        > cd ..
        > rm -rf objdir

每一步都进行得很好,直到我到达步骤8来安装软件包为止……我收到以下错误消息:

user@user-Lenovo-IdeaPad-Y510P:~/systemc-2.3.2/objdir$ make install
Making install in docs
make[1]: Entering directory '/home/anoir/systemc-2.3.2/objdir/docs'
make[2]: Entering directory '/home/anoir/systemc-2.3.2/objdir/docs'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/systemc-2.3.2/docs'
/bin/mkdir: cannot create directory ‘/usr/local/systemc-2.3.2’: Permission denied
Makefile:380: recipe for target 'install-nobase_docDATA' failed
make[2]: *** [install-nobase_docDATA] Error 1
make[2]: Leaving directory '/home/anoir/systemc-2.3.2/objdir/docs'
Makefile:453: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/anoir/systemc-2.3.2/objdir/docs'
Makefile:505: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

我不明白问题所在。我的错误是什么

1 个答案:

答案 0 :(得分:1)

默认安装位置需要root访问。如果没有的话。尝试将其安装到您有权访问的其他位置。

例如:

../configure --prefix ${HOME}/SystemC