在ubuntu上安装systemc

时间:2015-08-22 07:53:09

标签: linux ubuntu systemc

我是初学者。 我正在Ubuntu上安装systemc231,我已经这样做了:

tar -xzvf systemc-2.3.1.tgz
cd systemc-2.3.1
sudo mkdir /usr/local/systemc231
mkdir objdir
cd objdir
export cxx="<compiler>"
export cxx=g++
export cxx=clang++
setevn cxx g++

它回答:command not found 然后我继续说道:

../configure

花了一点时间检查了一些东西,但最后回答:

 Configure:error: in /home/Ubuntu/systemc-2.3.1/objdir':

 Configure:error:c++compiler cannot create executables see 'config.log' for more details

然后我继续说道:

make

它回答说:

make:*** no targets specified no makefile found. Stop.

现在我该怎么办? 这是systemc231文件的链接,我使用它的自述文件和安装文件来编写命令:

http://accellera.org/images/downloads/standards/systemc/systemc-2.3.1.tgz

1 个答案:

答案 0 :(得分:2)

在Ubuntu中,您使用export来设置环境变量。在其他Linux发行版中,您使用setenv。您只需要其中一个命令。做一个命令来确定是否安装了g ++

which g++

如果它没有返回类似

的内容
/usr/bin/g++

然后没有安装,只需用

安装
sudo apt-get install build-essential

然后再次使用哪个进行检查 您创建了一个安装目录/ usr / local / systemc231,您需要在configure命令中指定要在其中安装systemc。查找有关setting up systemc and eclipse configuration in ubuntu on my blog

的教程
相关问题