bruceravel / demeter

Process and analyze X-ray Absorption Spectroscopy data using Feff and either Larch or Ifeffit.
http://bruceravel.github.io/demeter
Other
67 stars 32 forks source link

Building on Ubuntu 15.04 #36

Closed ptbrowne closed 8 years ago

ptbrowne commented 8 years ago

I encountered some problems while building on Ubuntu using the official tutorial. I managed to get it working so I post my solutions here.

Wx failed to compile from source

At the ./Build installdeps step, wx would not install even the second time :

Makefile:1274: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255

This problem is also reported here. I could not manage to build from source so I ended up using the package from Debian.

$ sudo apt-get install libwx-perl

Then ./Build installdeps reported no more dependencies to install and I was able to ./Build.

wxt terminal not present

The default terminal was X11 but I prefer the wxt one but it was not available in gnuplot when I typed set terminal in gnuplot. I had to build gnuplot from source since Debian/Ubuntu apparently dropped support for wxt.

To build gnuplot from source:

$ sudo apt-get install libwxgtk2.8-dev libgtk2.0-dev
$ wget "http://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.4/gnuplot-5.0.4.tar.gz"
$ tar xzf gnuplot-5.0.4.tar.gz
$ cd gnuplot-5.0.4
$ env "TERMLIBS="-lX11" ./configure
$ make
$ sudo make install

After that I was able to use the wxt terminal by setting it in Artemis.

File > Edit preferences > gnuplot > terminal. Replace "x11" by "wxt". "Apply and Save".

Thanks for the Demeter suite !

ptbrowne commented 8 years ago

I reopen in case you want to update the tutorial.

bruceravel commented 8 years ago

@ptbrowne: Thanks for all this and for keeping the issue open. I will work on incorporating all your suggestions into the documentation. I am really grateful for the feedback.

The Qt terminal for gnuplot is pretty good also. Like you, I prefer the wxt terminal, but Qt is all right too. Granted, I run kde, so I'm OK with having the Qt infrastructure on my computer....

ptbrowne commented 8 years ago

Thanks to you for Demeter ! I did not know Qt terminal as I run stock Ubuntu with Gnome but I will check it out !

bruceravel commented 8 years ago

Patrick, could you take a look at http://bruceravel.github.io/demeter/documents/SinglePage/demeter_nonroot.html and let me know if I have adequately addressed all your concerns.

Thanks,B

ptbrowne commented 8 years ago

Looks good ! Thanks !