This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.txt
67 lines (45 loc) · 2.11 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
xc_basic installation.
0.- Patience (please).
I'ts not always easy to verify than installation works properly
(obviously the developer's machine is the worst place to test
installation process). If you find a bug in the installation please
feel free to add an issue at https://github.com/xcfem/xc_basic/issues.
1.- Pre-requisites.
xc_basic is a C++ (and fortran) library, so a C++ and a Fortran
compiler are necessary. The library and test programs were tested
with GNU C++ and Fortran version 4.8.2
- You will also need CMake also ((http://www.cmake.org/).
- The library is suposed to be used over Linux, maybe it's possible
to use it with other Unix flavors.
- Libraries needed:
-Boost c++ libraries (<http://www.boost.org/>).
-GLib library (libglib2.0-dev).
-GTK GIMP Tookit (libgtk2.0-dev, libgtkgl2.0-dev,
libgtkglextmm-x11-1.2-dev, libgtkmm-2.4-dev).
-SQLite 3 development files (libsqlite3).
-VTK (Visualization ToolKit <http://www.vtk.org>).
-X11 (libX11-dev).
You can find a list of the Ubuntu (or Debian) packages you need to
fulfill the installation in "doc/needed_packages.txt". If you have
a Debian, Ubuntu or (probably) Linux Mint distribution you can
run the "doc/install_*whatever*_packages.sh" to install all
needed packages (*whatever* can be debian, ubuntu16,...).
2.- Make a directory to place files inside (Debian administrators
know what to do):
sudo mkdir /usr/local/src/prgs
sudo chown yourUserName.yourUserName /usr/local/src/prgs
3.- Unzip the files is "prgs" directory:
cp xc_basic.tar.gz /usr/local/src/prgs
cd /usr/local/src/prgs
tar -xzvf xc_basic.tar.gz
4.- Make a directory to compile sources.
mkdir /usr/local/src/prgs/build
mkdir /usr/local/src/prgs/build/xc_basic
6.- Use CMake for Makefile generation.
cd /usr/local/src/prg/build/xc_basic
cmake ../../prg/xc_basic/src
7.- Compile code.
make
8.- Install library.
sudo make install
8.- Verify that in the '/usr/local/lib' there is a file named 'libxc_basic.a'.