Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 6988  / 1 Year ago, thu, september 29, 2022, 7:01:47

How can I install libdwarf.so on Ubuntu? I get this error while running an executable file.




error while loading shared libraries: libdwarf.so: cannot open shared
object file: No such file or directory.



More From » 14.04

 Answers
0

So after too many hours finally it's been solved. It goes like this:




  1. Download libdwarf-20130207.tar.gz

  2. Extract the archive and in a new terminal type:



    cd dwarf-2013-02-07/libdwarf
    ./configure --enable-shared
    make -j$(nproc)

  3. If you need a 32 bit library (as in my case), just open the MakeFile and add -m32 to CFLAGS



    CFLAGS = -m32 $(PREINCS) -g -O2 $(INCLUDES) $(dwfpic) $(POSTINCS)

  4. At the end, just copy the libdwarf.so into /usr/lib



[#23971] Saturday, October 1, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nalystcul

Total Points: 390
Total Questions: 106
Total Answers: 115

Location: Tokelau
Member since Sun, May 7, 2023
10 Months ago
nalystcul questions
Sun, May 1, 22, 17:05, 2 Years ago
Mon, Sep 6, 21, 08:12, 3 Years ago
Fri, Mar 18, 22, 20:06, 2 Years ago
;