I just spent a little while looking around for a native FEC guide for linux. I
found a helpful pointer to
http://www.onionnetworks.com/developers/fec-1.0.3.zip but not much information
on how to install it. Sorry if this has been covered before and I just didn't
see it -- perhaps something could be posted on freenetproject.org? The little
blurb that's there right now under FAQ deals mainly with Windows, and still
doesn't mention compiling the native libraries.

Anyway, here is my story.

$ wget http://www.onionnetworks.com/developers/fec-1.0.3.zip
  ...
  ...
02:22:42 (263.57 KB/s) - `fec-1.0.3.zip' saved [745195/745195]

$ unzip fec-1.0.3.zip
  ...
  ...
inflating: fec-1.0.3/common-20020926.zip

$ cd fec-1.0.3/src/csrc

$ make
  ...
  ...
gcc -O1  -Wall  -o fec fec8.o test.o

$ cd ../../lib/fec-linux-x86

$ cp -r lib ~/freenet

$ cd ..

$ cp fec-linux-x86.jar ~/freenet

Restart your node and you're done! It's really working.

$ /usr/sbin/lsof|grep libfec
  ...
  ...
java      23501 me  mem    REG        9,2    10633    2551717
/home/me/.onionnetworks/lib/linux/x86/libfec8.so
java      23501 me  mem    REG        9,2    11314    2551718
/home/me/.onionnetworks/lib/linux/x86/libfec16.so

Now that's weird isn't it? At some point, it copied that lib dir to
~/.onionnetworks

Before I copied the lib dir to ~/freenet it wouldn't work, so maybe it's done
by the java code itself when it's first loaded. Oh well. Hopefully somebody
will find this useful.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl

Reply via email to