Lartu / ldpl

COBOL-like programming language that compiles to C++. With serious dinosaurs with neckties and briefcases 🦕💼
https://www.ldpl-lang.org/
Apache License 2.0
160 stars 24 forks source link

`whiptail` not found #168

Closed xvxx closed 4 years ago

xvxx commented 4 years ago

Related to #167, I get an error trying to use the installer on a fresh install of Arch Linux:


dvkt@archlinux ~> git clone https://github.com/lartu/ldpl
Cloning into 'ldpl'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 3106 (delta 0), reused 1 (delta 0), pack-reused 3102
Receiving objects: 100% (3106/3106), 10.74 MiB | 7.86 MiB/s, done.
Resolving deltas: 100% (1986/1986), done.
dvkt@archlinux ~> cd ldpl/
dvkt@archlinux ~/ldpl> sh install.sh 
install.sh: line 6: whiptail: command not found
rm -f ldpl.o ldpl ldpl_included_lib.cpp lpm ldpl.1
awk -f lib-to-string.awk ldpl_lib.cpp > ldpl_included_lib.cpp
g++ -g -c -Wall -std=gnu++11 -fpermissive -DVERSION='"4.5-dev"'   -DVERSIONNAME='"Friendly Falcarius"'  -DCOMPILEDATE='"2019-12-23"' -DCOMPILEHOUR='"19:46:14"' -DLPMLOCATION='"~/ldpl/lpm/"'  ldpl.cpp
cd .. && cd man && sh generateMan.sh
generateMan.sh: line 6: php: command not found
cp ../man/ldpl.1 ldpl.1
g++ -g ldpl.o -o ldpl -static-libgcc -static-libstdc++ 
./ldpl ../lpm/lpm.ldpl -o=lpm
* Loading ../lpm/lpm.ldpl
* Compiling ../lpm/lpm.ldpl
* Building lpm
* Saved as lpm
* File(s) compiled successfully.
install.sh: line 78: whiptail: command not found
[sudo] password for dvkt: 
install -d /usr/local/bin/
install -m 775 ldpl /usr/local/bin/
install -d /usr/local/bin/
install -m 775 lpm /usr/local/bin/
install -d /usr/local/share/man/man1/
install ldpl.1 /usr/local/share/man/man1/
rm -f ldpl.o ldpl ldpl_included_lib.cpp lpm ldpl.1
install.sh: line 93: whiptail: command not found
install.sh: line 94: whiptail: command not found
Rawrrr!
Lartu commented 4 years ago

Hi there! Yes, whiptail is not included in arch apparently. You should install it in order to use the installer. LDPL has been uploaded to snap today, though, so you should now be able to install it using sudo snap install ldpl, so that script is on its way out, haha.

xvxx commented 4 years ago

Cool, I got it installed with Snap :+1:

Lartu commented 4 years ago

Wonderful!

Lartu commented 4 years ago

@dvkt is the snap version working for you? Mine doesn't seem to be able to open files nor did it install lpm D:'

xvxx commented 4 years ago

@lartu No, it's not working for me either it turns out. Only ldpl -v!

Lartu commented 4 years ago

@dvkt thank you for trying. It seems snap packages are sandboxed and need special permissions (declared within the snap manifest) to access files. I'll fix this asap.

saper commented 4 years ago

FreeBSD does not have it either, not even in ports/packages. I just jumped into src and ran gmake without problems...

Lartu commented 4 years ago

Yes, this whiptail installation thing was a complete fiasco. We should remove it.