gcc help needed
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: gcc help needed

  1. #1
    Senior Member
    Join Date
    May 2003
    Posts
    472

    gcc help needed

    hellooo every one

    friends when i try even a simple program comilation with gcc like
    #gcc a.c
    it states

    gcc: installation problem, cannot exec `as': No such file or directory

    i am unable to locate the package `as`...pls help me in this regard i want to remove this error as it doesnt allow gcc to make executables ... and i need to from a source executables badly...
    i cant afford reinstallation of RH 7.3..the os used....may be some one @ AO helps me...lokking @ AO for help buddies.
    guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    1,050
    try gcc -o <filename> <file name.c> or a simple make a
    By the sacred **** of the sacred psychedelic tibetan yeti ....We\'ll smoke the chinese out
    The 20th century pharoes have the slaves demanding work
    http://muaythaiscotland.com/

  3. #3
    Senior Member
    Join Date
    May 2003
    Posts
    472
    same problem exists

    [root@local root]# gcc -o a a.c
    gcc: installation problem, cannot exec `as': No such file or directory
    [root@local root]# make a
    cc a.c -o a
    cc: installation problem, cannot exec `as': No such file or directory
    make: *** [a] Error 1
    guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    1,050
    Have you tried up-dating gcc ?
    By the sacred **** of the sacred psychedelic tibetan yeti ....We\'ll smoke the chinese out
    The 20th century pharoes have the slaves demanding work
    http://muaythaiscotland.com/

  5. #5
    Senior Member
    Join Date
    May 2003
    Posts
    472
    gcc -v shows

    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
    gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)

    this is the same that comes bundeled with RH 7.3...it worx fine on other m/cs but i think in installation i have left some package....
    guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;

  6. #6
    Senior Member
    Join Date
    Feb 2003
    Posts
    282
    Havent used gcc in a while, sounds like the file as.exe is either missing or cannot be found in your path:

    from http://sunsite.nus.edu.sg/solaris_2.5/faq.html#q4

    The 'as' program can be found in the directory
    /usr/ccs/bin/

    You will need to add this to your UNIX PATH. If you cannot find this in the above directory, you may not have installed all of the Sun packages. See the next question also.

    EDIT: Ok as.exe is an assembler used by cc (gcc) and should be found in the binutils rpm package, installed ls & as should be located in usr/bin and this should also apear in your $PATH

  7. #7
    Senior Member
    Join Date
    Jan 2002
    Posts
    1,207
    Strange.

    Several things:

    - as is not in /usr/ccs/bin (that directory is only used on some other types of Unix IIRC)
    - as is not called "as.exe". Unix executables do not usually end with .exe (although they're not forbidden from doing so)
    - as should be installed by default in /usr/bin/as in Redhat 7.3

    As the error message suggests, there really is an installation problem.

    The package containing /usr/bin/as is "binutils". However it should normally be installed if gcc is.

    Try reinstalling the binutils package. If that doesn't help, then maybe you've managed to break something. Did you install anything without respecting dependencies?

    Slarty

  8. #8
    er0k
    Guest
    dude.. gcc 2.96 is the worst version to date. Incompatible with gtk+2, etc etc

    What i would do, since its so risky to try and recompile gcc, i would back up what i need and install a good distro, like slack 9 :P

  9. #9
    Senior Member
    Join Date
    May 2003
    Posts
    472
    well several things to clear up...buddies no re installtion... i am in a big FIX....sorry erOK .....binutils is installed... all dependencies honoured....i would try to reinstall binutils....well salatry infact what so ever be the mistakes of journey....he has helped....he deserves appriciation....
    guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;

  10. #10
    Senior Member
    Join Date
    May 2003
    Posts
    472
    installing binutils have helped........but again a new problem has crept in.....
    {seems to be ....every prob has a sol. and for every sol. there exists another prob.......getting true to larger extent...}

    now gcc says

    /usr/bin/ld: cannot open crt1.o: No such file or directory
    collect2: ld returned 1 exit status

    i have checked with the journey's link...i installed byacc...and flex...but none helps....
    i look @ gcc FAQ...no listing....now looking @ AO
    guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;

Posting Permissions

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