tango4567 / solutions

Here I am adding lots of different stuff. This is the collection of problems with their solutions. Most important please share good vibes and correct me if you found anything wrong here. Thanks in advance.
Apache License 2.0
5 stars 0 forks source link

Where to find libcrypto++8 after install in ubuntu 22.04 #57

Closed tango4567 closed 1 year ago

tango4567 commented 1 year ago

Best solution Input: ldconfig -p | grep libcrypto++.so.8

admin@admin:~$ ldconfig -p | grep libcrypto++.so.8
    libcrypto++.so.8 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcrypto++.so.8
tango4567 commented 1 year ago
  1. But not worked for me

    ChatGPT Solution After installing libcrypto++8 in Ubuntu, the library files can be found in the following locations: Header files: /usr/include/crypto++ Library files: /usr/lib/x86_64-linux-gnu/libcrypto++.so.8 If you need to link against libcrypto++8 when compiling a program, you can use the -lcrypto++ flag and the linker will automatically search for the library in the standard library directories, including /usr/lib/x86_64-linux-gnu. You can also use the pkg-config tool to retrieve the necessary compiler and linker flags for libcrypto++8. For example, you can run the following command to get the flags needed for compiling and linking against libcrypto++8: Copy code pkg-config --cflags --libs libcrypto++ This will output the necessary flags that you can use when compiling and linking your program.
  2. Worked for me

    ChatGPT Solution 2 After installing the libcrypto++8 package in Ubuntu, you can find the library files in the system library directories, usually /usr/lib or /usr/lib/x86_64-linux-gnu/. To check if the library is installed, you can use the following command in your terminal: Copy code dpkg -l libcrypto++8 If the package is installed, you should see an output similar to: diff Copy code ||/ Name Version Architecture Description +++-==============-============-============-================================= ii libcrypto++8: 8.2.0-2ubunt amd64 General purpose cryptographic li To locate the library files, you can use the locate command followed by the library name, like this: Copy code locate libcrypto++.so.8 This will display the paths to the library files on your system. You can then link your programs to these libraries by specifying the appropriate paths during compilation or by using the appropriate linker flags when linking your code.

Final Solution

  1. Install plocate sudo apt install plocate
  2. Then run locate libcrypto++.so.8
  3. Output
admin@user:~$ locate libcrypto++.so.8
/usr/lib/x86_64-linux-gnu/libcrypto++.so.8
/usr/lib/x86_64-linux-gnu/libcrypto++.so.8.6.0