mkdir gretl-git
# change directory to gretl-git
cd gretl-git
#build the dependencies, but sometimes you will have to install the dependencies one by one
sudo apt-get build-dep gretl
./configure --enable-build-doc --enable-openmp
make
make pdfdocs
sudo make install
#chck to see if Gretl runs
gretl
#OPTIONAL
#some dependencies
# curl si libgtk
sudo apt-get install libcurl4-openssl-dev && apt-get install libgtksourceview2.0-dev
#json
sudo apt-get install libjson-glib-dev
#/usr/local/bin/gretl_x11: error while loading shared libraries: sau libgretl-1.0.so.0: cannot open shared object file: No such file or
sudo ldconfig