我正在尝试使用zlib在smartos上安装ruby 1.8.6,ruby编译正常,但是当我运行ruby extraconf.rb时,它位于ext / zlib文件夹中,控制台显示:
[admin@7dabb5d6-09d4-42b3-bb40-36a7d0a0fabe ~/src/ruby-1.8.6/ext/zlib]$ ruby extconf.rb
checking for deflateReset() in -lz... no
checking for deflateReset() in -llibz... no
checking for deflateReset() in -lzlib... no
checking for deflateReset() in -lzdll... no
[admin@7dabb5d6-09d4-42b3-bb40-36a7d0a0fabe ~/src/ruby-1.8.6/ext/zlib]$ make
make: Nothing to be done for `all'.
[admin@7dabb5d6-09d4-42b3-bb40-36a7d0a0fabe ~/src/ruby-1.8.6/ext/zlib]$
如何在smartos上编译zlib?
感谢。
答案 0 :(得分:2)
好的,我解决了我的问题:
ruby extconf.rb --with-zlib-include=/usr/local/include/ --with-zlib-lib=/usr/local/lib
由于