jovanbulck / jsh

A basic UNIX shell implementation in C
GNU General Public License v3.0
30 stars 10 forks source link

Fedora readline broken #72

Closed KevinMordijck closed 7 years ago

KevinMordijck commented 7 years ago

Im running: Fedora release 24 (Twenty Four) I did a clean install and followed these steps:

Install the necessary packages:

$ sudo yum update
$ sudo yum install git gcc readline-devel.i686

For the dialog dependency install:

$ sudo yum install dialog-devel.i686

This went very smooth.

But then I did this:

$ make
-------- making jsh version jsh post 1.2.1 on Linux 4.7.5-200.fc24.x86_64 x86_64 \n(developer built 03 Oct 2016 : 20h58) -------- 
cc -g -DVERSION='"jsh post 1.2.1 on Linux 4.7.5-200.fc24.x86_64 x86_64 \n(developer built 03 Oct 2016 : 20h58)"'  -c jsh-common.c -o jsh-common.o
cc -g -DVERSION='"jsh post 1.2.1 on Linux 4.7.5-200.fc24.x86_64 x86_64 \n(developer built 03 Oct 2016 : 20h58)"'  -c alias.c -o alias.o
cc -g -DVERSION='"jsh post 1.2.1 on Linux 4.7.5-200.fc24.x86_64 x86_64 \n(developer built 03 Oct 2016 : 20h58)"'  -c jsh-parse.c -o jsh-parse.o
cc -g -DVERSION='"jsh post 1.2.1 on Linux 4.7.5-200.fc24.x86_64 x86_64 \n(developer built 03 Oct 2016 : 20h58)"'  -c jsh-completion.c -o jsh-completion.o
cc -g -DVERSION='"jsh post 1.2.1 on Linux 4.7.5-200.fc24.x86_64 x86_64 \n(developer built 03 Oct 2016 : 20h58)"'  -c jsh.c -o jsh.o
Linking jsh with the following libraries: -lreadline 
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /lib/libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/libreadline.so when searching for -lreadline
/usr/bin/ld: cannot find -lreadline
collect2: error: ld returned 1 exit status
Linking jsh with the following libraries: -lreadline  lncurses
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /lib/libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/libreadline.so when searching for -lreadline
/usr/bin/ld: cannot find -lreadline
collect2: error: ld returned 1 exit status
Linking jsh with the following libraries: -lreadline  termcap
cc: error: unrecognized command line option ‘-termcap’; did you mean ‘-remap’?
Failed linking jsh: all known fallback libraries were tried
making man page: adding version number and date to jsh.1
-------- Compiling all done --------

(NOTE: yum is replaced by dnf in the latest Fedora versions)

KevinMordijck commented 7 years ago

Problem is detected. the wikis default is for 32-bit systems: readline-devel.i686 I have a 64-bit system and: sudo dnf install readline-devel.x86_64 works fine.