10.0.1 strange behaviour

After compiling 10.0.1 (the same for 10.0.0) I linked in my ~/bin/

  prolog -> swipl.11
  swipl.11 -> /usr/src/swipl-11/swipl/build/src/swipl

Now swipl.11 starts correctly, but prolog fails, and produces

Welcome to SWI-Prolog (threaded, 64 bits, version 11.0.1-2-g6ca0651ef)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

ERROR: /usr/src/swipl-11/swipl/build/home/library/ext/libedit/editline.pl:68:
ERROR:    /usr/src/swipl-11/swipl/build/home/library/ext/libedit/editline.pl:68: Initialization goal raised exception:
ERROR:    open_shared_object/3: libedit4pl: cannot open shared object file: No such file or directory
ERROR: [Thread main] [Thread 1]: exception handler failed to define editline:el_wrapped/1
   Exception: (41) editline:el_wrapped(user_input) ?

Why? how to fix this?