On Mon, Jul 14, 2008 at 7:45 PM, Alexander Hansen
<[EMAIL PROTECTED]> wrote:
> On Monday 14 July 2008 13:25:20 Mojca Miklavec wrote:
>> Hello,
>>
>> I'm trying to install a ruby gem oniguruma which depends on oniguruma
>> library. I have installed
>>    i   oniguruma              5.9.0-1          Unicode-aware regular
>> expressions library
>>    i   oniguruma-shlibs       5.9.0-1          Unicode-aware regular
>> expressions library
>> with fink, but the gem doesn't find that file.
>>
>> The author of ruby gem is willing to fix that (he has no mac), but by
>> question is - how does one find a library/what's the proper way to do
>> that?
>>
>> I could ask him to check if /sw/include/oniguruma.h exists, but that's
>> a bad coding practice, I guess. Esp. since I imagine that one could
>> have fink installed with some other prefix.
>>
>> I've seen pkg-config a few times, but is probably not applicable to
>> this specific library (there is no oniguruma.pc).
>>
>> What would you suggest? How should the author write the configuration
>> file, so that it would find the library installed with either fink or
>> macports? Or should the author of onigiruma change anything to improve
>> the situation?
>>
>> Thanks a lot,
>>     Mojca
>>
>> PS: an ugly solution example -
>> http://rubyforge.org/forum/forum.php?forum_id=14931
>>
>
> The development package (oniguruma) has a build-time configuration script in
> it (%p/bin/onig-config).  The gem could hunt for that script in the PATH.
> And this script takes options that can help set things up properly in the
> build, e.g:
>
> $ onig-config --libs
> -L/sw/lib -lonig

Thanks a lot for the hint. I guess that "onig-config --libs" should
solve the problem.

Mojca

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to