Find the answer to your Linux question:
Results 1 to 10 of 10
Hi everybody, I am new member to this forum. I have installed featherlinux on my hdd. It is a knoppix remaster so a debian derivative like knoppix. It includes tcc, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Location
    Germany
    Posts
    21

    Problem installing GCC


    Hi everybody,

    I am new member to this forum.

    I have installed featherlinux on my hdd. It is a knoppix remaster so a debian derivative like knoppix. It includes tcc, tiny c compiler, but I need gcc.
    I dont have internet on my linux pc so I downloaded .deb packages about 34 different files for gcc 3.5 and started installing with dselect.

    Now, I am facing a strance dependency problem.

    while installing g++-3.5--opere1-bla-bla.deb, it says it depends upon

    libstdc++6-dev. and while installing libstdc++6-dev it complains about not having installed g++-3.5 !!!

    I dont know much about debain packages but this is a deadlock I am facing.

    Can anyboday suggest what do do to install gcc ?


    thanks,
    Hardik

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    The easiest and best (IMO) way to install anything in Debian is to use apt-get. Try this:

    Code:
    apt-get update
    apt-get install gcc
    You will probably have to be logged in as root user to do this.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Location
    Germany
    Posts
    21
    Hi techieMoe,

    thanks for your reply but....i dont have internet on my linux pc..I have to use it at university on windows machine and download what I need, onto my usb stick..and then use it on linux machine at home ..

    I dont have internet on my linux pc so I downloaded .deb packages about 34 different files for gcc 3.5
    is there any way except this ??

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    I dont have internet on my linux pc so I downloaded .deb packages about 34 different files for gcc 3.5
    Oh.. Didn't read the post clearly enough. That is an interesting problem. I believe it's possible to install packages with dependencies on each other by installing them simultaneously with dpkg (at least, that's how it works on RPM-based systems).

    If I remember correctly you can do this by typing:

    Code:
    dpkg -i package1.deb package2.deb package3.deb
    Registered Linux user #270181
    TechieMoe's Tech Rants

  6. #5
    Just Joined!
    Join Date
    Dec 2004
    Location
    Germany
    Posts
    21
    hi,

    thanks again for very quick reply...

    i will give it a try when I will be at home....hope it works..

    hardik

  7. #6
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,407
    how about
    Code:
    dpgk -i --ignore-depends package1.deb
    then install the other
    Brilliant Mediocrity - Making Failure Look Good

  8. #7
    Just Joined!
    Join Date
    Dec 2004
    Location
    Germany
    Posts
    21
    hi,

    thank you all..

    the solution given by techimoe worked for me. still I did not have all the files for gcc so could not install it but...i solved the dependency problem..

    another question..

    there are some .dsc and gz files I downloaded from website which were together with .deb files..e.g.

    • gcc-3.4_3.4.1ds1-7.dsc 19-Aug-2004 12:32 3k
      gcc-3.4_3.4.1ds1.orig.tar.gz 28-Jul-2004 13:02 28.9M
      gcc-3.4_3.4.3-6.diff.gz 19-Dec-2004 21:32 5.1M
      gcc-3.4_3.4.3-6.dsc


    i dont know if they are necessary and what to do with them. where to extract the .gz files and what to do with .dsc files ???

    thank you once again for your help,
    Hardik

  9. #8
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,407
    Quote Originally Posted by rangalo
    i dont know if they are necessary and what to do with them. where to extract the .gz files and what to do with .dsc files ???

    thank you once again for your help,
    Hardik
    Source packages, which consist of a .dsc file describing the source package (including the names of the following files), a .orig.tar.gz file that contains the original unmodified source in gzip-compressed tar format and usually a .diff.gz file that contains the Debian-specific changes to the original source.
    http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html
    if you install the .deb, you don't need to worry about the others
    Brilliant Mediocrity - Making Failure Look Good

  10. #9
    Just Joined!
    Join Date
    Dec 2004
    Location
    Germany
    Posts
    21
    hi,

    I installed all the packages I could download for gcc3.5 but none of the packages installed gcc and g++ executables...

    still when I type gcc at the command line, it says command not found..

    do I need to install yet another packages ? which ?


    Hardik

  11. #10
    Just Joined!
    Join Date
    Oct 2004
    Location
    Mumbai, India
    Posts
    2
    May be its installed with some other name. Try to "locate" it. I got two versions of GCC installed on my box with different names.Check out if its "gcc-3.5".

Posting Permissions

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