On 2013-09-27, Andrew wrote: > Hi, > > I'd like to install GUI vim (gvim) to GNU/Linux. I use MobaXterm.
I'm no expert on vim configuration because for me (now that I'm not using HP-UX), it just works. I'll see what I can figure out, though. > I followed a link > (http://aufather.wordpress.com/2010/08/15/building-gvim/) to > compile vim (without root login). When I ran > ./configure --prefix=$PREFIX --host=$HOST --build=$BUILD > I got error as below: Do you need to specify --host and --build, or are you using those because the author of that article did? I frequently use --prefix, but I've never had to use --host or --build. > ========================================= > configure: loading cache auto/config.cache > checking whether make sets $(MAKE)... yes > checking for 1686-linux-gcc... cc > checking whether the C compiler works... no > configure: error: in `/home/aho/usr/src/vim74/src': > configure: error: C compiler cannot create executables > See `config.log' for more details. > ====================================== That much says that your compiler isn't working. Do you know that your compiler works? Have you tried building a simple printf("hello, world\n") program? > I think the main problem is: > cc: $(INCLUDE_FLAGS): No such file or directory > > However, I can see: > ==>echo $INCLUDE_FLAGS > -I. -I$(FND_TOP)/include -I$(ORACLE_HOME)/precomp/public > -I$(ORACLE_HOME)/rdbms/demo > > > > below is the fragment of log file (config.log): > ====================================== > configure:2924: $? = 0 > configure:2913: cc -v >&5 > Using built-in specs. > Target: x86_64-redhat-linux > Configured with: ../configure --prefix=/usr --mandir=/usr/share/man > --infodir=/usr/share/info --enable-shared --enable-threads=posix > --enable-checking=release --with-system-zlib --enable-__cxa_atexit > --disable-libunwind-exceptions --enable-libgcj-multifile > --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk > --disable-dssi --disable-plugin > --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic > --host=x86_64-redhat-linux > Thread model: posix > gcc version 4.1.2 20080704 (Red Hat 4.1.2-52) > configure:2924: $? = 0 > configure:2913: cc -V >&5 > cc: '-V' option must have argument > configure:2924: $? = 1 > configure:2913: cc -qversion >&5 > cc: unrecognized option '-qversion' > cc: no input files > configure:2924: $? = 1 > configure:2944: checking whether the C compiler works > configure:2966: cc $(INCLUDE_FLAGS) -Dlinux -DLINUX -DNLS_ASIA -D_GNU_SOURCE > conftest.c >&5 My config.log looks essentially the same as yours to this point, except that mine consistenly has "gcc" where yours has "cc". In mine, the line above is configure:2966: gcc conftest.c >&5 and is followed by configure:2970: $? = 0 configure:3019: result: yes > cc: $(INCLUDE_FLAGS): No such file or directory Interestingly, the string "INCLUDE_FLAGS" does not appear _anywhere_ in my vim source hierarchy. > configure:2970: $? = 1 > configure:3008: result: no > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | #define UNIX 1 > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:3013: error: in `/home/aho/usr/src/vim74/src': > configure:3017: error: C compiler cannot create executables > See `config.log' for more details. > =================================================== > > Plesase advise, I am unable to see a specific reason for the problem in that log, other than configure can't get your compiler to work, so as I wrote at the start, I would try using cc and/or gcc to compile a simple program and see what you can learn from that. HTH, Gary -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
