AlVin
1.0
A C++ implementation of the Vinberg's algorithm for Q, Q( sqrt(d) ) and Q( cos(2 pi / 7) )
|
This page is divided into the following sections:
The following steps were tested on Ubuntu, Linux Mint and Fedora. With other distributions the commands may vary slightly.
First, install everything you will need to compile the program.
You will need g++ and cmake to compile AlVin and CoxIter. The libraries graphviz, pcre and pari are needed for CoxIter and libxml2 is an additional library needed by AlVin. The easiest way to obtain the source code is using git.
On Ubuntu, Linux Mint or any Debian-based distribution, type the following commands in a Shell:
On Fedora, type the following commands in a Shell:
With a shell, go to the directory where you want to install AlVin and type the following:
We also need the following libraries: crlibm, GAOL, igraph and Eigen
You can either download the libraries separately or use the versions given with AlVin. In the latter case, type the following commands:
You can now build AlVin:
With a shell, go to the directory where you want to install AlVin and type the following:
The compilation should be done withour error or warning. Now, AlVin is usable.
Remark: If you don't have Git, you can simply download AlVin and CoxIter here: https://github.com/rgugliel/CoxIter/archive/master.zip and https://github.com/rgugliel/AlVin/archive/master.zip
If one of the library (PCRE, PARI/GP) is installed but is not found, try to run the following command:
If you want to manually install PCRE, you can do as follows: Get the latest 8.x version on the officiel website or use version 8.39 (do not use PCRE2). To do that, type the following commands in a shell:
Then, you can delete the temporary files:
First, open a terminal and enter the following command to install the prerequisites:
Now, download the last version of GMP from the official website.
Extract the downloaded file and open a terminal in GMP folder. Then, use the following commands:
We can now download Alvin. With a shell, go to the directory where you want to install AlVin and type the following:
We also need the following libraries: igraph and Eigen
You can either download the libraries separately or use the versions given with AlVin. In the latter case, type the following commands:
You can now build AlVin:
First, we need to download CygWin: https://cygwin.com/install.html
Then, we need to install CygWin together with the following packages:
We will suppose that CygWin was installed in "c:/cygwin/". You can choose any path you want but be sure not to include any space.
Once this is done, download PARI (http://pari.math.u-bordeaux.fr/) into your CygWin folder (c:/cygwin/home/YOURNAME/) and extract it. Then, to install PARI, open the CgyWin terminal, and type the following:
Copy the file "c:/cygwin/usr/local/lib/libpari-gmp.dll" to "c:/cygwin/bin/libpari-gmp.dll"
With a shell, go to the directory where which contains AlVin and CoxIter
We also need the following libraries: igraph and Eigen
You can either download the libraries separately or use the versions given with AlVin. In the latter case, type the following commands:
You can now build AlVin: