Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install it in Ubuntu 18 #83

Open
strogiyotec opened this issue May 2, 2020 · 2 comments
Open

Can't install it in Ubuntu 18 #83

strogiyotec opened this issue May 2, 2020 · 2 comments

Comments

@strogiyotec
Copy link

Goo day , I tried to install it in my Ubuntu 18.04 and it failed

What I did

git clone --recursive http://github.com/ardagnir/athame
cd athame
./readline_athame_setup.sh --libdir=/lib/x86_64-linux-gnu --use_sudo

Output

mv athame.o athame.so
rm -f libreadline.so.8.0
gcc -shared -Wl,-soname,libreadline.so.8.0 -L./lib/termcap -Wl,-rpath,/lib/x86_64-linux-gnu -Wl,-soname,`basename libreadline.so.8.0 .0` -o libreadline.so.8.0 readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so colors.so parse-colors.so xmalloc.so xfree.so compat.so athame.so -lncurses -lutil
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Makefile:176: recipe for target 'libreadline.so.8.0' failed
make[1]: *** [libreadline.so.8.0] Error 1
make[1]: Leaving directory '/home/user/athame/athame/readline-8.0_tmp/shlib'
Makefile:218: recipe for target 'shared' failed
make: *** [shared] Error 2

How can I fix it ?

@tejasvi
Copy link

tejasvi commented Oct 7, 2020

/usr/bin/ld: cannot find -lncurses

You need to install libncurses-dev.

@cuppajoeman
Copy link

I had this error too:

rm -f libreadline.so.8.0
gcc -shared -Wl,-soname,libreadline.so.8.0 -L./lib/termcap -Wl,-rpath,/usr/lib -Wl,-soname,`basename libreadline.so.8.0 .0` -o libreadline.so.8.0 readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so colors.so parse-colors.so xmalloc.so xfree.so compat.so athame.so -lncurses -lutil
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Makefile:176: recipe for target 'libreadline.so.8.0' failed
make[1]: *** [libreadline.so.8.0] Error 1
make[1]: Leaving directory '/home/cjm/athame/athame/readline-8.0_tmp/shlib'
Makefile:218: recipe for target 'shared' failed
make: *** [shared] Error 2

Installing libncurses-dev solved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants