Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: nsqtr on September 28, 2009, 09:28:45 AM

Title: how to build s3fuse?
Post by: nsqtr on September 28, 2009, 09:28:45 AM
I'd like to build S3fuse (Amazon's S3 over the FUSE filesystem) for TCE but have never built a tce extension so am starting from scratch.  Into a TCE 2.2 VMWare image, I pulled down various tce's for development, then pulled down the S3fuse bits and attempted a quick build. After twiddling a bit with installing some extra tce's I got stuck and am attaching the screen shot from the last build I attempted.

Any tips on how to build a tce in the TCE environment is greatly appreciated.  Aside from TCE, I've never built for a busybox environment, either.

Title: Re: how to build s3fuse?
Post by: curaga on September 28, 2009, 09:32:33 AM
You seem to be missing the openssl-0.9.8h-devs extension (and possibly openssl-0.9.8h as well).
Title: Re: how to build s3fuse?
Post by: nsqtr on September 28, 2009, 11:14:41 AM
Thanks.  I have the 0.9.8k tce(s), but will give the h version a shot
Title: Re: how to build s3fuse?
Post by: curaga on October 02, 2009, 04:33:15 PM
The -k version was built into a subdirectory to not conflict, so it needs an additional build switch (this is documented in the -k info file)
Title: Re: how to build s3fuse?
Post by: Jason W on October 02, 2009, 05:59:24 PM
If you want to use the newer openssl, enter the command:

# export PKG_CONFIG_PATH=/usr/local/openssl-0.9.8k/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

Here is a makefile that will use the pkgconfig data for either openssl installed, of course only install one.  Make sure the other deps are satisfied also,( fuse, curl/devs, ):

Code: [Select]
all:
g++ -ggdb -Wall $(shell pkg-config openssl --cflags --libs) $(shell pkg-config fuse --cflags --libs) \
$(shell pkg-config libcurl --cflags --libs) $(shell xml2-config --cflags --libs) s3fs.cpp -o s3fs
@echo ok!

install: all
cp -f s3fs /usr/local/bin

dist: all
tar -cvzf s3fs.tar.gz -C .. s3fs/COPYING s3fs/Makefile s3fs/s3fs.cpp

clean:
rm -f s3fs s3fs.o