JCluzet / GrademeBash

Automatic testing for all 42, C and CPP projects. Makefile relink, Header wrong name, Coplien Form and so much more.
296 stars 11 forks source link

Compilation with Fedora failed #30

Closed jternero closed 1 year ago

jternero commented 1 year ago

When running the "grademe" bash script, the program starts and prompts me to press a key. However, upon pressing the 3 key, an error message appears indicating that the "readline" library is not installed on the system.

To resolve the issue, the system is updated and the necessary updates for the C++ compiler "g++" and corresponding libraries are downloaded. Afterward, the program is attempted to be run again, and the following message is displayed:

 - Your OS: Linux fedora 6.2.8-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 22 19:11:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux 
 - The error message:
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-redhat-linux/12/../../../libreadline.so incompatible mientras se busca -lreadline
/usr/bin/ld: se salta el /lib/libreadline.so incompatible mientras se busca -lreadline
/usr/bin/ld: se salta el /usr/lib/libreadline.so incompatible mientras se busca -lreadline
/usr/bin/ld: no se puede encontrar -lreadline: No existe el fichero o el directorio
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-redhat-linux/12/../../../libreadline.so incompatible mientras se busca -lreadline
/usr/bin/ld: se salta el /lib/libreadline.so incompatible mientras se busca -lreadline
/usr/bin/ld: se salta el /usr/lib/libreadline.so incompatible mientras se busca -lreadline
collect2: error: ld devolvió el estado de salida 1

Could you please provide some guidance on how to properly install the 'readline' library on a Fedora system? I encountered an error message stating that the library was not installed when running the 'grademe' bash script, even after updating the system and installing the necessary updates for 'g++' and related libraries.

jternero commented 1 year ago

sudo dnf install readline-devel.x86_64