Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

updating gnuplot

1,192 views
Skip to first unread message

Ze

unread,
Mar 29, 2011, 6:48:37 AM3/29/11
to
Hi all,

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

James Waldby

unread,
Mar 29, 2011, 11:00:50 AM3/29/11
to
On Tue, 29 Mar 2011 03:48:37 -0700, Ze wrote:
> 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. [...] [at] /opt/local/bin/gnuplot

> 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
[...]

> "/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?

"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

Ze

unread,
Mar 29, 2011, 2:45:10 PM3/29/11
to
>
> "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

James Waldby

unread,
Mar 29, 2011, 4:03:47 PM3/29/11
to
On Tue, 29 Mar 2011 11:45:10 -0700, Ze wrote:
> James Waldby wrote:
>> "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

> 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

Ze

unread,
Mar 30, 2011, 6:09:14 AM3/30/11
to
> 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

Ingo Thies

unread,
Mar 31, 2011, 10:55:51 AM3/31/11
to
On 30.03.2011 12:09, Ze wrote:

> 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

ysr...@gmail.com

unread,
Jul 29, 2012, 3:21:53 PM7/29/12
to
I got the same error from 'make install'. I work on the linux server and i dont have root password. Is it possible to install on my home directory? Could you please tell me how?
Many thanks.

hrimthurse

unread,
Jul 29, 2012, 5:39:31 PM7/29/12
to
On 07/29/2012 09:21 PM, ysr...@gmail.com wrote:
> I got the same error from 'make install'. I work on the linux server and i dont have root password. Is it possible to install on my home directory? Could you please tell me how?
> Many thanks.


Yes that's possible, you can specify the install directory when using
configure:

./configure --prefix=$HOME --program-suffix=-4.6.0
make
make install

The prefix specifies the path in which gnuplot is installed. With
"--prefix=$HOME" the executable file will be in $HOME/bin, so you could
add this to your $PATH. Some distributions do this as default, type
"echo $PATH" to check this. If $HOME/bin is not in your PATH, add
"PATH="$HOME/bin":$PATH to your .bashrc.
Note: Some people like to use an extra directory like $HOME/usr to keep
things clean.

The "program-suffix" is appended to the bin file. If you use "-4.6.0" as
a suffix, the executable file is named "gnuplot-4.6.0". So you can still
call the normal gnuplot with the command "gnuplot".

For more information use ./configure --help
0 new messages