Menu

ng-spice 26 wont configure: linux mint

Help
Mashly
2014-06-17
2014-06-26
  • Mashly

    Mashly - 2014-06-17

    Hi,

    When using this command to configure ng-spice 26, ../configure --with-x --with-readline=yes --disable-debug, I get the error below.

    checking for gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/home/matt/Downloads/ngspice-26/release':
    configure: error: C compiler cannot create executable

    Does sanyoone know what this could be?

    Thanks

    Mash

     
  • Justin Fisher

    Justin Fisher - 2014-06-17

    Hi Mash.

    I had the same issue when compiling for CentOS. I needed to set the compiler to the one I had on my system, which wasn't gcc and then everything worked fine.

    There is as I recall something about this in the readme for the install, if not take a look at the compile help. I can't remember the exact syntax, but if you look at the documentation, it's in there somewhere.

    --
    Justin.

     
  • Francesco Lannutti

    Hi Mash,
    try to set the environment CC variable before launch configure in this way:
    1) export CC=<YOUR_COMPILER> or setenv CC <YOUR COMPILER="">
    2) ./configure ...

    Fra

     
  • Mashly

    Mashly - 2014-06-26

    Thanks for your help guys, I eventually managed to find the packages I needed to compile a c program.

     

Log in to post a comment.