Announcement

Collapse
No announcement yet.

gcc configuration

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    gcc configuration

    I'm using kubuntu dapper.

    I'm trying to install some packages from source, but gcc won't do
    anything for me.
    I also write very simple c programs from time to time.

    What do I have to install or configure to get it to cooperate?

    Here's what happens:

    bigbird@sananda:~/installs/ico2xpm-1.1$ ./configure
    creating cache ./config.cache
    checking for gcc... gcc
    checking whether the C compiler (gcc ) works... no
    configure: error: installation or configuration problem: C compiler
    cannot create executables.

    I can't even find an stdio.h on my system!

    gcc 3.4 and 4.0 packages are installed.

    Help appreciated.

    Joe
    kubuntu Xenial - Toshiba i3 and Toshiba i7 Notebooks

    #2
    Re: gcc configuration

    How about that one ...

    Code:
    sudo apt-get install build-essential

    Comment


      #3
      Re: gcc configuration

      Thanks. That's exactly what I needed.

      Joe
      kubuntu Xenial - Toshiba i3 and Toshiba i7 Notebooks

      Comment


        #4
        Re: gcc configuration

        Hello,I had the same problem and used the command above but it couldn't found build-essential..What is that and what's most important: where is it?Thanx for any help!

        Comment


          #5
          Re: gcc configuration

          Originally posted by Fragile
          used the command above but it couldn't found build-essential
          In this case, I'd suspect your package management of being in a state of disorder ...

          You may issue the following command and post the resulting output for inspection:

          Code:
          sudo apt-get update

          Comment


            #6
            Re: gcc configuration

            It said it was completed successfully so it's ok..but it still can't find build-essential...

            Comment


              #7
              Re: gcc configuration



              It may have completed successfully, but without the output it isn't possible for us to tell whether you have the necessary repositories configured.

              Comment


                #8
                Re: gcc configuration

                Here's what I get:

                1)after sudo apt-get install build-essential:
                Reading Packages Lists.....Done
                Constructing Dependances' Tree..Done
                E:Cannot find build essential package

                2)after sudo apt-get update:
                Reading Packages Lists.....Done

                -----That's all but I translated from greek so I may be wrong(I'm pretty sure though that I'm not)

                Comment


                  #9
                  Re: gcc configuration

                  Originally posted by Fragile
                  That's all [...]
                  Could you, please, post the contents of /etc/apt/sources.list as a whole?

                  Comment


                    #10
                    Re: gcc configuration


                    # Line commented out by installer because it failed to verify:
                    #deb http://gr.archive.ubuntu.com/ubuntu/ dapper main restricted
                    # Line commented out by installer because it failed to verify:
                    #deb-src http://gr.archive.ubuntu.com/ubuntu/ dapper main restricted

                    ## Major bug fix updates produced after the final release of the
                    ## distribution.
                    # Line commented out by installer because it failed to verify:
                    #deb http://gr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
                    # Line commented out by installer because it failed to verify:
                    #deb-src http://gr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

                    ## Uncomment the following two lines to add software from the 'universe'
                    ## repository.
                    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                    ## team, and may not be under a free licence. Please satisfy yourself as to
                    ## your rights to use the software. Also, please note that software in
                    ## universe WILL NOT receive any review or updates from the Ubuntu security
                    ## team.
                    # deb http://gr.archive.ubuntu.com/ubuntu/ dapper universe
                    # deb-src http://gr.archive.ubuntu.com/ubuntu/ dapper universe

                    ## Uncomment the following two lines to add software from the 'backports'
                    ## repository.
                    ## N.B. software from this repository may not have been tested as
                    ## extensively as that contained in the main release, although it includes
                    ## newer versions of some applications which may provide useful features.
                    ## Also, please note that software in backports WILL NOT receive any review
                    ## or updates from the Ubuntu security team.
                    # deb http://gr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
                    # deb-src http://gr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

                    # Line commented out by installer because it failed to verify:
                    #deb http://security.ubuntu.com/ubuntu dapper-security main
                    # Line commented out by installer because it failed to verify:
                    #deb-src http://security.ubuntu.com/ubuntu dapper-security main
                    # deb http://security.ubuntu.com/ubuntu dapper-security universe
                    # deb-src http://security.ubuntu.com/ubuntu dapper-security universe

                    Comment


                      #11
                      Re: gcc configuration

                      Originally posted by Fragile
                      # # # etc. pp.
                      Hey, that's pretty cool; with this list of (un-) available repositories, your updates must be amazingly fast

                      O.k., for serious: you've factually blocked the package manager's access to every single repository. (A "#" at the beginning of a line reading "deb" or "deb-src" means "forget it" ...).

                      You may replace your list by the following one, thus giving APT a fair chance:

                      Code:
                      deb [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper main restricted
                      deb-src [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper main restricted
                      deb [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted
                      deb-src [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted
                      deb [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper universe
                      deb-src [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper universe
                      deb [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse
                      deb-src [url]http://gr.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse
                      deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main
                      deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main
                      deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe
                      deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe

                      Comment


                        #12
                        Re: gcc configuration

                        I tried but I got:

                        ERROR:The document could not be saved,as it was not possible to write to file:///etc/apt/sources.list.
                        Check that you have write access to this file or that enough disk space is available.

                        I tried to change permissions but I couldn't,maybe you could tell me that chmod command,I don't know the syntax,so I can change the permissions from terminal

                        Thanx

                        Comment


                          #13
                          Re: gcc configuration

                          Originally posted by Fragile
                          it was not possible to write to file [...] I tried to change permissions
                          Do not change the properties of a system-related file unless you know exactly what you're doing!

                          Instead, access the file by means of an editor launched in root mode, as for examply by:

                          - "run" command: [Alt][F2] kdesu kwrite /etc/apt/sources.list
                          - console ("konsole") session: sudo nano /etc/apt/sources.list

                          Comment


                            #14
                            Re: gcc configuration

                            I did "chmod 775 etc","chmod 777 apt" and replaced sources.list with what was mentioned above but it still doesn't find that build essential..
                            Question:Is it necessary to have Internet access in kubuntu while doing all this? ??

                            Comment


                              #15
                              Re: gcc configuration

                              It is - that's where the repositories (that contain the software) are.

                              You can try adding this line to sources.list

                              Code:
                              deb cdrom:[Kubuntu 6.06.1 _Dapper Drake_ - Release i386 (20060807.1)]/ dapper main restricted
                              and making sure the cd is available

                              FYI:
                              To edit system files type
                              Code:
                              kdesu kate
                              into the 'run command' box, on the k-menu.
                              It will open a text editor with superuser privileges. ** Be Careful With It **

                              Good Luck!

                              Comment

                              Working...
                              X