Dear developers,
I am trying to install Zsh from source on a machine on which I have no admin rights.
What I did was:
- ./configure --prefix=${HOME}
- Error: "This is probably a library called 'curses' or 'ncurses'. You may
need to install a package called 'curses-devel' or 'ncurses-devel' on your system." - Install ncurses-6.5 from source, also with --prefix=${HOME}
- Now, when I run configure again, it goes okay.
- But when it comes to make, I encounter this error:
gcc -L${HOME}/lib -shared -o curses.so curses..o -ldl -lncursesw -lrt -lm -lc
/usr/bin/ld: ${HOME}/lib/libncursesw.a(lib_tputs.o): warning: relocation against `ospeed' in read-only section `.text'
/usr/bin/ld: ${HOME}/lib/libncursesw.a(lib_bkgd.o): relocation R_X86_64_PC32 against symbol `SP' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
I have tried to recompile ncurses again with the "-fPIC" flag, as well as Zsh, but this error still shows up. Would anyone know what is the cause of the issue and how to solve it?
Any help would be appreciated and thank you in advance!
Best wishes,
Samson