Bug #13535
closedInstalling Ruby2.4.1 on Solaris 10
Description
Hello
When we install Ruby 1.9.1 on Solaris 10, we execute these commands.
# gunzip -c ruby-1.9.1-p0.tar.gz | tar xf –
# cd ruby-1.9.1-p0
# ./configure –prefix=/opt/local –enable-pthread –includedir=/opt/local/include
# make
When we execute "make", some errors occured.
we solved some errors, but we can't solve one error.
gcc -I. ~~~ -Whoparentheses -obigdecimal.o -c bigdecimal.c
/usr/ccs/bin/as: error: no input filename given
Look at "-obigdecimal.o"
We think it should be "-o bigdecimal.o"
Why this error happen?
Do you have better version?
Because of our environment, we can't use the newest one.
Regards,
Yusuke
Updated by shyouhei (Shyouhei Urabe) almost 7 years ago
Thank you, but version 1.9.1 is too old (relased 7 years ago maybe?). We no longer maintain.
Can you try a newer version? If it still happens let us know.
Updated by usukere (高橋 佑典) almost 7 years ago
- Subject changed from Installing Ruby1.9.1 on Solaris 10 to Installing Ruby2.4.1 on Solaris 10
- ruby -v changed from 1.9.1 to 2.4.1
Thank you, We're installing ver2.4.1 in Solaris 10.
But DIfferent problems happened.
make: Fatal error: Unknown option `-C'
***Error Code 1
The following command caused the error:
make -C libffi-3.2.1
make: Fatal error: command failed for target `libffi-3.2.1/.libs/libffi_convenience.a'
Current working directory /opt/oracle/media/Ruby.ruby2.4.1/ruby-2.4.1/ext/fiddle
***Error Code 1
The following command caused the error:
cd ext/fiddle && exec make V=0 all
make: Fatal error: command failed for target `ext/fiddle/all'
Current working directory /opt/oracle/media/Ruby.ruby2.4.1/ruby-2.4.1
***Error Code 1
The following command caused the error:
make -f exts.mk libdir="usr/local/lib" LIBRUBY_EXTS=./.libruby-with-ext.time \
EXTENCES="dmyenc.o" UPDATE_LIBRARIES=no
make: Fatal error: command failed for target `build-ext'
Could you tell me something to solve?
Or do you have better version to install in Solaris10?
Regards,
Yusuke
Updated by nobu (Nobuyoshi Nakada) almost 7 years ago
- Status changed from Open to Feedback
usukere (高橋 佑典) wrote:
make: Fatal error: Unknown option `-C' ***Error Code 1 The following command caused the error: make -C libffi-3.2.1 make: Fatal error: command failed for target `libffi-3.2.1/.libs/libffi_convenience.a' Current working directory /opt/oracle/media/Ruby.ruby2.4.1/ruby-2.4.1/ext/fiddle ***Error Code 1
It is makefile for GNU make.
The following command caused the error: cd ext/fiddle && exec make V=0 all
But this command in the parent makefile is for non-GNU make.
This is controled by gnumake
makefile variable and should be
consistent.
Could you tell me something to solve?
How did you configure and make?
Updated by usukere (高橋 佑典) almost 7 years ago
ご対応いただきありがとうございます。
日本語で再度質問させてください。
makeまでに実行したコマンドは以下の通りです。
ruby-2.4.1.tar.gzを/opt/oracle/media/Ruby/にインストール
#cd /opt/oracle/media/Ruby/
#gunzip -c ruby-2.4.1.tar.gz | tar xvf -
#cd ruby-2.4.1
#PATH+$PATH:/usr/sfw/bin
#./configure -prefix=/opt/local -enablepthread -includedir=/opt/local/include
#make
上記make実行の時点で、以下のエラーが出力されます。
make: Fatal error: Unknown option `-C'
***Error Code 1
The following command caused the error:
make -C libffi-3.2.1
make: Fatal error: command failed for target `libffi-3.2.1/.libs/libffi_convenience.a'
Current working directory /opt/oracle/media/Ruby.ruby2.4.1/ruby-2.4.1/ext/fiddle
***Error Code 1
The following command caused the error:
cd ext/fiddle && exec make V=0 all
例えばGNU makeかそうでないかを意識し、オプション等追加する必要がありますでしょうか?
宜しくお願い致します。
Updated by naruse (Yui NARUSE) almost 7 years ago
確かに頑張ってGNU makeを指定すると言う方向性もなくはないのですが、基本的にはCRuby添付のlibffiはlibffiパッケージが提供されていない環境、
具体的にはWindowsのVisual C++環境を想定してのものなので、Rubyインストール前にlibffiをインストールして頂けますか。
Solarisではパッケージで提供されているはずです。
なお、configureに--without-fiddleを指定してそもそもfiddleをビルドしないという技もあります。
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Status changed from Feedback to Closed