LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to upgrade gnuplot from 4.2 to 4.4 in Ubuntu environment? (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-upgrade-gnuplot-from-4-2-to-4-4-in-ubuntu-environment-864294/)

ndphysics 02-22-2011 08:30 AM

How to upgrade gnuplot from 4.2 to 4.4 in Ubuntu environment?
 
I am working in Linux in Ubuntu-environment. I could not get some of the features of Gnuplot with the 4.2 version. I tried to upgrade it. But it says the newest version is install in your computer. But it is not so. How to uninstall gnuplot 4.2 and reinstall gnuplot 4.4? May you help me in this regard please?

corp769 02-23-2011 01:23 AM

What that means is that the newest version it found in your distributions repositories is 4.2, and not 4.4, hence 4.4 has not been packaged yet. If you really can't wait, then apt-get remove gnuplot and download the source to version 4.4 and manually compile. Good luck!

corp769 02-23-2011 01:29 AM

And to help you out, here you go man:

http://www.miscdebris.net/blog/2010/...-ubuntu-linux/

knudfl 02-23-2011 04:46 PM

'sudo dpkg -i <package>.deb' will update the package, when <package>
is a later version than the already installed one.

Add this to /etc/apt/sources.list : Natty source / src :
Code:

deb-src http://mirrors.nic.funet.fi/ubuntu/ natty main restricted
deb-src http://mirrors.nic.funet.fi/ubuntu/ natty universe
deb-src http://mirrors.nic.funet.fi/ubuntu/ natty-security main
deb-src http://mirrors.nic.funet.fi/ubuntu/ natty-security universe
deb-src http://mirrors.nic.funet.fi/ubuntu/ natty-security multiverse

Next : 1) sudo apt-get update
2) sudo apt-get build-dep gnuplot
3) sudo apt-get -b source gnuplot=4.4.2-0ubuntu1
4) sudo dpkg -i gnuplot_4.4.2-0ubuntu1*

Also : Please specify Ubuntu version, every time you ask a question.
The command 'cat /etc/issue' will reply with the version.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
..

ndphysics 03-03-2011 08:13 AM

My problem was not solved. It figured it out why. My ubuntu version is 10.4 but Gnuplot 4.4 is designed for ubuntu 10.10 latest]. But I could not upgrade my ubuntu. It says "An Unresolveable error occured" Do you have any idea how to solve it please?

knudfl 03-03-2011 08:59 AM

Post # 5.

? Did you try out the solution in post # 4 ?

Following it step by step, you will get gnuplot_4.4.2-0ubuntu1<arch>.deb
created in /home/<user-name>.

ndphysics 03-03-2011 07:40 PM

Yes I tried but not working please. I had the same problem in my desktop but got solved when I upgraded my Ubuntu. But in my Labtop I have not been able to upgrade the Ubuntu. Do you think I have to put the question in different title? Thank you for your suggestion and valuable time.

knudfl 03-04-2011 04:57 AM

First build, gnuplot-4.4.0: maverick "src" was added to /etc/apt/sources.list.
Tricky : libwxgtk2.8-dev, libwxbase2.8-dev must be [lucid] versions,
because the [lucid-updates] currently are faulty packages.
http://packages.ubuntu.com/lucid/libwxbase2.8-dev

sudo apt-get -b source gnuplot=4.4.0-1 → → the result is ...
dpkg-deb: building .. 'gnuplot' in '../gnuplot_4.4.0-1_all.deb'.
dpkg-deb: building .. 'gnuplot-doc' in '../gnuplot-doc_4.4.0-1_all.deb'.
dpkg-deb: building .. 'gnuplot-nox' in '../gnuplot-nox_4.4.0-1_amd64.deb'.
dpkg-deb: building .. 'gnuplot-x11' in '../gnuplot-x11_4.4.0-1_amd64.deb'.



Second build : gnuplot-4.4.2 : 1) install pmake
2) sudo apt-get -b source libedit2=2.11-20080614-2
sudo dpkg -i \
libedit2_2.11-20080614-2_amd64.deb libedit-dev_2.11-20080614-2_amd64.deb
3) sudo apt-get -b source gnuplot=4.4.2-0ubuntu1 → → the result is ...
dpkg-deb: building .. 'gnuplot' in '../gnuplot_4.4.2-0ubuntu1_all.deb'.
dpkg-deb: building .. 'gnuplot-doc' in '../gnuplot-doc_4.4.2-0ubuntu1_all.deb'.
dpkg-deb: building .. 'gnuplot-nox' in '../gnuplot-nox_4.4.2-0ubuntu1_amd64.deb'.
dpkg-deb: building .. 'gnuplot-x11' in '../gnuplot-x11_4.4.2-0ubuntu1_amd64.deb'.

Probably the same for 32bits : I don't think, you told which architecture
you are using. The command 'uname -a' will tell.
I guess, I can upload the packages, if you don't want to build gnuplot.

..


All times are GMT -5. The time now is 03:39 AM.