Installation

From Gretl
Jump to: navigation, search

Installation differs between platforms:

Contents

Windows

On Windows just download from here and press a double-click on the executable.

Linux

On the rpm-based Distros you may install one of the packages from here

On Debian and Ubuntu Gnu/Linux you have:

1. you may simply write in the terminal with the root privileges

apt-get install gretl

Usually there is an up-to-date version there, but also you may compile the newest version from the source in the tarball

When installing from the binary package your system should have the following programs on the board: dependencies When compiling from the source there are some more dependencies.

2.If you are running Debian or *buntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages.

You should be able to do this by adding a line to your /etc/apt/sources.list like this: deb http://ftp.de.debian.org/debian sid main then in terminal apt-get build-dep gretl

and sudo apt-get install gretl

3. Download the Windows package and install it with Wine.

Mac OS X

On Mac OS X, at first you need to install the GTK+ Framework for OS X (or alternate download), then just open the Gretl.dmg image and copy Gretl.app file to your Applications folder.

FreeBSD

Also a port in the FreeBSD system is available

Cygwin

  1. Install all the dependencies with setup.exe, except install GTK3.
  2. Also install xinit for X11 Server.
  3. Also install pkg-config.
  4. Restart the shell because LAPACK requires things set in the environment and are only picked up upon login.
  5. Download & install gtksourceview manually because there is no Cygwin module for that.
    1. wget http://ftp.acc.umu.se/pub/gnome/sources/gtksourceview/3.3/gtksourceview-3.3.4.tar.xz
    2. xzcat gtksourceview-3.3.4.tar.xz | tar -xvf -
    3. cd gtksourceview-3.3.4
    4. configure
    5. make
    6. make install
    7. Set PKG_CONFIG_PATH because gtksourceview installs into a different location.
      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
  6. Download gretl
    wget http://prdownloads.sourceforge.net/gretl/gretl-1.9.7.tar.bz2
  7. bzcat gretl-1.9.7.tar.bz2 | tar -xvf -
  8. cd gretl-1.9.7
  9. Set a special flag for Cygwin because the configure script doesn't work
    export LDFLAGS=-no-undefined
  10. Run configure with special options, again because the configure script doesn't work
    configure --enable-static --enable-shared --enable-gtk3
  11. If you have an older computer without SSE2 instructions, then edit all the Makefiles with SSE2 option and comment them out. Once again the configure script is broken.
    find . -name Makefile | xargs grep -i sse2
  12. Now run 'make' and 'make install'.
  13. Set your display to run X programs
    export DISPLAY=:0.0
  14. Run 'startxwin'
  15. Run 'gretl'
Personal tools