OpenVZ Forum


Home » General » Support » SSHFS: libfuse.so.2: No such file or directory
SSHFS: libfuse.so.2: No such file or directory [message #33317] Tue, 07 October 2008 15:06 Go to next message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Hi

I have followed FUSE guide on OpenVZ Wiki but i can't solve this issue. I choose FUSE when I noticed the problem with kernel support reading a lot of post on forum and FUSE looks good idea.

[B]# /usr/local/bin/sshfs[/B]: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory


I think there are something wrong with ld.so.conf

[B]#cat /etc/ld.so.conf[/B]

include /usr/local/lib/libfuse.so.2
include ld.so.conf.d/*.conf


But when i run ldconfig a lot of strange characters appears on screen

ldconfig: îÝv$º Ö¿Ã     ó{ is not a known library type
ldconfig: =uuq@Zð=»×ôu;/Y«ç«
                            u
                             Z/u­!
?­® is not a known library type
ldconfig: ;£f/­gKgKÚ<>
                       is not a known library type
òlA?Ê is not a known library type
ldconfig: uvS58!»Y-­;=1u
x;Ko;­/-/6wuÈg=dJc<gKy(X\t¬
.d is not a known library type
ldconfig: [»=;KeÊÙuä-<..x<´ /t=]fÚ.Wt¼ is not a known library type
-bash-3.2# PuTTYPuTTY


Any idea?
icon9.gif  Re: SSHFS: libfuse.so.2: No such file or directory [message #33346 is a reply to message #33317] Wed, 08 October 2008 13:07 Go to previous messageGo to next message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Well, this issue is very frustrating. I can't solve it, not work Wiki method, not work RPM method.

Ill try to explain a little better my situation, perhaps someone can give me a idea.

Kernel:Linux hn249-5 2.6.18-92.1.1.el5.028stab057.2PAE
Centos5-minimal-i386-template

1)VE created with ostemplate: vzctl create 101 --ostemplate centos5-i386-minimal
2) Install some software:vzyum 101 install joe wget gzip tar(i need to install glib2-devel to compile...
3) download fuse and sshfs
4) i add /usr/local/lib on /etc/ld.so.conf and run ldconfig
5) ill try /usr/local/bin/sshfs root@one.ip.remote:/home/test /mnt/test

My issue:

/usr/local/bin/sshfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory


Crying or Very Sad Is always so hard to install FUSE?? Any help will be great!
Thanks!
Re: SSHFS: libfuse.so.2: No such file or directory [message #33347 is a reply to message #33346] Wed, 08 October 2008 13:15 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
May be strace shed light what exactly sshfs wasn't able to open.
Re: SSHFS: libfuse.so.2: No such file or directory [message #33350 is a reply to message #33346] Wed, 08 October 2008 13:39 Go to previous messageGo to next message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Thanks maratrus,

i have downloaded SSHFS and FUSE from Sourceforge and ive compiled from source inside Container, following openvz WIKI. This is the result of strace:

-bash-3.1# strace /usr/local/bin/sshfs root@one.ip.remote:/home/sharing /mnt/remote
execve("/usr/local/bin/sshfs", ["/usr/local/bin/sshfs", "root@one.ip.remote:/home/sharin"..., "/mnt/remote"...], [/* 17 vars */]) = 0
brk(0)                                  = 0x9b95000
uname({sys="Linux", node="52.grupoitnet.net", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=9905, ...}) = 0
mmap2(NULL, 9905, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fbe000
close(3)                                = 0
open("/lib/tls/i686/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2", 0xbfe26098) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbfe26098)     = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfe26098)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/lib/i686/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbfe26098)    = -1 ENOENT (No such file or directory)
open("/lib/i686/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/lib/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfe26098)         = -1 ENOENT (No such file or directory)
open("/lib/libfuse.so.2", O_RDONLY)     = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=5120, ...}) = 0
open("/usr/lib/tls/i686/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/sse2", 0xbfe26098) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbfe26098) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbfe26098) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/usr/lib/i686/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2", 0xbfe26098) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfe26098)     = -1 ENOENT (No such file or directory)
open("/usr/lib/sse2/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/usr/lib/libfuse.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=7168, ...}) = 0
writev(2, [{"/usr/local/bin/sshfs", 20}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libfuse.so.2", 12}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10/usr/local/bin/sshfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory
) = 132
exit_group(127)                         = ?


Sshfs try to open libfuse.so.2 in many directorys. I have libfuse.so.2 in /usr/local/lib

Perhaps creating a symbolic link on all failed directorys solve the error???
Re: SSHFS: libfuse.so.2: No such file or directory [message #33351 is a reply to message #33350] Wed, 08 October 2008 14:19 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


#cat /etc/ld.so.conf[/B]
include /usr/local/lib/libfuse.so.2
include ld.so.conf.d/*.conf




You shouldn't write "include /usr/local/lib/libfuse.so.2" just put "/usr/local/lib/"
Re: SSHFS: libfuse.so.2: No such file or directory [message #33353 is a reply to message #33350] Wed, 08 October 2008 15:10 Go to previous messageGo to next message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Hello!

Unfortunately I think ld.so.conf is not cause of error :/

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/lib


And inside of /usr/local/lib i have libfuse.so.2

-bash-3.1# ls -ls /usr/local/lib
total 828
445 -rw-r--r-- 1 root root 451886 Oct  8 14:58 libfuse.a
  1 -rwxr-xr-x 1 root root    986 Oct  8 14:58 libfuse.la
  0 lrwxrwxrwx 1 root root     16 Oct  8 14:58 libfuse.so -> libfuse.so.2.7.4
  0 lrwxrwxrwx 1 root root     16 Oct  8 14:58 libfuse.so.2 -> libfuse.so.2.7.4
337 -rwxr-xr-x 1 root root 341665 Oct  8 14:58 libfuse.so.2.7.4
 21 -rw-r--r-- 1 root root  19916 Oct  8 14:58 libulockmgr.a
  1 -rwxr-xr-x 1 root root    995 Oct  8 14:58 libulockmgr.la
  0 lrwxrwxrwx 1 root root     20 Oct  8 14:58 libulockmgr.so -> libulockmgr.so.1.0.1
  0 lrwxrwxrwx 1 root root     20 Oct  8 14:58 libulockmgr.so.1 -> libulockmgr.so.1.0.1
 22 -rwxr-xr-x 1 root root  21263 Oct  8 14:58 libulockmgr.so.1.0.1
  1 drwxr-xr-x 2 root root   1024 Oct  8 14:58 pkgconfig


Re: SSHFS: libfuse.so.2: No such file or directory [message #33355 is a reply to message #33353] Wed, 08 October 2008 15:19 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

sorry for misleading. I mean that your ld.so.conf should look like
include ld.so.conf.d/*.conf
/usr/local/lib/


then run ldconfig.
Previous Topic: Very strange guest network hang
Next Topic: redhat EL 4.6 guest
Goto Forum:
  


Current Time: Thu Aug 29 18:15:23 GMT 2024

Total time taken to generate the page: 0.05690 seconds