Am 13.02.2021 um 16:31 schrieb Reynaldo Senra:
The point is that I had Ubuntu 16.04 and now 18.04. In both cases, I
tried to install Gretl from terminal and from the package manager.
However, I always got a really old version of Gretl (I think it was
the 2017c).
Well, in a newer Ubuntu version of course the gretl package is also
newer. For example, the current LTS version should be "Focal
Fossa"/20.04, and there you have 2019d.
(
https://launchpad.net/ubuntu/+source/gretl) But...
I really need to install the most recent versions of Gretl but I
haven't been unable to do it. I read that it is possible from the
source code, but it requires some knowledge that I don't have.
Could any of you give me some suggestions?
,,, if you really want the latest (which we totally understand, of
course!), then there are instructions in Appendix B of the user guide.
(under the help menu) Actually I think the beginning of that section is
unnecessarily confusing and sounds more complicated than it is; maybe it
should be rewritten. The important information to start with then
follows on the next page, quoting:
"The above steps can be much simplified on Linux systems that provide
deb-based package managers,
such as Debian and its derivatives (Ubuntu, Knoppix and other
distributions). The command
apt-get build-dep gretl
will download..."
OK, so in practice on Ubuntu you always need to type "sudo apt-get ...."
to install stuff. (The same is true for "sudo make install" after the
actual build; but not for "make" itself.) The next thing that should be
mentioned in that Appendix is that for the build-dep stuff you need to
have the src repos activated in Ubuntu's software sources. But Ubuntu
has a graphical utility for that so you just have to click on a tick box
for that.
Let me try a quick summary:
1) activate the src repos in the sources for apt (one-time action only)
2) sudo apt build-dep gretl (also just one time)
3) <in my experience still need to install some more Texlive packages
which aren't covered by build-dep...>
4) clone the gretl source code repo via git (the bleeding edge)
5) ./configure --enable-build-doc --enable-build-addons
(the Appendix B doesn't mention how to configure the build to be outside
the source tree, although Allin rightly insists that's the recommended
way...)
6) make
7) make pdfdocs
8) sudo make install
9) sudo ldconfig
Feel free to post the error message you're getting along the way.
good luck
sven