Re: Segmentation fault on exit on Linux
- Posted by ghaberek (admin) Oct 28, 2015
- 1478 views
ghaberek said...
PeteE said...
Edit: the only difference is that I have to run it from the src directory: LD_LIBRARY_PATH=../bin eui editor.ex
Yes, you have to set LD_LIBRARY_PATH to use local shared libraries. But that's what editor.cmd and editor.sh do for you automatically. I updated the Running from Source document to better reflect this.
As an aside, the permanent fix for this problem is to include -Wl,--rpath=./ in the LDFLAGS option when building the interpreter.
You can add this parameter when translating an application to prevent having to use LD_LIBRARY_PATH, e.g.
euc -extra-lflags "-Wl,--rpath=./" -i ../include ../src/editor.ex
I will be doing this when I start providing binary releases and installers for the editor.
-Greg