joy-framework / joy

A full stack web framework written in janet

Home Page:https://joy.swlkr.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enviromental path

knarxism opened this issue · comments

Hi there,

Keen to give this a go! Running on Ubuntu. The install for janet and joy seemed to go just fine, however I can't run this from the command line. Is there a path you could suggest? I've tried adding this, but I don't think its the right file:

export PATH="/usr/local/lib/janet/bin:$PATH"

thanks!

sussed it out, this worked for me:

nano ~/.bashrc

added /usr/local/lib/janet/bin to the end of the export path chain:

export PATH=/usr/share/swift/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/lib/janet/bin

reload .bashrc

source .bashrc

if you print out your path, it should be at the end of the chain:

echo $PATH
/usr/share/swift/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/lib/janet/bin

My previous answer was dangerous, at least for me. It caused path errors which stopped me from accessing most terminal commands and also the gui interface. The following caused the issues when I placed it in ~/.profile:

export PATH="/usr/local/lib/janet/bin/joy"