PDA

View Full Version : [ubuntu] not able to install systemc on ubuntu after typing make command



anshul_nit
September 3rd, 2009, 06:45 PM
i am using ubuntu ultimate 2.3
it is having gcc and g++ already
but whenver i try to install systemc on it by typing command in terminal
1)./configure (it works fine)
2)make (it gives me error ike this)
make[3]: *** [sc_utils_ids.o] Error 1
make[3]: Leaving directory `/home/satvik/Desktop/system/src/sysc/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/satvik/Desktop/system/src/sysc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/satvik/Desktop/system/src'
make: *** [all-recursive] Error 1
3)make install(also giving error)

I have installed it many times on the previous version of ubuntu ultimate..bt that time there was no error, but this time i am not able to understand..
plz help me in figuring out what could be the cause??

anshul_nit
September 3rd, 2009, 06:54 PM
plz help me out

anshul_nit
September 21st, 2009, 05:24 PM
:(

stlsaint
September 22nd, 2009, 02:50 AM
i too run UE 2.3 and i know that build-essential does not come pre-installed...

sudo apt-get install build-essential
then
sudo apt-get update
and try make again

wurzel529
October 17th, 2009, 02:45 PM
I had the same problem and fixed it in the source code. It fixes a missing #include-directive in
src/sysc/utils/sc_utils_ids.cpp and excludes the examples directory from building because it
caused problems using 'make install'.

You can download my patch from http://www.embedded-system-design.de/download/systemc-2.2.0-ubuntu9.04.patch ...

Apply it by typing:

cd systemc-2.2.0
patch -p1 < ../systemc-2.2.0-ubuntu9.04.patch

... as well as (due to missing automake-1.6):

aclocal
automake
autoconf

Now, you can configure and compile SystemC by

./configure
make
make install

Best regards!

parinaz.sayyah
May 21st, 2010, 10:33 PM
Hi,

I had same errors! I fixed it by going through installation steps as below:

1. tar xvf systemc-2.2.0.tar
2. cd systemc-2.2.0
3. mkdir objdir
4. cd objdir
5. which g++ (To check if g++ is available in yr path)
6. ../configure
7. mkdir home/usr/sysc
8. ../configure --prefix=/home/usr/sysc
9. make
10. make debug
11. make install

On ubuntu is important to create a directory as said in step 7, you can call it simply "sysc" or any other name, but it is important that you install and do configure in the new created file.

If you still get errors, try to add these includes:

#include "string.h"
#include "cstdlib"

to systemc-2.2.0/src/sysc/utils/sc_utils_ids.cpp

and go through above steps again!

maanrl
November 7th, 2010, 11:52 PM
The solution provided by wurzel529 (http://ubuntuforums.org/member.php?u=932335) worked for me, thanks.

ahaxin
November 8th, 2010, 07:44 PM
To fix this problem, add the following includes at the top of file
../src/sysc/utils/sc_utils_ids.cpp:
#include<cstdlib>
#include<cstring>