gem install ruby-filemagic
checking for magic_open() in -lmagic... no
*** ERROR: missing required library to compile this module
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我怎樣才能解決這個錯誤在Windows 7?
你看到了什麼,當你遵循指令'檢查更detail'的mkmf.lgo文件? –
這是它的一部分 conftest.c:在函數't'中: conftest.c:8:1:warning:隱式聲明函數'magic_open' c:/ ruby193/mingw/bin /../ lib /gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe:找不到-lmagic – wnoveno