fix install instructions

This commit is contained in:
Brian Seymour 2020-10-17 13:57:26 -05:00
parent e7acd00aa0
commit a7fdbca30b
7 changed files with 19 additions and 6 deletions

View File

@ -71,9 +71,11 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"c", "c",
"cpp", "c++", "cpp", "c++",
"csharp", "cs", "c#", "csharp", "cs", "c#",
"deno", "denojs", "denots",
"elixir", "exs", "elixir", "exs",
"emacs", "elisp", "el", "emacs", "elisp", "el",
"go", "go",
"haskell", "hs",
"java", "java",
"jelly", "jelly",
"julia", "jl", "julia", "jl",
@ -148,10 +150,14 @@ func launch(request Inbound, res http.ResponseWriter) {
execlang = "cpp" execlang = "cpp"
case "cs", "c#": case "cs", "c#":
execlang = "csharp" execlang = "csharp"
case "denojs", "denots":
execlang = "deno"
case "el", "elisp": case "el", "elisp":
execlang = "emacs" execlang = "emacs"
case "exs": case "exs":
execlang = "elixir" execlang = "elixir"
case "hs":
execlang = "haskell"
case "asm": case "asm":
execlang = "nasm" execlang = "nasm"
case "asm64": case "asm64":

View File

@ -66,9 +66,15 @@ case "$lang" in
"go") "go")
bin=go bin=go
;; ;;
"haskell" | "hs")
bin=haskell
;;
"java") "java")
bin=java bin=java
;; ;;
"jelly")
bin=jelly
;;
"julia" | "jl") "julia" | "jl")
bin=julia bin=julia
;; ;;
@ -120,9 +126,6 @@ case "$lang" in
"typescript" | "ts") "typescript" | "ts")
bin=typescript bin=typescript
;; ;;
"haskell" | "hs")
bin=haskell
;;
*) *)
echo "invalid language" echo "invalid language"
exit exit

0
lxc/executors/brainfuck Normal file → Executable file
View File

0
lxc/executors/deno Normal file → Executable file
View File

0
lxc/executors/haskell Normal file → Executable file
View File

0
lxc/executors/lua Normal file → Executable file
View File

View File

@ -44,6 +44,7 @@ lxc-create -t download -n piston -- --dist ubuntu --release bionic --arch amd64
echo 'source /opt/.profile' >> /opt/.bashrc echo 'source /opt/.profile' >> /opt/.bashrc
echo 'export HOME=/opt' >> /opt/.profile echo 'export HOME=/opt' >> /opt/.profile
echo 'export TERM=linux' >> /opt/.profile echo 'export TERM=linux' >> /opt/.profile
echo 'export PATH=$PATH:/opt/.local/bin' >> /opt/.profile
export HOME=/opt export HOME=/opt
export TERM=linux export TERM=linux
sed -i 's/\/root/\/opt/' /etc/passwd sed -i 's/\/root/\/opt/' /etc/passwd
@ -159,9 +160,11 @@ echo 'export PATH=$PATH:/opt/java/jdk-14/bin' >> /opt/.profile
source /opt/.profile source /opt/.profile
# install jelly # install jelly
git clone -q https://github.com/DennisMitchell/jellylanguage.git cd /opt && mkdir jelly && cd jelly
cd jellylanguage wget https://github.com/DennisMitchell/jellylanguage/archive/master.zip
pip3 install --upgrade --user . unzip master.zip
cd jellylanguage-master
pip3.8 install --upgrade --user .
# install julia # install julia
# final binary: /opt/julia/julia-1.5.0/bin/julia # final binary: /opt/julia/julia-1.5.0/bin/julia
@ -231,6 +234,7 @@ apt install -y ghc
# install deno # install deno
# final binary: /opt/.deno/bin/deno # final binary: /opt/.deno/bin/deno
# get version: /opt/.deno/bin/deno --version # get version: /opt/.deno/bin/deno --version
cd /opt && mkdir deno && cd deno
curl -fsSL https://deno.land/x/install/install.sh | sh curl -fsSL https://deno.land/x/install/install.sh | sh
echo 'export DENO_INSTALL="/opt/.deno"' >> /opt/.profile echo 'export DENO_INSTALL="/opt/.deno"' >> /opt/.profile
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile