Closed berndhahnebach closed 6 years ago
this might be interesting for you already:
other packages than https://github.com/lcpt/xc/blob/master/doc/install_deb_packages.sh#L17
BTW: I'm not dedicated to Debian ATM. For some first tests of XC I could use ubuntu too. Since it is in a VM created by vagrant it does not matter anyway. Which ubuntu do you compile and run XC on?
Afterwards if XC runs on ubuntu it will be a simple to get it to work on debian too, hopefully
bernd
this might be interesting for you already:
other packages than https://github.com/lcpt/xc/blob/master/doc/install_deb_packages.sh#L17
* libsuperlu-dev instead libsuperlu3-dev * libx11-dev instead libX11-dev * python-vtk6 instead python-vtk * python-pip is missing at all
Thank you!
I've fixed that line and pushed changes to GitHub. Luis
Luis.
About the problem when running cmake, I think you have not installed xc_basic and xc_utils (yeah the installation process is a bit too complex I'll try to simplify it).
I've modified the text on "install.txt" to highlight that:
=====================================================
* Libraries you must to download from GitHub and install yourself:
-xc_basic: basic routines (download it from https://github.com/lcpt/xc_basic).
-xc_util: utilities (download it from https://github.com/lcpt/xc_utils).
=====================================================
If it is not the case, let me know. Luis.
BTW: I'm not dedicated to Debian ATM. For some first tests of XC I could use ubuntu too. Since it is in a VM created by vagrant it does not matter anyway. Which ubuntu do you compile and run XC on?
Afterwards if XC runs on ubuntu it will be a simple to get it to work on debian too, hopefully
bernd
It's Ubuntu 18.04
About the problem when running cmake, I think you have not installed xc_basic and xc_utils
Ahh, I totally missed that ... Thanks for all the informations. I will continue my afford in compiling XC this evenning and report back.
bernd
got it compiled. Had linker errors. Took me quit some time to find my vagrant box just had no disc space left :-) Another missing package libmetis-dev and some changes in xc_utils and xc (https://github.com/berndhahnebach?tab=repositories). I will go for a PR later this week. Need to sort out everything. BTW: is there some unit test or some other simple example to really be sure it is installed and to get started ... Bernd
Ahh https://gist.github.com/berndhahnebach/7d39889916cb36ea7e6ed6c0d758f9f6
Great!
You can find the verification tests for xc_utils in xc_utils/verif and those for xc in xc/verif. In both cases there is a readme file that explains what to do (it's quite simple anyway).
problems ... import xc_base does not work ... But on make install of xc_base I got no error. Where should the module be installed ? Somewhere in /usr/local ?
bernd
`` $ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import xc_base Traceback (most recent call last): File "
", line 1, in ImportError: No module named xc_base
`` from actions.snow import snowSIA
does not import either
upps, I missed the installation of the Python modules ... my fault
problems ... import xc_base does not work ... But on make install of xc_base I got no error. Where should the module be installed ? Somewhere in /usr/local ?
bernd
`` $ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import xc_base Traceback (most recent call last): File "", line 1, in ImportError: No module named xc_base
Verify that in the '/usr/local/lib' there is a file named 'libxc_utils.so'.
Have you installed the python modules?:
cd /usr/local/src/prgs/xc_utils/python_modules sh local_install.sh
upps, I missed the installation of the Python modules ...
Ok. If it doesn't work let me know.
:-) xc_utils and xc tests run fine. I need to update my script in this regard.
How to get started?
bernd
Just run all Debian installing packages and cloning and compiling XC on a clean debian stretch. The verification tests run too. The repos from lcpt github account without any patches where used :-)
See https://gist.github.com/berndhahnebach/7d39889916cb36ea7e6ed6c0d758f9f6
gave it a try on debian stretch on comit 0597827
Here is what I did: https://gist.github.com/berndhahnebach/7d39889916cb36ea7e6ed6c0d758f9f6
On cmake I run into some trouble ...