###前提・実現したいこと
以下を参考にさくらのレンタルサーバー(スタンダード)に最新のnode.jsを導入したく作業しています。
さくらのレンタルサーバにNode.jsをインストール
http://qiita.com/iuvo-duo/items/c97e05756bdfc06df3a4
ディストリビューションは FreeBSD 9.1-RELEASE-p24 amd64 です
###発生している問題・エラーメッセージ
node-v6.10.3を公式サイトからダウンロードし、 configureしようとしたところ、次の警告が発生しました。
gccのアップデートやportsからのインストールも試みてみましたがうまくいかず・・・
メジャーアップデート以降のnode.jsを入れたという記事も見当たらないため皆様のお力添えをいただきたく。
% ./configure --prefix=~/local <stdin>:1:107: warning: no newline at end of file WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CXX=g++) <stdin>:1:107: warning: no newline at end of file creating ./icu_config.gypi * Using ICU in deps/icu-small Using version-specific floating patch tools/icu/patches/58/source/i18n/digitlst.cpp creating ./icu_config.gypi { 'target_defaults': { 'cflags': [], 'default_configuration': 'Release', 'defines': [], 'include_dirs': [], 'libraries': []}, 'variables': { 'asan': 0, 'coverage': 'false', 'debug_devtools': 'node', 'force_dynamic_crt': 0, 'gas_version': '2.17', 'host_arch': 'x64', 'icu_data_file': 'icudt58l.dat', 'icu_data_in': '../../deps/icu-small/source/data/in/icudt58l.dat', 'icu_endianness': 'l', 'icu_gyp_path': 'tools/icu/icu-generic.gyp', 'icu_locales': 'en,root', 'icu_path': 'deps/icu-small', 'icu_small': 'true', 'icu_ver_major': '58', 'node_byteorder': 'little', 'node_enable_d8': 'false', 'node_enable_v8_vtunejit': 'false', 'node_install_npm': 'true', 'node_module_version': 48, 'node_no_browser_globals': 'false', 'node_prefix': '/home/ponz-net/local', 'node_release_urlbase': '', 'node_shared': 'false', 'node_shared_cares': 'false', 'node_shared_http_parser': 'false', 'node_shared_libuv': 'false', 'node_shared_openssl': 'false', 'node_shared_zlib': 'false', 'node_tag': '', 'node_use_bundled_v8': 'true', 'node_use_dtrace': 'false', 'node_use_etw': 'false', 'node_use_lttng': 'false', 'node_use_openssl': 'true', 'node_use_perfctr': 'false', 'node_use_v8_platform': 'true', 'openssl_fips': '', 'openssl_no_asm': 0, 'shlib_suffix': 'so.48', 'target_arch': 'x64', 'uv_parent_path': '/deps/uv/', 'uv_use_dtrace': 'false', 'v8_enable_gdbjit': 0, 'v8_enable_i18n_support': 1, 'v8_inspector': 'true', 'v8_no_strict_aliasing': 1, 'v8_optimized_debug': 0, 'v8_random_seed': 0, 'v8_use_snapshot': 'true', 'want_separate_host_toolset': 0}} creating ./config.gypi creating ./config.mk WARNING: warnings were emitted in the configure phase
更に調査したこと
root権限の無い哀れな子魚ちゃんたちのためのgcc野良インストール(Linux)
http://daily.belltail.jp/?p=1583
rootが無い場合でもgccをビルドできるとの方法が上記に載っていたため、参考に実施してみました。
gccのgmakeは走りましたが、以下のようなエラーで停止しました。
checking for x86_64-unknown-freebsd9.1-gcc... /home/(割り当てられたディレクトリ)/temp/gcc-5.2.0/host-x86_64-unknown-freebsd9.1/gcc/xgcc -B/home/(割り当てられたディレクトリ)/temp/gcc-5.2.0/host-x86_64-unknown-freebsd9.1/gcc/ -B/home/(割り当てられたディレクトリ)/temp/x86_64-unknown-freebsd9.1/bin/ -B/home/(割り当てられたディレクトリ)/temp/x86_64-unknown-freebsd9.1/lib/ -isystem /home/(割り当てられたディレクトリ)/temp/x86_64-unknown-freebsd9.1/include -isystem /home/(割り当てられたディレクトリ)/temp/x86_64-unknown-freebsd9.1/sys-include checking for suffix of object files... configure: error: in `/home/(割り当てられたディレクトリ)/temp/gcc-5.2.0/x86_64-unknown-freebsd9.1/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[2]: *** [configure-stage1-target-libgcc] Error 1 gmake[2]: Leaving directory `/home/(割り当てられたディレクトリ)/temp/gcc-5.2.0' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/home/(割り当てられたディレクトリ)/temp/gcc-5.2.0' gmake: *** [all] Error 2
生成されたconfig.logの中身を見てみると最後は以下のようになっていました。
## ------------------- ## ## File substitutions. ## ## ------------------- ## alphaieee_frag='/dev/null' host_makefile_frag='/dev/null' ospace_frag='/dev/null' serialization_dependencies='serdep.tmp' target_makefile_frag='/dev/null' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define LT_OBJDIR ".libs/" configure: exit 0
さらに試したこと2
LD_LIBRARY_PATH にgmp, mpfr, mpcのインストールパスを追加(すべて$INSTALL_PATHにインストール)してgmakeしてみたが同一エラー
またmakeコマンドでは実行直後に以下のようなエラーが発生する
% make "Makefile", line 26: Missing dependency operator "Makefile", line 27: Need an operator "Makefile", line 28: Need an operator "Makefile", line 815: Missing dependency operator "Makefile", line 816: Could not find "Makefile", line 817: Need an operator make: fatal errors encountered -- cannot continue
makeファイルの該当部分
#26~28 ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty. $(error GNU make version 3.80 or newer is required.) endif #814~817行目 BUILD_CONFIG = bootstrap-debug ifneq ($(BUILD_CONFIG),) include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk) endif

回答1件
あなたの回答
tips
プレビュー