logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [libdbi-devel] OS X build: msg#00002

Subject: Re: [libdbi-devel] OS X build
On 30-Apr-07, at 5:26 PM, Markus Hoenicka wrote:

> Toby Thain writes:
>> Hi,
>>
>> While poking around in the source tree today I noticed the OS X build
>> notes include the following recipe:
>>
>> LIBTOOLIZE=glibtoolize ./autogen.sh
>> ./configure CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"
>> make CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"
>> sudo make install
>>
>> I believe the /sw/* directories are Fink's, perhaps of use if the
>> configure script is supposed to find specific preinstalled Fink
>> packages there (openjade?). However, /sw is not a standard part of OS
>> X, and the simpler recipe:
>>
>
> I believe this is a leftover from the days of yore when the libdbi
> project contained the MySQL and PostgreSQL drivers. I suppose these
> databases are most conveniently installed as Fink packages,

The recipe in libdbi-drivers actually *depends* on Fink... But the  
simplification mentioned earlier works fine on my system.

Old recipe:

        /sw/bin/glibtoolize --force
        aclocal
        automake --add-missing
        autoconf
        ./configure --with-mysql --with-pgsql --with-sqlite --with-pgsql- 
dir=/opt/local/pgsql LDFLAGS="-L/sw/lib"
        ./fixlt.sh
        make
        sudo make install

New recipe:

        LIBTOOLIZE=glibtoolize ./autogen.sh
        ./configure --disable-docs ...other options...
        make
        sudo make install

I'm planning to add "quickstart" notes with configure options for the  
common MySQL/PgSQL packages.

--Toby

> and the
> configure script had to be advised to find the installed headers and
> libraries to build the drivers. Now that the drivers are part of a
> separate package, there is no need to modify the environment
> variables.
>
>> Is it worth changing the README.osx?
>>
>
> Yes. Please go ahead and use your simpler recipe.
>
> thanks,
> Markus
>
> -- 
> Markus Hoenicka
> markus.hoenicka@xxxxxxx
> (Spam-protected email: replace the quadrupeds with "mhoenicka")
> http://www.mhoenicka.de
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


<Prev in Thread] Current Thread [Next in Thread>