Hi,
I am new to Linux. I want to install SystemC on OPENSUSE 12.1. From a tutorial on the web, see below, I want to save systemc-2.2.0 to the /usr/local. Although I run su to as a administrator, it still does not allow me to do that. What is the reason for not create a folder there?
Second,
% setenv SYSTEMC /usr/local/packages/systemc-2.2.0
cannot run at the bash. I can skip this line, run the second line (export etc.) only?
Thanks.
…
Once you have logged in, set the ‘SYSTEMC’ environment variable to the
directory of the SystemC installation located at:
/usr/local/packages/systemc-2.2.0
Depending on your shell (default in LRC is the C shell csh but you can find out
what you are running through the ‘SHELL’ environment variable, i.e. by typing
echo $SHELL), setting the ‘SYSTEMC’ variable is done as follows for [t]csh:
% setenv SYSTEMC /usr/local/packages/systemc-2.2.0
or, for [ba]sh:
% export SYSTEMC=/usr/local/packages/systemc-2.2.0
…
Hi,
I just try with Yast. It can create a folder: package, but I cannot continue. SystemC is a compilable C library. How to make YaST operates on it?
Second question on the command line:
Now, SystemC is on my personal path, i.e. /home/Jeff/systemsc-2.2.0/. It seems g++ does not understand the above line. I enter: g++ --help. It does not have -l option. What is the meaning of: –L$SYSTEMC/lib-linux? I do not see any lib-linux library there. Could you help me? Thanks.
…
Once the environment variable is set, you can access the SystemC installation by
referring to the ‘SYSTEMC’ variable. The standard GNU C++ compiler ‘g++’ is
then used to compile SystemC code and link it against the SystemC libraries. Note
that if your are compiling on a 64-bit LRC machine, you will have to supply the ‘-
m32’ flag (to match the LRC SystemC installation, which is 32-bit):
% g++ -m32 -I$SYSTEMC/include –L$SYSTEMC/lib-linux –lsystemc –lm <source>
Hi,
The second question is solved. I still do not understand the first, i.e. why it cannot create a folder in /usr/local. I have logged in as super admin. Thanks.
On 2011-11-26 19:26, freerjw wrote:
>
> Hi,
> The second question is solved. I still do not understand the first,
> i.e. why it cannot create a folder in /usr/local. I have logged in as
> super admin. Thanks.
Post command line and result between code tags that demonstrate the problem.
code tags → advanced editor, #.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)