|
From: Christoph B. <us...@be...> - 2011-08-19 08:59:36
|
On 19.08.2011 10:12, Mojca Miklavec wrote:
>
>> But then I got:
>> ---------------------
>> $ ./prepare
>>
>> ./prepare: 47: aclocal: not found
>>
>> Some part of the preparation process failed.
>> Please refer to INSTALL for details.
>> ---------------------
>>
>> And in "INSTALL" and "INSTALL.gnu" the first step is to do
>> $ ./configure
>> but I only have a configure.in and configure.vms -file.
>> I'm quite confused.
>> So I installed it from the debian-repositories (for sure without any
>> context-implementation), but you could just tell me, how I can make your
>> version work. :-)
>
> One option is probably also to patch gnuplot source package from
> Debian repositories, I don't know how to do that since I don't use
> Debian (but you only need to add context.trm to other terminals and
> add one #include "context.trm" line to src/term.h).
I guess this is the easiest option if you have no experience with
compilation of source code.
I hope, the following steps do what you need (I do not run wheezy). If
not, just ask again :-)
Get the source code of the debian package:
apt-get source gnuplot
Install the required dependencies for building gnuplot (this can be a lot!):
apt-get build-dep gnuplot
Change the code like Mojca wrote:
1. copy context.trm to gnuplot-4.4*/term/ (I do not know the exact
version number)
2. Add #include "context.trm" at the end of file term.h (right before
the last #endif statement)
cd gnuplot-4.4*
dpkg-buildpackage
Go and drink a coffee...
Install the .deb package manually:
cd ..
dpkg -i gnuplot*.deb
Mark those packages with 'hold' so that they are not overwritten on the
next upgrade (and this may happen soon on testing):
echo gnuplot hold | dpkg --set-selections
echo gnuplot-doc hold | dpkg --set-selections
echo gnuplot-nox hold | dpkg --set-selections
echo gnuplot-x11 hold | dpkg --set-selections
Christoph
|