WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to build s3fuse?  (Read 2352 times)

Offline nsqtr

  • Newbie
  • *
  • Posts: 11
how to build s3fuse?
« 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.

« Last Edit: March 28, 2023, 12:25:12 AM by Rich »

Online curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: how to build s3fuse?
« Reply #1 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).
The only barriers that can stop you are the ones you create yourself.

Offline nsqtr

  • Newbie
  • *
  • Posts: 11
Re: how to build s3fuse?
« Reply #2 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

Online curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: how to build s3fuse?
« Reply #3 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)
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: how to build s3fuse?
« Reply #4 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

« Last Edit: October 03, 2009, 07:13:03 AM by Jason W »