gnuplot

Hello all, I'm a complete newbie in mac and I'm quite lost. Nevertheless come from Linux world, so I'm familiar with comands and all this stuff.

I would need to install gnuplot, but I don't know where to start. I have downloaded the sources, and tried to instal as usual in Linux systems:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Of course, the problem is I don't have gcc. Should I try to install every package solving dependences by hand, or is there any other more convenient method?

Thanks.

Developer Tool

GCC comes with Apple developer tools. You can install them from your Leopard (or Tiger) DVD or download them from connect.apple.com (you'll need to open a free account if you haven't done so already).

In general you'll need to install the developer tools if you are planning on compiling anything.

Good luck,

Andrés

Hello Andrés. I have

Hello Andrés. I have installed xcode from DVD, so I could to run configure without problems. Now I have got a problem when compiling.

$ make
Making all in wxterminal
make[1]: Nothing to be done for `all'.
g++ -g -O2 -o gnuplot alloc.o axis.o breaders.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o variable.o version.o -lreadline -lncurses -lz
Undefined symbols:
"_rl_forced_update_display", referenced from:
_restore_prompt in command.o
"_rl_ding", referenced from:
_alert in mouse.o
"_history_list", referenced from:
_write_history_list in history.o
"_rl_complete_with_tilde_expansion", referenced from:
_rl_complete_with_tilde_expansion$non_lazy_ptr in plot.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [gnuplot] Error 1
make: *** [all-recursive] Error 1

I guess I have to look for in google...

By the way, what should I do once compiled the program, something like sudo make install?

Re: gnuplot

Hello,

Those errors are due to the readline library not being found. You need to include libedit dylib as part of the link step:

In bash -

export LDFLAGS="-ledit"
./configure ....

Or something like that, depending on what you used for your configure statement.

Hope that helps,

Dave

Hello. Finally I found the

Hello. Finally I found the solution here.

I had to configure with --with-readline=builtin option. In that page it seems there is other related problems... but by the moment it seems to work for me (in the link, someone said "this is a problem with OSX itself"), so... XD.

Thaks a lot.

fink? macports?

Glad to hear you solved your problem... Just one comment:
Have you tried Fink (http://www.finkproject.org/) or MacPorts(http://www.macports.org)? gnuplot 4.2.3 is contained in both projects. Even if you prefer to compile stuff yourself, taking a look at the MacPorts build scripts of a package can save you lots of time :)

Nice tool, but old versions...

Hello, I'm trying fink, and it seems to be a very powerfull and usefull tool :D. Nevertheless, I'm only abled to install the 4.0.0 version of gnuplot... :(. It is not a very important problem but...

use the unstable tree

software in fink's stable tree is usually quite outdated. Most people I know use the unstable tree, and it seems to be quite stable, despite its name :) I have opted to use the unstable tree during fink installation, but it seems that you can also switch trees once fink is installed, see http://www.finkproject.org/faq/usage-fink.php#unstable

Yes, it is quite easy to set

Yes, it is quite easy to set the unstable tree, only to select it in preferences in finkcomander :D. Anyway, the same version of gnuplot is there, 4.0. Are you able to find other later version in fink?

I'll keep the version I installed from source, but is good to know that this great tool exists. Thaks.