I tryed to update gnuplot to the current version but it didn't work.
I have gnuplot version 4.2.5 installed on my system which is Mac OSX
10.6. I installed it more than a year ago using macports or fink (I
can't remember).
In the terminal, I did:
$ which gnuplot
and I got:
/opt/local/bin/gnuplot
(I found that weird because in the forums I noticed that it is usually
in /usr/local and not opt/local, but I don't know if this has anything
to do with my problem.)
I downloaded the current version of gnuplot, 4.4.3, double clicked the
downloaded file to untar it, and at the terminal in that directory, I
did
$./configure
$make
$make install
After this last command I got the following:
Making install in config
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in m4
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in term
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/gnuplot/4.4/js" || .././install-sh -c -d "/
usr/local/share/gnuplot/4.4/js"
mkdir: /usr/local/share/gnuplot: Permission denied
make[2]: *** [install-jsDATA] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
Now, when I type gnuplot at the terminal I see that my version is
still the old one, 4.2.5. How do I update to the new version?
Thanks a lot.
Ze
"Permission denied" and "Error" mean the install failed, in this
case due to lack of file or directory write permission. You
will need to run make install as superuser. For example,
sudo make install
or
su -c 'make install'
or login as root, make install, and logout, via
su -
make install
^D
--
jiw
Thanks for your reply James.
I typed sudo make install, it asked me for the password, and it seems
to have installed it in /usr/local/bin. However, if I type the command
gnuplot, no matter the directory I'm in at that moment, it is the old
version, 4.2.5, that starts (i.e, the one installed in /opt/local/
bin). If I type the command /usr/local/bin/gnuplot, it is the new
version that starts.
How can I get around this? I only need one gnuplot. If I uninstall the
older version, will the new version start when I just type gnuplot at
the prompt? How do I uninstall the older version? And could that have
any bad consequences in other things, like in the way gnuplot is set
to work with latex or terminal types (I noticed the old version is set
to aqua and the new version is set to x11)?
Thanks a lot.
Ze
> Thanks for your reply James.
>
> I typed sudo make install, it asked me for the password, and it seems to
> have installed it in /usr/local/bin. However, if I type the command
> gnuplot, no matter the directory I'm in at that moment, it is the old
> version, 4.2.5, that starts (i.e, the one installed in /opt/local/ bin).
> If I type the command /usr/local/bin/gnuplot, it is the new version that
> starts.
Which one starts depends on the order in shell variable PATH
of directories /usr/local/bin and /opt/local/bin. You could
modify PATH via changes to .bashrc or .kshrc or whatever rc
file your shell uses, but it probably is more straightforward
to remove the old gnuplot. If you remove it, the new gnuplot
will run if /usr/local/bin is in PATH.
> How can I get around this? I only need one gnuplot. If I uninstall the
> older version, will the new version start when I just type gnuplot at
> the prompt? How do I uninstall the older version? And could that have
> any bad consequences in other things, like in the way gnuplot is set to
> work with latex or terminal types (I noticed the old version is set to
> aqua and the new version is set to x11)?
I don't know the answers to latter questions. Does OS 10 (or
whatever) have an Administrative / Add/Remove Software
application you can run? If so, does gnuplot 4.2.5 show up
as a program you can uninstall?
An alternative to removing gnuplot 4.2.5 is renaming it, eg
in /opt/local/bin you could use
sudo mv gnuplot gnuplot425
after which the gnuplot command will run gnuplot 4.4.3 if
/usr/local/bin is in PATH.
--
jiw
Mac OSX doesn't seem to have an application to remove software (I
couldn't find one, anyway). Also, gnuplot doesn't show up in the list
of applications. I did what you suggested and renamed the gnuplot file
in /opt/local/bin to gnuplot425 (sudo mv gnuplot gnuplot425) and it
works. Now I have the new version starting when I type gnuplot at the
prompt.
Thanks again!
Ze
> Mac OSX doesn't seem to have an application to remove software (I
> couldn't find one, anyway).
Move to trash will do
> Also, gnuplot doesn't show up in the list
> of applications.
Of course not. Each .app file contains a full tree of files required for
running the application. However, most programs installed via a
Unix-like way are installed at different positions and are being run
from the command line (like X11). Since the "list of application" is
nothing else than a directory containing files and folders, only those
things will appear there which you actually put there (or are installed
there from a pkg).
By the way, command-line stuff like latex, gzip usw. is also not in the
/Applications folder but typically within /usr or (if installed via
Fink) /sw.
--
Gruß,
Ingo