Find the answer to your Linux question:
Results 1 to 2 of 2
ths is about puppy linux 5.4.3 precise, i hsve tryed to post this question at the puppy site but have had a problem registering I am tryign to run a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    6

    checking whether C compiler works...no


    ths is about puppy linux 5.4.3 precise, i hsve tryed to post this question at the puppy site but have had a problem registering

    I am tryign to run a windows program via wine but wheni try it asks for mono 2.8 or higher...i have 2.8+ installed ... so i tryed to up grade to the latestes wine 1.5+ over the 1.4 i have installed.

    when i try to install i get the following.

    checking whether C compiler works...no
    when i check the config.log is says the following .
    Code:
    configure:3257: $? = 0
    configure:3246: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
    Target: i686-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
    Thread model: posix
    gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 
    configure:3257: $? = 0
    configure:3246: gcc -V >&5
    gcc: error: unrecognized option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3257: $? = 4
    configure:3246: gcc -qversion >&5
    gcc: error: unrecognized option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3257: $? = 4
    configure:3277: checking whether the C compiler works
    configure:3299: gcc    conftest.c  >&5
    gcc: error trying to exec 'as': execvp: No such file or directory
    configure:3303: $? = 1
    configure:3341: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "Wine"
    | #define PACKAGE_TARNAME "wine"
    | #define PACKAGE_VERSION "1.5.22"
    | #define PACKAGE_STRING "Wine 1.5.22"
    | #define PACKAGE_BUGREPORT 
    | #define PACKAGE_URL 
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:3346: error: in `/usr/wine-1.5.22':
    configure:3348: error: C compiler cannot create executables
    when i type gcc i get fatal error : no input files

    whe i check the path i get
    Code:
    /bin:/usr/bin: /sbin/: /usr/sbin:usr/local/bin: usr x11r7/bin: /root/my-applications/bin: usr/games
    and gcc is in usr/bin

    i get the same gcc error wheni try to upgrade mono...i searched for 7 hours sunday loooking for what i am doing wrong but could not solve the issue ...thnx for any help

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,709
    It sounds like you don't have the compiler tools installed. Open a command-line window and execute the command "which gcc". If it can't find it, that means you need to install the GNU compiler collection package. If it does find it (usually as /usr/bin/gcc) then try the command "gcc --version". If that works, then there is some other problem, such as incorrect ownership or permissions on the folders and/or files in question. If it doesn't, then probably something/someone has altered the permissions on gcc or its parts.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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