- Web Server (any will do that supports CGI perl execution)
- SQLite
- - Perl Modules
+ - Perl Modules (Run the provided ./install_modules.sh)
- git (git clone https://github.com/wbudic/LifeLog)
-- Note - Perl and some modules might take time to install
as they are fetched and tested for your computer.
+
### Obtain from GIT repository latest stable release with:
##
git clone https://github.com/wbudic/LifeLog.git
# or download latest from: https://www.sqlite.org/download.html
# Optional but recommended install a ProgresSQL database server and driver see: Installation_ProgresSQL.txt
+## To install from source Perl Language Interpreter, system wide not local. Example:
+# Important is to set to configure to /usr/local/, not ./Configure -des -Dprefix=$HOME/localperl
+#
+$ cd ~/dev
+$ wget https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
+$ sudo tar -xzf perl-5.34.0.tar.gz
+$ cd perl-5.34.0
+$ sudo ./Configure -des -Dprefix=/usr/local/
+$ sudo make
+$ sudo make test
+$ sudo make install
+
## Development Environment Perl Install
# Developer? Install VSCode, not from flatpack. Use Microsoft site -> https://code.visualstudio.com/
# Since 2.4 To get to work with latest installed perl version, (not the roots/system wide one).
perl -v
-#output should be: v5.34.0 or grater.
+#v5.30.0 or grater is preferred.
+
+# Following is a way to install modules if not having sudo access.
perl -MCPAN -e 'install DBI'
perl -MCPAN -e 'install CGI'
perl -MCPAN -e 'install CGI::Session'
-# Following is OLD or when wanting to use the system wide perl installation.
+# Following is instruction is for system wide perl installation.
# In most cases the following will work fine if having sudo access, and no intension to upgrade perl.
+# On some systems, is you have the PERL5LIB env. variable set, installed modules might not be found.
+# Without setting this env. var. explicitly, normal location of these should be the /usr/local/share/perl/5.3* directory, available to all users.
+# Without sudo running "cpan" you might have to set this PERL5LIB={path} in .bashrc to include your users home directory.
+#
###
# since 1.8 switched to:
# before was -> sudo cpanm Try::Tiny;
# from the master (upgrade) repository.
## git pull
+if type -p perl < /dev/null > /dev/null 2>&1 ; then
+
+pver=$(perl -e "print $]")
+[[ $pver<5.030000 ]] && echo -e "Warning your perl version is $pver might be outdated!\n Recomended perl version is 5.34+."
+else
+echo -e "Perl language not detected please install latest version, ideally (as sudo) from source.\n"
+exit
+fi
+
LifeLogInstall=install_lifelog_req_modules_2.0.sh
sudo cat Installation.txt | grep 'sudo apt install' | awk '{print $0, "-y"}' > $LifeLogInstall
sudo cat Installation.txt | grep 'sudo cpan' >> $LifeLogInstall