首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装SystemC 2.3.2失败

安装SystemC 2.3.2失败
EN

Stack Overflow用户
提问于 2018-11-07 23:22:24
回答 1查看 297关注 0票数 0

我想在Ubuntu16.04上安装SystemC 2.3.2,所以我遵循安装文件指令:

代码语言:javascript
运行
复制
  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

每一步都很顺利,直到我到了第八步来安装这个包……我得到以下错误:

代码语言:javascript
运行
复制
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

我不明白问题出在哪里。我的错误可能是什么

EN

回答 1

Stack Overflow用户

发布于 2018-11-08 06:39:35

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

例如:

代码语言:javascript
运行
复制
../configure --prefix ${HOME}/SystemC
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53192465

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档