Skip to content

Troubleshooting

Andy Stout edited this page Nov 12, 2019 · 7 revisions

'make' error SDL.h not found

If running "make" in the root gives the following error ...

~/ChrysaLisp$ make
echo x86_64 > arch
echo Linux > platform
unzip -nq snapshot.zip
cc -c -nostdlib -fno-exceptions \
			-I/usr/include/SDL2/ \
			-o obj/Linux/x86_64/main.o main.c
main.c:8:10: fatal error: SDL_ttf.h: No such file or directory
 #include <SDL_ttf.h>
          ^~~~~~~~~~~
compilation terminated.
Makefile:23: recipe for target 'obj/Linux/x86_64/main.o' failed
make: *** [obj/Linux/x86_64/main.o] Error 1

Then this dependency needs to be installed

sudo apt-get install libsdl2-ttf-dev

This is documented in "README.md" or "docs/Intro.md"


make platforms fails

You are running at the host OS prompt, not in the ChrysaLisp tui prompt.


./run.sh prints errors and won't stop

error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
  • You are not running the host shell terminal as the same user as the graphical user interface
  • Open another host terminal, in the same folder and run './stop.sh' (for linux)
  • Switch to the user which owns the graphical user interface

'Operation not permitted' errors

$ ./run.sh 
cat: abi: No such file or directory
rm: cannot remove '/tmp//000-001': Operation not permitted
rm: cannot remove '/tmp//000-002': Operation not permitted
rm: cannot remove '/tmp//000-003': Operation not permitted
rm: cannot remove '/tmp//000-004': Operation not permitted
rm: cannot remove '/tmp//000-005': Operation not permitted
... 

This is due to having run './run_tui.sh' as a different user and not cleaned up. There are files in '/tmp/' owned by the other user.

sudo rm /tmp/???-???

(Be careful with this. The files are numbered sequentially '000-001' upwards)


'No such file or directory' errors

$ ./run.sh 
cat: abi: No such file or directory
funcs.sh: line 54: ./obj/x86_64//Linux/main: No such file or directory
funcs.sh: line 54: ./obj/x86_64//Linux/main: No such file or directory
funcs.sh: line 54: ./obj/x86_64//Linux/main: No such file or directory
funcs.sh: line 54: ./obj/x86_64//Linux/main: No such file or directory

To be updated