Solved

GCC Setup

Posted on 1998-10-28
4
331 Views
Last Modified: 2013-12-16
I am having difficulty setting up GCC 2.8.1 on an HP9000/I-70 with HPUX ver 10.20.  I realize that I also need
to setup GAS (binutils).  I am having both lex and bison errors (though I did install, then reboot a bison parser (1.25).  I believe the directions in general may be over my
head a little as I am a new sysadmin.  Any help would be greatly appreciated.
0
Comment
Question by:jessicacampbell
  • 2
4 Comments
 
LVL 3

Expert Comment

by:elfie
ID: 1812269
if you're talking about gcc, gas and bison shouldn't lex be flex then?
0
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 50 total points
ID: 1812270
Hi Jessica,

  For binutils and other GNU programs, just cd into the extracted archive directory, and then build them like so -

  sh Configure
  make install

  This will configure the makefiles appropriately for your system, which is a step you may be missing.  Then, it will compile the programs (if necessary) and put them in pre-defined locations (usually /usr/local/{bin,lib,man}.
  Note that gcc will be a bit more complex than this, because it has to be used to compile itself a few times - but print out its README's and you'll do ok.
  However, if you do get problems building the files after running Configure, make sure you've got the latest version of everything by checking http://www.gnu.org/order/ftp.html
  Finally, if all continues to fail, you should look for a binary version of gcc for your platform (do a Web search).  However, this should only be the case if you don't actually have any sort of C compiler installed already.

Regards,
 David Williams
0
 

Author Comment

by:jessicacampbell
ID: 1812271
Thank you for taking the time to help, it is appreciated!
0
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1812272
 My pleasure, Jessica, and I'm happy to hear that what I said was of help to you.
  Let me know if you hit any further problems!

Regards,
 David Williams
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question