Questions tagged [ld]
62 questions
20
votes
4 answers
Cannot find -lgfortran
I'm trying to install a package in R (package "ks"). It fails with error message:
/usr/bin/ld: cannot find -lgfortran
I've already installed the Ubuntu package build-essential:
sudo apt-get install build-essential
I've also tried adding symbolic…
user
- 303
- 1
- 2
- 5
14
votes
3 answers
undefined reference to symbol 'exp@@GLIBC_2.2.5'
Similar question has been asked here but is unanswered.
I have an implementation of Levenberg-Marquardt (downloaded from somewhere) and I'm trying to compile it but getting the following…
Shashwat
- 348
12
votes
4 answers
proxychains LD_PRELOAD cannot be preloaded
Using proxychains to do apt-get update in ubuntu 12.04.2
sudo proxychains apt-get update
gives following error
ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded: ignored.
How can I avoid this error?
Saeed
- 371
- 1
- 4
- 9
6
votes
1 answer
collect2: error: ld returned 1 exit status
I want to install nexalign (can be downloaded from here) on ubuntu 13.10. I previously installed it on ubuntu 10 without any problem. The error I got is:
gcc -O9 -Wall -Dthread -lpthread main.o mapping.o interface.o input.o sarray.o mem.o output.o…
m.i.cosacak
- 165
5
votes
0 answers
Installed Cuda toolkit 7.5, but libcudart.so.5.5 remains
After installing Cuda Toolkit 7.5 on Ubuntu 14.04 (via apt-get of .deb file, followed by update of nvidia driver to 352.63), nvcc --version, NVidia-smi, and cuda samples work as expected.
7.5 is installed in /usr/local/cuda-7.5, with /usr/local/cuda…
user1823664
- 207
- 2
- 8
5
votes
2 answers
Running ARM(EL) executables on ARM(HF) system - Missing Symlink to dynamic Loader?
I am using an Ubuntu 12.10 (ARMHF) distribution on a panda board. I want to run applications compiled for ARMEL. It was not possible due to a changed dynamic loader location (https://wiki.linaro.org/OfficeofCTO/HardFloat/LinkerPathCallApr2012)
I…
Uhli
- 51
4
votes
0 answers
How does ldconfig work?
I am playing with Ubuntu libraries. I am trying to add some libraries to /usr/lib// and to create some proxies for the libraries in /usr/lib//.
Note that /usr/lib// exists in one of the files in…
Theo
- 41
- 2
4
votes
0 answers
Compiling and linking of a C program
I am learning about compiler linker and loader and was trying to understand the working of linker and loader on my ubuntu 12.04 machine
I wrote 2 simple ".c" files as follows
test.c
#include
int main(int argc, char **argv)
{
…
Null pointer
- 2,607
4
votes
2 answers
curl dynamic linking problem in 21.10
I recently got a Dell Precision 3450 with ubuntu 20.04, and upgraded to ubuntu 21.10 in two steps (20.04 -> 21.04 -> 21.10). This required upgrading the file /usr/lib/os-release by hand, as described here, probably because of customizations by Dell…
user313032
- 245
4
votes
1 answer
libhdf5 installation problem
I've installed libhdf5-dev with apt-get but gcc cannot find it:
~$ locate libhdf5.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
~$ gcc -lhdf5
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
I'm on Ubuntu 17.10.
Victor Poughon
- 143
3
votes
0 answers
How to add an existing library to Ubuntu snap core?
I'm a total newbie to snap. Apologies if this question is trivial.
I'm experiencing unintended side effects when trying to use snap on a slightly customized Ubuntu system.
My slight customization is:
To replace the standard malloc with libjemalloc…
arielf
- 2,883
3
votes
2 answers
U-boot build fails - cannot find lgcc / libgcc.a
I am using Ubuntu 12.04 LTS 64 bit and trying to create a Linux Image for the SAMA5D36-EK. In doing so I need the mkimage command. According to this website
the mkimage source comes with the U-boot source and is built during U-boot compliation. But…
lachlan
- 85
- 1
- 2
- 9
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
cannot find -lpcre2-8
i am trying to install rjava in Rstudio following libraries show error -lpcre2-8, -lbz2, -lz
Any solution to solve these? Not getting any luck on other sites and there solutions provided by various geeks.
System : ubuntu-20.04
error…
2
votes
1 answer
Telling the kernel to prioritize swapping of a certain application?
Admittedly, this is a bit of a weird question....
TL;DR: I'm trying to work on a program, but whenever I link it, it uses ridiculous amounts of RAM. As a result, pretty much everything but the linker gets shoved to the swap space, which makes my…
kirbyfan64sos
- 219