Compile fuseiso in a non root environment

I needed fuseiso to mount .iso files in a non root ssh envt.

So I needed to compile fuseiso first.

To compile fuseiso, you need to first compile libfuse.

cd ~/sources
wget http://nchc.dl.sourceforge.net/project/fuseiso/fuseiso/20070708/fuseiso-20070708.tar.bz2 (Dynamic link)
tar -jxvvf fuseiso-20070708.tar.bz2
cd fuseiso-20070708/
mkdir ~/myapps/fuse
./configure --prefix=/home/droidzone/myapps/fuse

 

This led to an error stating that it needed libfuse.

cd ..
wget http://nchc.dl.sourceforge.net/project/fuse/fuse-2.X/2.9.2/fuse-2.9.2.tar.gz
tar -xvvf fuse-2.9.2.tar.gz
cd fuse-2.9.2/
./configure --prefix=/home/droidzone/myapps/fuse
make
make install

Interestingly the program errored out, as even though I had given a prefix directory, it seemed to be trying to install certain stuff in root directiries. Even more interestingly I found that even though it terminated with an error, I found the following compilation message:

Libraries have been installed in:
/home/droidzone/myapps/fuse/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:
– add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
during execution
– add LIBDIR to the `LD_RUN_PATH’ environment variable
during linking
– use the `-Wl,-rpath -Wl,LIBDIR’ linker flag
– have your system administrator add LIBDIR to `/etc/ld.so.conf’

Sure enough, it seemed to have compiled all headers and libraries fine. So I decided to try building fuseiso anyway.

cd ../fuseiso-20070708

export LD_LIBRARY_PATH="/home/droidzone/myapps/fuse/lib"
export LD_RUN_PATH="/home/droidzone/myapps/fuse/lib"
export LDFLAGS="-L/home/droidzone/myapps/fuse/lib"
export CPPFLAGS="-I/home/droidzone/myapps/fuse/include"

./configure --prefix=/home/droidzone/myapps/fuse
make

Though it configured fine, it errored out during make

Package fuse was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘fuse’ found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘glib-2.0’ found

I needed to export these flags because it seemed to have difficulty while configuring, in locatin these libraries and includes of libfuse.

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.