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

Readme Troubleshooting Update Suggestion #312

Open
jdjphoto opened this issue Jan 2, 2024 · 0 comments
Open

Readme Troubleshooting Update Suggestion #312

jdjphoto opened this issue Jan 2, 2024 · 0 comments

Comments

@jdjphoto
Copy link

jdjphoto commented Jan 2, 2024

When users attempt to include the cs50.h header for C on Fedora 39 via command make -lcs50 phonebook they will run into the following output:

cc phonebook.c -o phonebook /usr/bin/ld: /tmp/ccYgcD5t.o: in function `main': phonebook.c:(.text+0x18): undefined reference to `get_string' /usr/bin/ld: phonebook.c:(.text+0x2b): undefined reference to `get_int' /usr/bin/ld: phonebook.c:(.text+0x42): undefined reference to `get_string' collect2: error: ld returned 1 exit status make: *** [<builtin>: phonebook] Error 1

The error listed in in README.md;
error while loading shared libraries: libcs50.so.8: cannot open shared object file: No such file or directory
won't be encountered unless they've attempt to compile with:
gcc -lcs50 phonebook.c -o phonebook
which they likely won't know to attempt during the Week 1 - Supersection lecture without having done C tutorials elsewhere.

Fedora users should probably be directed to add export LD_LIBRARY_PATH=/usr/local/lib to the bottom of .bashrc during the extract/install process as problems like this are very common in Fedora and its documentation and online help is limited.

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

No branches or pull requests

1 participant