Conda is quite convenient for non-root users to install softwares in Linux system. But sometimes there is no packages available in anaconda repository and we have to install these softwares from source. This post introduces the way to compile and install softwares from source, use the Kyoto Cabinet Perl module as an example.
According to conda document, conda packages for Linux and macOS compilers is available since Anaconda 5.0. These packages are:
Here we install conda gxx:
conda install -c anaconda gxx_linux-64
Fortunately, there is already a kyotocabinet library available in conda repository.
conda install -c conda-forge kyotocabinet
Install Perl through conda:
conda install -c conda-forge perl
- Note: Perl under conda takes different environment other than Perl in system (i.e., /usr/bin/perl).
perl -MKyotoCabinet -e 'print $KyotoCabinet::VERSION, "\n"'
It will output:
Now, the KyotoCabinet Perl package installed correctly.