Solved gdb missing dependency

I am on a FreeBSD 12.0-RELEASE-p3 system. When starting gdb I get am error message

Code:
# gdb
ld-elf32.so.1: Shared object "libreadline.so.6" not found, required by "gdb"

I have /usr/local/lib/libreadline.so.8 installed from package readline-8.0.0
What would be the right step to solve the dependency issue?
 
1. A symlink?


2. pkg search libreadline shows readline-7.0.5

pkg search gdb
Code:
gdb-8.2.1_1                    GNU GDB of newer version than comes with the system
It has libreadline.so.7 as dependency.



Where did you get your readline-8 package from?
 
I just installed gdb from packages. This solved my problem. I was still using an obviously old version of gdb that came with the system a long time ago.
Thanks for all the quick replies
 
Back
Top