|
From: Mojca M. <moj...@gm...> - 2008-01-21 22:40:46
|
On Jan 21, 2008 11:28 PM, Ethan Merritt wrote:
> On Monday 21 January 2008 14:18, Mojca Miklavec wrote:
> >
> > I have tried to compile a fresh gnuplot version (4.2.2) and it the
> > compilation says:
> > checking for remove_history in -lreadline... no
> > configure: WARNING: GNU readline not found - falling back to
> > builtin readline
> >
> > Does that mean that gnuplot interprets the current line?
>
> I have not experimented with the builtin readline, so I don't
> know whether it handles 8-bit characters or UTF8 characters
> gracefully.
>
> I suggest that you add "-lreadline -lhistory" to CFLAGS and
> try ./configure again. This is an OSX peculiarity.
How exactly do I do that? I have tried this, but it fails (4.2.2, I
will try with the cvs version again):
> export CFLAGS="-lreadline -lhistory"
> ./configure
checking for a BSD-compatible install... /sw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error:
C compiler cannot create executables
See `config.log' for more details.
Mojca
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1472: checking for a BSD-compatible install
configure:1527: result: /sw/bin/ginstall -c
configure:1538: checking whether build environment is sane
configure:1581: result: yes
configure:1646: checking for gawk
configure:1662: found /sw/bin/gawk
configure:1672: result: gawk
configure:1682: checking whether make sets $(MAKE)
configure:1702: result: yes
configure:1921: checking for gcc
configure:1937: found /usr/bin/gcc
configure:1947: result: gcc
configure:2191: checking for C compiler version
configure:2194: gcc --version </dev/null >&5
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2197: $? = 0
configure:2199: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic
--program-prefix= --host=i686-apple-darwin8
--target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
configure:2202: $? = 0
configure:2204: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2207: $? = 1
configure:2230: checking for C compiler default output file name
configure:2233: gcc -lreadline -lhistory conftest.c >&5
/usr/bin/ld: can't locate file for: -lhistory
collect2: ld returned 1 exit status
configure:2236: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "gnuplot"
| #define PACKAGE_TARNAME "gnuplot"
| #define PACKAGE_VERSION "4.2.2"
| #define PACKAGE_STRING "gnuplot 4.2.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gnuplot"
| #define VERSION "4.2.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2275: error: C compiler cannot create executables
See `config.log' for more details.
|