From owner-freebsd-questions@FreeBSD.ORG Sun Oct 22 08:25:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F4CF16A40F for ; Sun, 22 Oct 2006 08:25:16 +0000 (UTC) (envelope-from dan.bikle@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6359343D45 for ; Sun, 22 Oct 2006 08:25:15 +0000 (GMT) (envelope-from dan.bikle@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so2008248nfc for ; Sun, 22 Oct 2006 01:25:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=atGNoXIxZvYE5mX5SDx/2Ps89CQk1RfT40kyCPxYv0HsG56+0UYM50lD0TqrYcwKUNXekpF74SpyQ2CDyuZPAMGI1IIpbg4fkaqFaWI1vlQzP1V/7JKLiOTNnh/++xjDjT/cRtwYl7ogmNIpru5nc7mnkcA1V6y364FRf8mbvXE= Received: by 10.78.185.16 with SMTP id i16mr3666458huf; Sun, 22 Oct 2006 01:25:13 -0700 (PDT) Received: by 10.78.130.13 with HTTP; Sun, 22 Oct 2006 01:25:09 -0700 (PDT) Message-ID: <74252ed10610220125k25f79e94g2384c833cbf5bcd8@mail.gmail.com> Date: Sun, 22 Oct 2006 01:25:13 -0700 From: "Dan Bikle" To: freebsd-questions@freebsd.org In-Reply-To: <74252ed10610220003p2f619ab7j10dbe6da394e338b@mail.gmail.com> MIME-Version: 1.0 References: <74252ed10610220003p2f619ab7j10dbe6da394e338b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: [FreeBSD-Q] Creating .so libraries on FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Oct 2006 08:25:16 -0000 Hi again, 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 sourceforge. I had to struggle a bit with the sourceforge tidy. My beastie box was missing a bunch of the gnu tools like libtoolize, autoconf, automake... 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 variable. Mine looks like this: Tidy.path='/usr/local/lib/ruby/gems/1.8/gems/scrapi-1.2.0/lib/tidy/libtidy.so ' I'm not sure the best place to put the above variable. I put it in my controller but that is not a good DRY place. 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 -Dan On 10/22/06, Dan Bikle 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? > > -Dan > > -- bikle@bikle.com http://bikle.com