Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: installing a systemc rpm

  1. #1
    boppu NNTP User

    Default installing a systemc rpm

    Hi All,

    I am trying to install sysytemc rpm for openSUE10.3.
    I downloaded the package from
    RPM Search

    this link . After downloading as a root
    I am running the following command .

    rpm -i rpm -i systemc-2.2.0-12.1.src.rpm

    then I am getting the following error.

    warning: systemc-2.2.0-12.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 5d8bcea3

    I do not understand this ...as it got properly installed or not !!

    Please comment !!! Thanks in advance !!

    Regards,
    Srinivas Boppu

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: installing a systemc rpm

    ignore the warning, i get those too. your package should be installed. you can check that with

    rpm -q systemc

  3. #3
    Join Date
    Jun 2008
    Location
    Finland, European Union
    Posts
    1,879

    Default Re: installing a systemc rpm

    It's a source RPM - which means it installs the source files for the package, which are located in /usr/src/packages/

    I assume you wanted the binary rather than the source package?

  4. #4
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: installing a systemc rpm

    Quote Originally Posted by Chrysantine View Post
    It's a source RPM - which means it installs the source files for the package, which are located in /usr/src/packages/

    I assume you wanted the binary rather than the source package?
    that's for pointing out it's a source rpm, missed that

  5. #5
    Join Date
    Jun 2008
    Location
    Finland, European Union
    Posts
    1,879

    Default Re: installing a systemc rpm

    Incidentally if you want the binary package, you can grab it from here: http://download.opensuse.org/reposit...-12.1.i586.rpm

    Note that the download is meant for openSUSE 10.3.

  6. #6
    boppu NNTP User

    Default Re: installing a systemc rpm

    hi All,

    When I do rpm -q systemc
    It is giving me the following message.

    srinivasboppu@linux-srinivas:~> rpm -q systemc
    systemc-2.2.0-12.1
    srinivasboppu@linux-srinivas:~>


    I wanted to know whether it is installed properly ? or not ?

    What is the difference between the source and binary package ?
    How to identify them ? whether it is a source or binary ?.

    how do I test that this installed properly ...

    please comment.

    Thanks,
    Srinivas Boppu

  7. #7
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: installing a systemc rpm

    Yes, it's installed.

    Source RPMs have a src.rpm in the name. They will not appear in rpm -q searches.

  8. #8
    boppu NNTP User

    Default Re: installing a systemc rpm

    hi Ken,

    I am executing the following program.


    1 // All systemc modules should include systemc.h header file
    2 #include "systemc.h"
    3 // Hello_world is module name
    4 SC_MODULE (hello_world) {
    5 SC_CTOR (hello_world) {
    6 // Nothing in constructor
    7 }
    8 void say_hello() {
    9 //Print "Hello World" to the console.
    10 cout << "Hello World.\n";
    11 }
    12 };
    13
    14 // sc_main in top level function like in C++ main
    15 int sc_main(int argc, char* argv[]) {
    16 hello_world hello("HELLO");
    17 // Print the hello world
    18 hello.say_hello();
    19 return(0);
    20 }



    The command line I am using is :

    setenv SYSTEMC_HOME /usr/share/systemc

    then

    g++ -I. -I$SYSTEMC_HOME/include -L. -L$SYSTEMC_HOME/lib-linux -o sim hello.cpp -lsystemc -lm



    then I am ending up in the following error.

    /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/share/systemc/lib-linux/libsystemc.a when searching for -lsystemc
    /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lsystemc
    collect2: ld returned 1 exit status



    Please can you have a look at this.

    I got this program from the following site.

    My first program in SystemC


    thanks,
    srinivas

  9. #9
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: installing a systemc rpm

    You can see what files were installed by a package with:

    rpm -qf systemc

    That list will tell you where the include files and libraries were put and you should adjust your compiler commands so that they are found.

    I don't know anything about systemc and don't have much desire to go probing so I can only give you some general tips.

  10. #10
    boppu NNTP User

    Thumbs up Re: installing a systemc rpm

    hi Ken_yap,


    Thanks alot ....for your help. I did followed what you said.
    I was able to run the program....

    Thanks a bunch !!!!

    regards,
    Srinivas Boppu

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •