Questions tagged [dynamic-linking]

59 questions
40
votes
2 answers

Where does Ubuntu look for shared libraries?

When I run a process that links to a shared library at runtime (linked when the process starts, not linked later with dlload()), where does it look for that shared library (.so) file other than LD_LIBRARY_PATH? Background: I have some C++ code that…
27
votes
3 answers

Relocation error involving libgnutls.so.30, error code (127) after last updates

After the last update this happened: /usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference Reading package…
alebal
  • 473
21
votes
2 answers

What are .dlls doing in Linux programs?

Games that were made with Unity3D for Linux contains .dll files in their data folder GameDataFolder/Managed. Which is weird because I thought that Linux uses .so files instead of .dll files. (The same is true for Android-Unity3D apps too.) Why?
16
votes
1 answer

Why is there a .steampath in my home directory?

In the terminal, I see a broken link which is named .steampath, I didn't remove /home/user/.steam/sdk32/steam, but it is gone. Why is the .steampath there? Should I remove it?
JulianLai
  • 1,592
13
votes
1 answer

Installing Oracle database 12c on Ubuntu 14.04

Is there anyone out there that got Oracle 12c working on Ubuntu 14.04? I tried following this tutorial (which is written for installing Oracle 12c on Ubuntu 12.04): But in linking faze I encountered some errors that were not mentioned in this…
10
votes
3 answers

How do I run a game with a .x86 extension

Can anyone help me run the game cs portable, I used to play this all the time on windows?? it's free and the download link is here, the download link is in the bottom of his profile description. The file extension is .x86 and the game is only 45MB,…
Andy
  • 101
7
votes
1 answer

Can't link libreadline on Ubuntu 14.04

this may be a very stupid error, but can't find any reference in the web. I try to compile this bare minimum readline example: #include #include #include void main(void){ char *line; while( 1==1 ){ …
7
votes
1 answer

How to add a directory to linker command line in linux

I am new to Linux and I want to add lib64/librt.so.1 to the linker command line. Can anyone suggest how to do this? Thanks in advance
Maryyam
  • 71
5
votes
2 answers

Why doesn't LD_LIBRARY_PATH has any effect?

./a.out: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory even though: $ echo $LD_LIBRARY_PATH /home/exe/libcxx/lib:/home/exe/llvm/lib:/usr/local/lib $ ls /usr/local/lib libc++.so …
5
votes
0 answers

hidden symbol `pthread_atfork' in /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a(pthread_atfork.oS) is referenced by DSO

I am trying to compile a large project, it includes a library: SAMG/ifort64.9.1.041-emt64/lib/libguide.so when I try to make project, there is an error message: hidden symbol `pthread_atfork' in…
4
votes
1 answer

Where can I find /lib/ld-lsb.so.3 for Ubuntu 21.04?

I need to get a 32 bit ELF interpreter for an old binary. file ./actlmgrd ./actlmgrd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-lsb.so.3, for GNU/Linux 2.6.18,…
3
votes
1 answer

What are dynamic and static linking?

I hear the terms "Dynamically linked" and "Statically linked" tossed around in regards to packaging, and I have never been clear on what these terms actually mean. What are dynamic and static linking?
3
votes
2 answers

How do I deal with "undefined reference to dlopen" errors while compiling and using OpenFST on Ubuntu?

Trying to compile and use OpenFST on Ubuntu 13.10 leads to link errors like "undefined references to dlopen". How does one fix this? Searching online suggests including -ldl in the gcc command line, but that is not sufficient.
Prateek
  • 2,611
3
votes
1 answer

How to reset LD_PRELOAD

I've done the following command to set the path for LD_PRELOAD. But it's the wrong path. export LD_PRELOAD=/home/ Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is the exact command to reset the export?
alvas
  • 3,027
3
votes
1 answer

How to correctly deal with lib-symlinks in modern Ubuntu versions?

Let's assume that I have some problems with dynamic linking. I may have some locally built (or manually copied) library which overrides library from APT. The library is not placed to /usr/local/lib, so it is hard to differ it from others. On Ubuntu…
N0rbert
  • 103,263
1
2 3 4