سؤال

I am trying to compile sshfs: https://github.com/osxfuse/sshfs

Running the ./configure script outputs:

./configure: line 3676: syntax error near unexpected token `SSHFS,'
./configure: line 3676: `PKG_CHECK_MODULES(SSHFS, fuse >= 2.3 glib-2.0 gthread-2.0)'

So I go here: http://www.gnu.org/software/libc/download.html in order to install libC.

However, I get this message:

*** The GNU C library is currently not available for this platform.
*** So far nobody cared to port it and if there is no volunteer it
*** might never happen.  So, if you have interest to see glibc on
*** this platform visit
*** http://www.gnu.org/software/libc/porting.html
*** and join the group of porters

This is after I found out I needed to install other dependencies like gettext, libffi, glib2.

I'm running on a OS X 10.7.1 Lion.

Does this mean I cannot compile SSHFS or am I doing something wrong? It doesn't make sense they would give me the source code for SSHFS on the "Fuse for OSX" website but it doesn't compile on macs.

EDIT:

After installing glib I did the following:

pkg-config --libs --cflags --modversion gthread-2.0
2.38.1
-D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -lintl  

This proves I have gthread-2.0.

I also did:

pkg-config --libs --cflags --modversion glib-2.0
2.38.1
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  -L/usr/local/lib -lglib-2.0 -lintl

This proves I have glib-2.0.

but I still get the error message on line 3676 above saying PKG_CHECK_MODULES unexpected token "sshfs". Does this mean something is wrong with the PKG_CHECK_MODULES macro?

هل كانت مفيدة؟

المحلول

Do not confuse GNU C Library (glibC) and Glib (GLib is a general-purpose utility library).

What do you really need is to install Glib (not GlibC) on your MacOS. Please follow the manual which you will find on their web site, it will provide you with the steps how to install it on your MacOS.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top