arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 125 forks source link

Should fix the "cd ." gem building issue on FreeBSD: uses an extconf-make.rb file to accomplish this. #38

Closed mckinnsb closed 13 years ago

mckinnsb commented 13 years ago

I put my changes onto the recent master. A few things:

1) The extconf-make.rb file is what effectively fixes the bug on BSD; occasionally, after running a make script, the shell (accessible to the script) is not updated with the new directory structure. Running a separate ruby script with a new shell command refreshes the directory structure and will let the make install proceed.

2) There is a branch I have called "local_fixes": I had to modify the Includes & Libraries variables to include "/usr/local/lib". Some distributions of BSD (particularly in managed hosting) don't come with package managers, and there seems to be some issues with automatic linking or trying to detect installed /compiled libraries if that is the case. I'm not 100% sure this should go into master - there should be a cleaner way of doing this than simply spamming the path - but I thought I would mention it, and point out where it was, because that was my final step to getting the gem working on FreeBSD 6.2.

Hope this helps.

evan commented 13 years ago

Got it!