Missing libraries - executable compiled under arch

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
sakishrist
Level 1
Level 1
Posts: 5
Joined: Fri Mar 16, 2012 3:17 am

Missing libraries - executable compiled under arch

Post by sakishrist »

Hello everyone!

I'm just curious about this error I am given when I try to run an executable in mint, while the executable itself is compiled under arch. What it does is it simply opens some files, edits them while using string objects and then outputs the resulted files somewhere else.

When I run it I get the error:

Code: Select all

[sakishrist@sakis-pc bin]$ ldd ./ter2
        linux-vdso.so.1 =>  (0x00007ffff41ff000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f85a6769000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f85a64e5000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f85a62ce000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f85a5f2d000)
        /lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f85a6a8f000)
My question is, what is linux-vdso and why whould a simple program that accesses files would not work without it.

Thanks in advance. :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sakishrist
Level 1
Level 1
Posts: 5
Joined: Fri Mar 16, 2012 3:17 am

Re: Missing libraries - executable compiled under arch

Post by sakishrist »

Actually, as far as I understand the first library is not a missing one, is it? Then why whould bash give me this:

Code: Select all

[sakishrist@sakis-pc bin]$ ls
newscript  ter2
[sakishrist@sakis-pc bin]$ ./ter2 
bash: ./ter2: No such file or directory
[sakishrist@sakis-pc bin]$
there are no spaces in the name.
User avatar
Oscar799
Level 20
Level 20
Posts: 10398
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Missing libraries - executable compiled under arch

Post by Oscar799 »

Moved here by moderator
Image
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Missing libraries - executable compiled under arch

Post by xenopeek »

The library linux-vdso.so is a Virtual Dynamically Shared Object, and part of the kernel. You won't find a file for it I think.

Can you share the output of ls -l in that folder where you have ter2?
Image
Locked

Return to “Scripts & Bash”