kubo39 / bossan

high performance asynchronous rack web server
Other
28 stars 5 forks source link

Build failed in OSX (DLLIB file extension is .bundle) #6

Closed rnakano closed 11 years ago

rnakano commented 11 years ago

I tried to build, but rake aborted.

Logs:

$ rake
... complication logs ...
19 warnings generated.linking shared-object bossan/bossan_ext.bundle
mv bossan_ext.so ../../lib/bossan/
mv: rename bossan_ext.so to ../../lib/bossan/bossan_ext.so: No such file or directory
rake aborted!
Command failed with status (1): [mv bossan_ext.so ../../lib/bossan/...]

In OSX, the DLLIB file extension is ".bundle", not ".so". We can check it using RbConfig::CONFIG['DLEXT']. This patch fix it.

rnakano commented 11 years ago

After this patch applied, logs:

$ rake
 ... complication logs ...
19 warnings generated.linking shared-object bossan/bossan_ext.bundle
linking shared-object bossan/bossan_ext.bundle
mv bossan_ext.bundle ../../lib/bossan/
rm -f *.o Makefile
ruby test_rack_spec.rb
Run options: 

# Running tests:

*** running success ***
Bye.
.

Finished tests in 0.108250s, 9.2379 tests/s, 18.4758 assertions/s.

1 tests, 2 assertions, 0 failures, 0 errors, 0 skips