Results 1 to 6 of 6

Thread: Problem to compile a program under linux

  1. #1
    Join Date
    Jul 2009
    Posts
    127

    Problem to compile a program under linux

    Hello
    I would like to compile my application Xandros Linux distribution, so I watched how he had done in various forums and FAQs and I'm trained with small programs like "Hello World!", but it does not work! Can someone help me please? thanks in advance.

  2. #2
    Join Date
    Jul 2009
    Posts
    127

    Re: Problem to compile a program under linux

    Hey,
    I tried to compile my program by following instruction for a book, this i show I did it.
    Code:
    g + +-o program test.cpp
    This gives my an error
    Code:
     "bash: g + + command not found"!!
    I do not understand what I can do? I am fairly new to linux operating system, so guys please help me out.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Problem to compile a program under linux

    Hi,
    I think you have no C + + compiler installed. The error is because if can not find g + +. Either you find a CCG in the archives of your distribution installed by package manager, or you find another distribution in any facility included a C + + compiler.
    Acquired by conscience:
    Code:
    $ Su --
    password
    # updatedb
    # locate g + +
    Hope this helps you.

  4. #4
    Join Date
    Jul 2009
    Posts
    127

    Re: Problem to compile a program under linux

    Hello
    Yes, when I go to synaptic manager, there is the gcc package installed. And when I do a search for g + + in the synaptic manager, I found- libstdc + + 5 and libstdc + + 6. Well when I do "updatedb", it hangs and nothing happens. "Locate g + +" does not work either (it returns me the prompt). Any more recommendations on this.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Problem to compile a program under linux

    Hi
    Well when I do "updatedb", it hangs and nothing happens.
    Does not block, this is normally the base and returns to the prompt.
    "Locate g + +" does not work either
    not g + +, otherwise you would have found gcc not g + +
    If you are a debian user or debian based user then
    Code:
    apt-get install g + + 
    apt-get install make
    This should do the trick.

  6. #6
    Join Date
    Jul 2009
    Posts
    127

    Re: Problem to compile a program under linux

    Hi
    apt-get install g + +
    No version of g + + is available, but it exists in the database, I think the package is missing, it has become obsolete, or is only available from another source.
    Code:
    apt-get install make
    The error is
    Code:
    Could not find package make.
    updatedb
    The error is
    / usr / bin / find: /. Config: No such file or directory type.
    And Xandros is a Debian based operating system.

Similar Threads

  1. How to compile program for PowerPC Ubuntu?
    By Dipanwita in forum Operating Systems
    Replies: 1
    Last Post: 24-01-2012, 06:09 AM
  2. Replies: 4
    Last Post: 22-09-2010, 12:28 PM
  3. Compile java program from mobile
    By Maya Angelou in forum Software Development
    Replies: 4
    Last Post: 01-04-2010, 09:15 AM
  4. Compile and execute a program in java
    By ISAIAH in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 01:07 PM
  5. How compile and install softwares from source in linux?
    By Baker in forum Operating Systems
    Replies: 4
    Last Post: 03-03-2009, 12:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,727,179,794.01558 seconds with 17 queries