Hi,

as I found out that (already) the way WSL (Windows Subsystem for Linux)
works has changed in a big way, I needed to update things a bit. This
applies to Windows 10 with latest April 2018 update.

If you did the installation the old way, you should:
- remove the Linux subsystem (PowerShell as admin):
  lxrun /uninstall
- backup any stuff you need from within the rootfs to Windows dir
- remove the rootfs:
  Use the program "Search Everything" from VoidTools to find
  the name "rootfs" and delete that folder

New installation goes via Microsoft Store.

Find new WSL + PicoLisp installation attached.

QUESTION 1:
I now can start picolisp from within the installation directory, but even
after creating symlinks I cannot get pil or picolisp to run from anywhere
else.

Any help?

QUESTION 2:

I also found out that using /usr/lib is deprecated and that instead
/usr/local/lib should be used. This also applies for other paths as well.

Should this be changed in installation instructions and/or make files?

/Arie
Install PicoLisp on Windows 10 64 bit using WSL (Windows Subsystem for Linux)
=============================================================================

Open a PowerScript shell as Admin:
        01. Enable-WindowsOptionalFeature -Online -FeatureName 
Microsoft-Windows-Subsystem-Linux
                (reboot if required)
        02. Get-WindowsOptionalFeature -FeatureName 
Microsoft-Windows-Subsystem-Linux -Online 
                (reboot if required)

Start the "Microsoft Store" App:
        01. search for "Ubuntu"
        02. install latest Ubuntu version (currently 18.04)

Ubuntu terminal opens during last step:
        01. you are asked for your User name and Password (twice)
        02. update Ubuntu (packages):   
                        sudo apt-get update
                        sudo apt-get upgrade
                        sudo apt-get dist-upgrade
                        sudo apt autoremove
                        sudo apt-get update
        03. install a few needed packages:
                        sudo apt install make
                        sudo apt install make-guile
                        sudo apt install gcc
                        sudo apt-get install gcc-multilib g++-multilib
                        sudo apt-get install libssl-dev         
        04. go into your home directory
                        cd ~
        05. download and unpack PicoLisp sources:
                        wget https://software-lab.de/picoLisp.tgz
                        tar xfz picolisp.tgz
                        rm picolisp.tgz
        06. download and unpack platform specific file for 64 bit:
                        cd picolisp/    
                        wget http://software-lab.de/x86-64.linux.tgz
                        tar xfz x86-64.linux.tgz
                        rm x86-64.linux.tgz
        07. install PicoLisp 64 bit:
                        (cd src64; make)
                        (cd src; make tools gate)
        10. create symlinks:
                        sudo ln -s /<installdir> /usr/lib/picolisp
                        sudo ln -s /usr/lib/picolisp/bin/picolisp /usr/bin
                        sudo ln -s /usr/lib/picolisp/bin/pil /usr/bin
                        sudo ln -s /<installdir>/man/man1/picolisp.1 
/usr/share/man/man1
                        sudo ln -s /<installdir>/man/man1/pil.1 
/usr/share/man/man1
                        sudo ln -s /<installdir> /usr/share/picolisp
        11. add library to ldconfig:
                        sudo ldconfig /usr/lib

Reply via email to