]> lifelog.hopto.org Git - LifeLog.git/commitdiff
updated
authorwbudic <redacted>
Mon, 15 Nov 2021 06:36:22 +0000 (17:36 +1100)
committerwbudic <redacted>
Mon, 15 Nov 2021 06:36:22 +0000 (17:36 +1100)
Installation.txt
Installation_PostgreSQL.txt
install_modules.sh

index 6610bdb312bdfe476ad965a8ec60614cba2ce49a..f5c675f819c6144e17a46a0dd091e1666267382d 100644 (file)
@@ -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;
index 7aeb3d43ab40b38374a3d0df8d11b278d20348f9..691b170e2c222aeac3eb6e0da3d2c0a5414f6325 100644 (file)
@@ -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:
index 897789a2540f71930e8a5d5694d93d1ede652a3d..c3f2ebd5504315a433c308f8b9f3583dea3d3ff4 100755 (executable)
@@ -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