LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2015, 09:55 AM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Rep: Reputation: Disabled
Installing gnuplot version 5.0


Hi there. I have a problem installing the newest version of gnuplot which is 5.0. I downloaded it from this website (sourceforge): a source tarball. The Ubuntu 12.04 archive manager in my laptop placed it in the directory /home/alex/gnuplot-5.0.0.tar. I opened the directory/folder with a click and began reading manuals. The install procedure (read INSTALL.gnu) calls for issuing this command:

Quote:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
It is impossible to get to the directory gnuplot-5.0.0.tar via a terminal. If I type cd gnuplot-5.0.0.tar it says that this is not a derectory. If I omit .tar it does not recognize the name at all. I tried to rename it but after that I could not open it even with a click.

What shall I do?

Thanks, - A.

Last edited by AlexBB; 01-31-2015 at 02:53 PM.
 
Old 01-31-2015, 03:54 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
This is the simple-minded GUI oriented approach that I use:-

From http://sourceforge.net/projects/gnuplot/files/
I selected
Quote:
Looking for the latest version? Download gnuplot-5.0.0.tar.gz (5.0 MB)
This downloaded
Code:
/home/jeremy/Desktop/gnuplot-5.0.0.tar.gz
I double-clicked on this file and (see attached) selected the directory gnuplot-5.0.0 and dragged it onto my desktop.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2015-01-31 21:49:56.png
Views:	193
Size:	28.0 KB
ID:	17475  
 
1 members found this post helpful.
Old 02-01-2015, 10:06 AM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Brilliant. Thank you much. I am already in the directory, however my joy was premature. After I ran ./configure command as recommended in the file INSTALL.gnu the installer ran thru all the steps and I decided to check the version. This is what I got:

Quote:
alex@alex-HP:~/Desktop/gnuplot-5.0.0$ apt-cache policy gnuplot
gnuplot:
Installed: 4.4.3-0ubuntu3
Candidate: 4.4.3-0ubuntu3
Version table:
*** 4.4.3-0ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
100 /var/lib/dpkg/status
In other words I still have the old version 4.4.3.

Last edited by AlexBB; 02-01-2015 at 10:19 AM.
 
Old 02-01-2015, 11:07 AM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
You have two versions.
One was installed from the repositories and is in /usr/...

Your recently compiled one sits somewhere in your home directory.

The repository one takes precedence.
 
Old 02-01-2015, 02:12 PM   #5
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
I'm sorry, I think you are mistaken. gnuplot-5.0.0 is a folder. How can I prove that the active gnuplot is 5.0?
 
Old 02-01-2015, 05:05 PM   #6
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Any test I run shows me that it is NOT gnuplot 5.0.0.
 
Old 02-01-2015, 05:16 PM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
There are quite some steps involved in installing a package from source. Usually it is:
Code:
./configure
make
make install
Once it is installed, you must find out where it was installed and make sure you run it from that installed place.

Furthermore, it seems that you try or tried to install Gnuplot outside the Ubuntu package manager. So
Code:
apt-cache policy gnuplot
will not ever show you what you just installed. Apt-get doesn't have any notice what you did.

Ubuntu might have a special procedure to compile a package from source which does involve the package manager. It is like that in Debian and Ubuntu is a Debian derivative. I don't know Ubuntu but you should check that. It is always better to involve the package manager. If you don't you'll run into surprises when you upgrade your system.

I know you are struggling some longer with Gnuplot, but I don't know what your exact problem is. But in any case, compiling from the source tarball is really, really the very last resort. And your problem must really be pressing in order to want that.

If the Ubuntu repositories offer the source package and you can use Ubuntu tools to build it that should be the way before trying the tarball.

jlinkels
 
Old 02-02-2015, 07:39 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Version 4.6 is the latest Debian repository version - 5.0.0 has to be compiled from source.

There are a number of possible actions you could take which would give precedence to 5.0.0.
 
Old 02-02-2015, 08:44 AM   #9
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
JeremyBoyden, what are the actions you are referring to? Jlinkels, thanks for all that information. I forgot to mention I tried make install but not make alone. It failed because it could not create a folder, I think it was usr/local/gnuplot. Said permission denied. I am away from that machine now, may be mistaken. Later today I will try to create this folder manually, will see what'll happen.

I used archive manager to open the tarball. Otherwise it could not have opened and created the folders. Is archive manager the same as Ubuntu package manager?

Thanks, - A.
 
Old 02-02-2015, 11:15 AM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by AlexBB View Post
JeremyBoyden, what are the actions you are referring to? Jlinkels, thanks for all that information. I forgot to mention I tried make install but not make alone. It failed because it could not create a folder, I think it was usr/local/gnuplot. Said permission denied. I am away from that machine now, may be mistaken. Later today I will try to create this folder manually, will see what'll happen.
You need root permissions in order to install it in /usr/local/

Quote:
Originally Posted by AlexBB View Post
I used archive manager to open the tarball. Otherwise it could not have opened and created the folders. Is archive manager the same as Ubuntu package manager?
Archive manager is something you use to open a tar archive. The Ubuntu package manager keeps track of all packages on your system, including dependencies. The two are not even related. it is usefel to spend some time reading about the package manager of your system.

jlinkels
 
Old 02-02-2015, 01:28 PM   #11
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
You know, I am an application programmer and I have my hands full with numerical simulations of various kinds and handreds of other things. I know it would be very profitable for me to learn the Ubuntu OS in detail but I simply have no time. This is why I come here and post questions.

Now I ran make command that gave me a massive, multipage output, which I cannot even begin to understand, and then make install command which came back with two errors, one of them is:

Quote:
make[2]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/local/share/gnuplot/5.0/js'
/bin/mkdir: cannot create directory `/usr/local/share/gnuplot': Permission denied
So, I have to figure out what to do.

Thanks, - A.

Last edited by AlexBB; 02-02-2015 at 02:05 PM.
 
Old 02-02-2015, 04:33 PM   #12
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
How do I get the root permission?

Quote:
You need root permissions in order to install it in /usr/local/
 
Old 02-02-2015, 08:21 PM   #13
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Do you really need the absolute latest version of gnuplot?
What's wrong with using 4.6?
 
Old 02-02-2015, 08:42 PM   #14
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Jeremy hi. It is a good question. Actually I am not so sure. Just tonight I created a 3D image of the sphere (very beautiful) with meridians and parallels I need for further demos, so 4.6 version works, HOWEVER, I believe that there are a few bugs in 4.6 which hopefully will be removed in 5.0. For instance set term png does not work when I tried it. Also I hope the pdf manuals will improve. When I tried to use user manual for 5.0 and write commands in 4.6 many commands were not recognized, so I went back to 4.6. The manuals are atrocious and I have to try various combinations to find the correct spelling. The bottom line: I hope a switch to 5.0 will improve productivity a little bit.

Thanks, - A.

Last edited by AlexBB; 02-02-2015 at 08:45 PM.
 
Old 02-03-2015, 07:42 AM   #15
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Actually the two versions are substantially different - see http://gnuplot.info/documentation.html which contains documentation for 4.6, 5.0 and the differences.

IMOH The documentation looks pretty decent.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulties for installing gnuplot gnugpl Linux - Newbie 9 07-19-2012 02:01 PM
Yum is installing an old version of subversion -- how can I get the latest version? dhjdhj Linux - Newbie 6 06-18-2009 01:34 AM
Gnuplot allycavs Linux - Software 5 02-04-2005 07:31 AM
uninstalling old software version and installing the new version RottenMutt Linux - Newbie 4 07-10-2003 11:32 PM
problems installing gnuplot on RH 7.2 Hano Linux - Software 2 10-23-2002 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration