[FreeBSD-Q] Creating .so libraries on FreeBSD?
dan.bikle at gmail.com
Sun Oct 22 08:25:16 UTC 2006
I got scrAPI working on my beastie box.
It turns out the tidy I was using was
from my /usr/ports directory rather than from
I had to struggle a bit with the sourceforge tidy.
My beastie box was missing a bunch of the gnu tools like libtoolize,
Once I got those installed,
I followed the directions attached to tidy.
Eventually, I ran a make command which made
a whole lot of stuff. One of those things
was a .so file which was named libtidy-0.99.so.0
I copied it to /tmp/libtidy.so and copied that
to the location pointed to by the Tidy.path
Mine looks like this:
I'm not sure the best place to put the above variable.
I put it in my controller but that is not a good
But, now I got scrAPI working on my beastie box and
I'm feeling good.
To answer my own question:
How do I make .so files?
ans1: use the Makefile
ans2: use gcc
I saw this fly by on my terminal:
gcc -O2 -Wall -Wno-switch -Wno-parentheses -Wno-unused -o .libs/tidy tidy.o
../src/.libs/libtidy.so -Wl,--rpath -Wl,/usr/local/lib
On 10/22/06, Dan Bikle <dan.bikle at gmail.com> wrote:
> Beastie People,
> I'm working with some ruby software called scrAPI.
> I got scrAPI working on my Mac so that's good.
> FreeBSD is different story.
> My beastie box is tripping over tidy.
> I think it wants a tidy.so library.
> When I installed scrAPI on my Mac; it came with the
> Mac shared library bolted on already.
> I'm not sure how to make a tidy.so library.
> On my FreeBSD box...
> I can make a tidy executable using the src I got from source forge.
> It looks like I have 2 options:
> -Learn how to make a tidy.so
> -Learn how to configure scrAPI so it uses /usr/local/bin/tidy
> rather than tidy.so
> Any tips anyone?
bikle at bikle.com
More information about the freebsd-questions