UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Most of the time, installing packages is very convenient in Ubuntu, by simply using the Synaptic Package Manager. But I met a problem.
I want to compile a package (gnuplot) myself, because if I used the Synaptic Package Manager to install it, the readline function is not enabled during its auto compilation.
So, can I just download the package through Synaptic Package Manager but do the compilation myself?
Another question, where is the package downloaded to?
Of note, using make install, as mentioned in the thread, won't allow the program to be visible to the package manager, so it won't be able to uninstall it. I'd suggest trying to create a .deb file. This is possible with checkinstall (which should be available with your package manager). You then substitute the make install command with checkinstall, and the script prompts you for info.
Hi.
First of all, you must know, that Synaptic doesn't compile anything. The packages used by Synaptic, are pre-compiled packages. The software was compiled by somebody else, and put into a binary package, which are used by package managers (Synaptic too). This is why the installation of a package is so fast.
If you want to compile a package, you need to download the source tarball from here. Here you need the gnuplot-4.2.2.tar.gz file. Download it, extract it somewhere, and than read the README and/or INSTALL files (if there any) inside the tarball. There will be described how to compile that prog. Don't forget to install -dev files for the dependecies, otherwise it will not work. Good compiling.
Don't do what is said in the link otherwise, as someone said, it won't be a package and then you go back 10 years ago when people had program spread everywhere and had to watch every week if a new version was available,..... lots of other reasons.
A quick way to do it:
First, you need lines to get the sources of your distro's gnuplot (==gnuplot+distro specific patches)
Thanks everyone very much! But I still got problems in compiling...
Thanks for all kindly replies. But I still failed in all attempts to compile the gnuplot package.
For nx5000's method, when I type "deb-src http://ftp.fr.debian.org/debian/ etch main non-free contrib", it said that deb-src is an unknown command. And I don't know how to proceed.
For pusrob's method, I downloaded the package source and followed the instructions given in the file INSTALL. That is,
./configure
sudo make
sudo make install
The results were that the package was successfully compiled, but with lot s of errors (so many that I can't post it here). And the compiled gnuplot still do not have the readline function. Even worse, there was no x11 terminal available after compilation.
Can anyone give me some ints about what's going on?
Below is the content of /etc/apt/sources.list.
By the way, how can I make these long text into a "text box" like what you have done?
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://hk.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://hk.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner
Well, you have deb-src lines as you can see. These lines tells your packaging system where to find the SOURCES of packages so that they can be recompiled.
So jump to step "Second".
As I don't really know the ubuntu package, we should check before modifying the package before recompilation:
BEFORE this step
Quote:
sed -i 's/builtin/gnu/' debian/rules
Please type this command
Code:
grep bultin debian/rules
and give the result here before proceeding. The sed command will replace in the "debian makefile" readline bultin in gnuplot by readline from GNU which is what you need.
Maybe these packages in ubuntu are different, but shouldn't be..
To make big text areas, select the text (double clicking or triple clicking for the whole line) and click on QUOTE button (the icon above, left to # )
in which I saw something likely to be relevant: -without-gnu-readline
Should I change this line and then follow your instruction?
Another question, in my current gnuplot, not only is the readline function disabled, but also the ... well, I don't know how to say... I can't use keys like delete, home, end, and that if a line is full, it doesn't continue to the next line, instead the typing following becomes invisible (but they did got inputted!). I can't guess what the problem is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.