Executing the .so file in libftdi
I am using the ft232r library provided by ftdi to program the LPC11C14 microcontroller via Linux Mint. To initialize the software, I need to run the following command:
./ft232r_prog --manufacturer Sunswift --product $(PROJECT_NAME) --invert_rts --invert_dtr
When I run the code, I have the following problem:
Error while loading shared libraries: libftdi.so.1: cannot open shared object file: No such file or directory
when running ldd ft232r_prog, I get:
linux-gate.so.1 => (0xf77b8000)
libusb-0.1.so.4 => /lib/i386-linux-gnu/libusb-0.1.so.4 (0xf7790000)
libftdi.so.1 => not found
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75e5000)
/lib/ld-linux.so.2 (0xf77b9000)
The file libftdi.so.1
is located in /usr/lib/x86_64-linux-gnu
. Since the executable ft232r_prog cannot find the .so file, I tried the following:
- Updated path environment variable to locate / usr / lib / x 86_64-linux-gnu - Failed
- Updated $ LD_LIBRARY_PATH environment variable to contain
/usr/lib/x86_64-linux-gnu
- Failed - Ran
ldconfig
in/usr/lib/x86_64-linux-gnu
- crash
This appears to be a common problem including shared libraries. Any ideas on how I can solve this?
thank
+3
source to share
2 answers