LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-25-2019, 09:32 AM   #1
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Rep: Reputation: Disabled
Loading shared library


Hi
I have installed (Rambox-0.6.9-linux-x86_64.rpm). The installation went fine and the program is installed in (/compat/linux/opt/Rambox). Now, when I try to execute this program, it gives following error:
Code:
./rambox: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory
So, how can I load this shared library?
Thanks
 
Old 09-25-2019, 09:37 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,782

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
you cannot, because it was not found. Do you know where is it located?
 
Old 09-25-2019, 09:39 AM   #3
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you cannot, because it was not found. Do you know where is it located?
Yes, it is there:
Code:
| find /compat/linux -iname "libffmpeg*" -print
/compat/linux/opt/Rambox/libffmpeg.so
 
Old 09-25-2019, 09:40 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,556
Blog Entries: 19

Rep: Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444Reputation: 4444
Did you actually install ffmpeg?
 
Old 09-25-2019, 09:41 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,782

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
so you might need to set LD_LIBRARY_PATH accordingly
 
Old 09-25-2019, 09:47 AM   #6
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Yes, I have installed ffmpeg in FreeBSD via pkg.
How can I set LD_LIBRARY_PATH? Can you please give me command syntax?
 
Old 09-25-2019, 12:26 PM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,782

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
https://stackoverflow.com/questions/...-path-in-linux
 
Old 09-25-2019, 12:37 PM   #8
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Thanks. I used following command to set ld-library-path:
Code:
export LD_LIBRARY_PATH=/compat/linux/opt/Rambox/
Now, rambox is giving new error:
Code:
./rambox: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
and I cannot find this library under /compact/linux:
Code:
| find /compat/linux -iname "libgtk-3*" -print
gives no result.
However, libgtk-3.so.0 is present under:
./usr/local/lib/libgtk-3.so.0

Last edited by zetrotrack000; 09-25-2019 at 12:41 PM.
 
Old 09-26-2019, 03:22 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Refer to the FreeBSD handbook section for Linux emulation: https://www.freebsd.org/doc/handbook/linuxemu.html

(All of the advice you're getting in this thread thus far, seems to be based on assumption that you're running Linux. This is because there are users who search for "unanswered posts" and don't take note of what forum they have been posted in.)
 
1 members found this post helpful.
Old 09-26-2019, 03:23 AM   #10
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cynwulf View Post
Refer to the FreeBSD handbook section for Linux emulation: https://www.freebsd.org/doc/handbook/linuxemu.html

(All of the advice you're getting in this thread thus far, seems to be based on assumption that you're running Linux. This is because there are users who search for "unanswered posts" and don't take note of what forum they have been posted in.)
Thanks a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Link shared library against other shared library Lobinho Linux - Newbie 2 05-28-2010 08:16 AM
shared library : libfg.so: cannot open shared object file error 40 x_gaurav Programming 2 06-28-2009 06:29 AM
gcc link shared library against another shared library qcp Linux - Newbie 1 07-25-2008 11:15 AM
Shared object library that uses another shared object library Nightfox Programming 1 02-15-2006 10:00 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration