Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I want to install gcc on my Pyramid linux which is debian based. I downloaded gcc.deb. When I want to install this file, it gives me "dpkg command not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    shk
    shk is offline
    Just Joined!
    Join Date
    Jun 2010
    Posts
    12

    installing gcc using dpkg


    Hello,

    I want to install gcc on my Pyramid linux which is debian based. I downloaded gcc.deb. When I want to install this file, it gives me "dpkg command not found" error!
    I also get this error when I want to install other .deb files using dpkg command " dpkg -i finename.deb.

    I did some research and it seams that I should install package on my system, but package file is .deb file and I can't install .deb file!

    What should I do to solve the problem??? Should I install any thing on my system to install .deb files??

    Thanks a lot in advance,
    Shk

  2. #2
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    can't you install it by doing the following?
    Code:
    apt-get install gcc
    (this should be done with elevated rights)

    This should get the package from the repositories on the web. Or if you've added cd's it could also get it from the cd's.

    This will only install the compiler though. Most of the times I install the build-essential package, as it provides me everything I need.

    I haven't actually tried pyramid linux, but I will take a look at it in my VM, once I've found it.

    EDIT: I won't, I can't find anything that is worth trying.

  3. #3
    shk
    shk is offline
    Just Joined!
    Join Date
    Jun 2010
    Posts
    12
    Quote Originally Posted by Bemk View Post
    can't you install it by doing the following?
    Code:
    apt-get install gcc
    (this should be done with elevated rights)

    This should get the package from the repositories on the web. Or if you've added cd's it could also get it from the cd's.

    This will only install the compiler though. Most of the times I install the build-essential package, as it provides me everything I need.

    I haven't actually tried pyramid linux, but I will take a look at it in my VM, once I've found it.

    EDIT: I won't, I can't find anything that is worth trying.
    It's an OS for Embedded systems. I have installed it on my board.

    I have another question: should I write "gcc" in the command or "gccname.deb" ??

    Thanks a lot. I'll check it and tell you the result.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    Quote Originally Posted by shk View Post
    It's an OS for Embedded systems. I have installed it on my board.

    I have another question: should I write "gcc" in the command or "gccname.deb" ??

    Thanks a lot. I'll check it and tell you the result.
    The dpkg command is in the following syntax (for installing a specific package)
    Code:
    dpkg -i [pkgname].deb
    If the gcc package is in the file gcc.deb, you should use:
    Code:
    dpkg -i gcc.deb

Posting Permissions

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