Author Topic: Help with c compiler  (Read 3235 times)

darin3200

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://
Help with c compiler
« on: February 15, 2004, 04:11:57 pm »
I am trying to install the zgcc c compiler on my sl-5500. So far I have followed the instructions in this document
http://s91215199.onlinehome.us/zaurus/zgcc...cc2install.html
and I can not get anything to complie. I also run ./configure files in programs I am trying to build from source and I get

# ./configure
loading cache ./config.cache
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

I am running OZ 3.3.5 if that would make a difference.

Any help would be greatly appreciated.
Thanks,

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Help with c compiler
« Reply #1 on: February 15, 2004, 07:23:13 pm »
see config.log for more details
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Anonymous

  • Guest
Help with c compiler
« Reply #2 on: February 15, 2004, 07:36:25 pm »
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistak

configure:765: checking for gcc
configure:795: checking for cc

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Help with c compiler
« Reply #3 on: February 16, 2004, 06:47:15 am »
Quote
configure: error: no acceptable cc found in $PATH

Is gcc in your PATH? (type export at the terminal)
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Help with c compiler
« Reply #4 on: February 16, 2004, 06:59:11 am »
Also try to compile and run the foo.c example  on the page you mention.
SLC-860 cacko / senao wifi

darin3200

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://
Help with c compiler
« Reply #5 on: February 16, 2004, 10:25:29 pm »
Ok, I reinstalled the entire thing  and it still didn\'t work. The problem was the file that contains all the export and symlink commands would run but no actually do the commands. I went in and typed the entire file in line by line (over ssh though, or else I wouldn\'t have any thumbs   ) and it works! Once I checked more export paths and relized gcc wasn\'t in there I knew I had to add it by hand. Thanks for all the help

darin3200

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://
Help with c compiler
« Reply #6 on: February 16, 2004, 11:53:39 pm »
I have restarted my zaurus and now none of the paths are there. I have also put all of the path into my /etc/profile and I restart and nothing. The paths are there in export put I can\'t run gcc with a simple gcc command anymore. Any ideas?
thanks

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Help with c compiler
« Reply #7 on: February 17, 2004, 07:01:27 am »
You could create a shell script which you source before you start development (stick it in ~/). If you want them to always be available look at /opt/QtPalmtop/qpe.sh (I think that\'s where it lives) and change the PATH and (possibly) LD_LIBRARY_PATH there.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva