From: wbudic Date: Mon, 15 Nov 2021 06:36:22 +0000 (+1100) Subject: updated X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=cf583ab9f3b46bddff17a1ee59d344c6b432f753;p=LifeLog.git updated --- diff --git a/Installation.txt b/Installation.txt index 6610bdb..f5c675f 100644 --- a/Installation.txt +++ b/Installation.txt @@ -2,13 +2,14 @@ - 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 @@ -27,6 +28,18 @@ sudo cpan DBD::SQLite; # 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/ @@ -81,7 +94,9 @@ rm -rf openssl-1.1.1l # 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' @@ -99,8 +114,12 @@ perl -MCPAN -e 'install Crypt::Blowfish' -# 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; diff --git a/Installation_PostgreSQL.txt b/Installation_PostgreSQL.txt index 7aeb3d4..691b170 100644 --- a/Installation_PostgreSQL.txt +++ b/Installation_PostgreSQL.txt @@ -129,6 +129,9 @@ Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser. Use a production WSGI server instead. * Debug mode: off +# Have you forgotten master password to enter pgadmin4? Recreate by: +$ rm -rf /var/lib/pgadmin/*.db +$ pgadmin4 Before upgrades first: @@ -137,6 +140,8 @@ pip uninstall pgadmin4 pip install pgadmin4 + + (Sorry, I use, but don't program in python, to document here any further) My Criticism: diff --git a/install_modules.sh b/install_modules.sh index 897789a..c3f2ebd 100755 --- a/install_modules.sh +++ b/install_modules.sh @@ -9,6 +9,15 @@ # 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