phreeqpython
phreeqpython copied to clipboard
Successful installation of wrapper & library Android Termux
Warning IPHREEQC official libs are same as VITENS ...change $PREFIX
You can compare sizes via (VItens are way bigger)
ls -sh libiphreeqc*
cd $PREFIX/local/lib
[default official]
28M libiphreeqc-3.7.3.so 4.0K libiphreeqc.la 56M libiphreeqc.a 0 libiphreeqc.so
cd $PREFIX/lib
[Vitens]
89M libiphreeqc-3.7.3.so 4.0K libiphreeqc.la 226M libiphreeqc.a 0 libiphreeqc.so
Extension of the IPhreeqc 3.3.7 module (Parkhurst&Appello). This extension aims to add more flexibility to the IPhreeqc module by exposing more information to the C extension. Instead of relying on SELECTED_OUTPUT this extensions enables users to directly gather information such as the pH, SC, speciation, element totals etc. of solutions.
git clone https://github.com/Vitens/VIPhreeqc
FC=gfortran-11 CC=gcc-11 CXX=g++-11 ./configure --prefix=$PREFIX
make -j4
make install
https://github.com/Vitens/phreeqpython
pip install -U phreeqpython
It will install easily but default libs will not work as are not compiled for arm
Lib location, default names & replacement:
cd $PREFIX/lib/python3.9/sitepackages/phreeqpython/lib/
ls
rm *
ln -s $PREFIX/lib/libiphreeqc-3.7.3.so viphreeqc.so
Thus, first step is required (see above)