Author Topic: Zgcc - Cannot Exec Cpp  (Read 2695 times)

teleute

  • Newbie
  • *
  • Posts: 15
    • View Profile
Zgcc - Cannot Exec Cpp
« on: September 16, 2005, 11:23:45 pm »
I've installed zgcc to have "make" available (in an attempt to get my bloody CF wifi working).  I've followed the instructions, but I ended up having to make my own symlinks to "make" and "gcc", which made me suspect the zgcc.sh script hadn't run properly.  When I made the links, I ran "make", which called gcc, which gave the following error:

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

Again, I'm quite suspicious about the zgcc.sh script.  I searched here and found the following post:

Quote
You are not running zgcc.sh correctly. You must execute it via:

whateverprompt> . zgcc.sh

Note the dot -- this changes the environment of the shell you are using. The way you are executing zgcc.sh, via "./zgcc.sh" or "bash zgcc.sh" or #! /bin/bash or whatever only changes a spawned environment that is then discarded. I put ". /mnt/card/bin/zgcc.sh" in my ~/.bashrc file which is in turn executed from my ~/.profile

I tried this, and got "./mnt/card/bin/zgcc.sh: not found".  But the file is there, and I can run it without the . in front.  Does anyone have any ideas?  Thanks!

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Zgcc - Cannot Exec Cpp
« Reply #1 on: September 17, 2005, 10:17:13 am »
Quote
I tried this, and got "./mnt/card/bin/zgcc.sh: not found".  But the file is there, and I can run it without the . in front.  Does anyone have any ideas?  Thanks!
Do you have a space between the dot and the /mnt/card/bin/zgcc.sh? You need a space between them.

John

teleute

  • Newbie
  • *
  • Posts: 15
    • View Profile
Zgcc - Cannot Exec Cpp
« Reply #2 on: September 18, 2005, 12:21:05 am »
Quote
Quote
I tried this, and got "./mnt/card/bin/zgcc.sh: not found".  But the file is there, and I can run it without the . in front.  Does anyone have any ideas?  Thanks!
Do you have a space between the dot and the /mnt/card/bin/zgcc.sh? You need a space between them.

John
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96114\"][{POST_SNAPBACK}][/a][/div]

OMG...I'm so sorry.  Can you tell it was late and I was really tired?  *sigh*  Thanks.