- 締切済み
tcshがIntel版solarisでインストールできない
tcshをIntel版solarisでコンパイルしてインストールした経験がある方にお伺いしたいのですが、tcshの最新版をインストールしようとして、tcsh-6.12.00 をDLし sh ./confirure; make とするのですが、以下のようなエラーが出てしまいコンパイルが出来ませんでした。 コンパイル関連の知識が無く途方に暮れてしまうのですが、どのような事をチェックしたり試したりしたら宜しいでしょうか? ================ make gcc -E -I. -I. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' … gcc -c -g -O2 -I. -I. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' sh.func.c sh.func.c: In function `dologin': sh.func.c:350: parse error before `char' sh.func.c:354: `p' undeclared (first use in this function) sh.func.c:354: (Each undeclared identifier is reported only once sh.func.c:354: for each function it appears in.) make: *** [sh.func.o] Error 1 ================ 現在使用しているのはsolaris8intel版です。 SunOS epson 5.8 Generic_108529-29 i86pc i386 i86pc makeはgmakeを、gccがコンパイラとして指定されています ================== /var[49(0)]>>make -version GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i386-pc-solaris2.8 ================== /var[52(1)]>>gcc --version 2.95.3 ================== なお、configureの時のメッセージを書ききれないので後ほど。以上宜しくお願いします。
- tk_1980024
- お礼率37% (148/393)
- Solaris系OS
- 回答数2
- ありがとう数6
- みんなの回答 (2)
- 専門家の回答
みんなの回答
- katouka09
- ベストアンサー率50% (130/256)
こんにちは。 Solarisのバージョンが不明ですが、tcshであれば、 初めからバイナリで提供されています。 コンパニオンCDからインストールできると思うのですが、 どうでしょうか? 参考URLからSolaris8または9のISOファイルがダウンロードできます。
- xjd
- ベストアンサー率63% (1021/1612)
自宅サーバはSolaris9(Intel版) ですが、問題なくコンパイル・インストールできました。 各ツールのバージョンは以下のとおり。 Sunから提供される、Solaris9のクラスタパッチも当てています。 ご参考まで。 # uname -a SunOS unknown 5.9 Generic_112234-08 i86pc i386 i86pc Solaris # make -version GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # gcc --version gcc (GCC) 3.3 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # ./configure # make # make -n install mkdir -p /usr/local/bin mv -f /usr/local/bin/tcsh /usr/local/bin/tcsh.old cp tcsh /usr/local/bin/tcsh strip /usr/local/bin/tcsh chmod 555 /usr/local/bin/tcsh
関連するQ&A
- Apache2インストールでpcre_default_tables未定義エラー
こんにちは、honiyonです。 RedHat LinuxにApache2をソースからインストールしようとしています。 tar xzvf で展開し、 ./configure --enable-modules=so --enable-ssl make としたところ、 pcre.c: In function `pcre_compile': pcre.c:2534: `pcre_default_tables' undeclared (first use in this function) pcre.c:2534: (Each undeclared identifier is reported only once とエラーが出ました。 原因が分からなかったので、pcre-6.3.tar.gz を使って無理やり(?)コンパイルを通すと、今度は util.c: In function `ap_find_token': util.c:1456: `test_char_table' undeclared (first use in this function) util.c:1456: (Each undeclared identifier is reported only once util.c:1456: for each function it appears in.) util.c:1456: `T_HTTP_TOKEN_STOP' undeclared (first use in this function) util.c: In function `ap_escape_shell_cmd': util.c:1520: `test_char_table' undeclared (first use in this function) ...~後略~ とエラーが出ました。 Apacheのバージョンは、2.0.54と2.0.46を試していますが、同じエラーとなっています。 う~ん、何か不足しているのでしょうか? VineLinuxで同様のmakeをした時はすんなり成功しました。 何かお気づきの点がありましたら、是非ご教示ください。 因みに、このLinuxのunameの結果は uname -s Linux uname -m i686 uname -r 2.4.20-8smp uname -v #1 SMP Thu Mar 13 17:45:54 EST 2004 gcc -v は RedHat Linux 3.2.2-5 です。 宜しくお願いします(..
- ベストアンサー
- Linux系OS
- Solaris10でmakeがこける
postfixをインストールしようと make makefiles CC=gcc してから makeしたのですが、 /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:27:31: sys/feature_tests.h: No such file or directory isa_defs.h: No such file or directory machtypes.h: No such file or directory int_types.h: No such file or directory In file included from sys_defs.h:335,from alldig.c:29: /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:68: error:syntax error before "int32_t" syntax error before "uint32_t" "int32_t" "uint32_t" "int32_t" "uint32_t" "offset_t" (中略) /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:622:24: sys/select.h: No such file or directory In file included from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/limits.h:11,from sys_defs.h:1347,from alldig.c:29: /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:27:31: sys/feature_tests.h: No such file or directory isa_defs.h: No such file or directory /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:29:28: iso/limits_iso.h: No such file or directory /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:41:28: sys/int_limits.h: No such file or directory alldig.c:30:19: ctype.h: No such file or directory (省略しているところあります) と出てmakeできません。 見つかっていないファイル類がSolaris開発ツールっぽいのしかわからず、どうやって入手すればいいかがわかりません。 SMTP-AUTH対応できればそれでいいのでpkgadd対応版みたいなので代用も可能です。 わかる方、お願いします
- 締切済み
- Solaris系OS
- gccですが、コンパイルができません!
以下のプログラムですが #include <stdio.h> int main() { Int col; char i; scanf( "%d", &col ); for( i = 0 ; i < 26 ; i++ ){ if( i > 0 && ( i % col ) == 0 ) printf( "\n" ); printf( "%c", 'a' + i ); } return 0; } 以上のプログラムをgccでコンパイルしました。 コンパイルするために入力した文字→ gcc p.c -o p.exe 以下のエラーがでてコンパイルできません。 p.c: In function `main': p.c:4: error: `Int' undeclared (first use in this function) p.c:4: error: (Each undeclared identifier is reported only once p.c:4: error: for each function it appears in.) p.c:4: error: syntax error before "col" p.c:7: error: `col' undeclared (first use in this function) p.c:17:2: warning: no newline at end of file 以上なぜコンパイルができないのですか? よろしくお願いいたします。
- ベストアンサー
- C・C++・C#
- エラーの対策
インターネット上で他の方のC言語ソースコードをダウンロードした、MAKEでコンパイルしたときに、以下のエラーはでました、どうしたらいいでしょうか? gcc -pipe -ansi -c -o base.o base.c base.c: In function `Setup': base.c:535: `S_IFDIR' undeclared (first use in this function) base.c:535: (Each undeclared identifier is reported only once base.c:535: for each function it appears in.) make: *** [base.o] Error 1
- 締切済み
- C・C++・C#
- solaris2.6でphp3動きますか?glibcがインストールできない
php3のsolaris2.6へのインストールで困ってます。sybaseの機能も一緒にインストールしようとしているのですが、php3のコンパイル時にfeatures.hというヘッダーがないといわれます。コンパイラーにはgccを使ってます。 これまで調べたところでは、features.hはgnuのlibc相当のライブラリのglibcに含まれるもので、それをインストールすれば解決できそうなことは分かってます。 しかし、glibcの最新版は、solarisをまだサポートしておらず、makeがとおりません。 どなたか同じようなご経験をされたかたがいらっしゃいましたら、アドバイスお願いします。
- 締切済み
- PHP
- gcc(cygwin)でのstd::wstringの利用方法
gccでstd::wstringを使用すると以下のようなエラーとなり、コンパイルが通りません。gccでのコンパイル方法を教えてください。gccのバージョンは3.4.4です。 error: `wstring' undeclared (first use this function)
- 締切済み
- C・C++・C#
- Solaris10でdelegateをインストール
OS:Solaris10(SPARC)を使っています。 delegateのインストールをしようとしているのですが 解凍したあとmakeコマンドを入れると # cd work/delegate8.95 # /usr/ccs/bin/make すると、以下のメッセージがでます。 cc -DMKMKMK -DDEFCC=\"cc\" -I../include -L../lib mkmkmk.c -o mkmkmk.exe /usr/ucb/cc:language optional software package not installed **Error Code 1 make:Fatal error :Command failed for target 'mkmake.exe' # /usr/ccs/bin/make CC=gcc と入れても sh:gcc 見つかりません とエラーがでます。 コンパイラがインストールできていないのでしょうか?それともパスの設定がまずいのでしょうか? どこから手をつけてよいかわからない状態です。アドバイスをよろしくお願い致します。
- ベストアンサー
- Solaris系OS
- solaris9に32ビットのapache,phpをinstallしたい
solaris 8で32ビット版gccでapache.php,あるモジュール(phpで使うxxx.soファイル) を構築して,solaris8では問題なく動くのですが solaris 9で構築することになり,apache,php等をinstallしましたが sokaris9ではgccが基本的に64bitなので,apache,phpも64bitでinstall されたようです が,あるモジュールは,32ビットしか対応していないので, 普通にgccしてもELFのエラーがでたので gccの-m32オプションを付けてコンパイルしてコンパイルは通りました (xxx.soは作成完了) しかし,実際cgiを起動して,phpからそのxxx.soの中の関数郡を使おうとするとELFのエラーがでました そこで,apache,phpを32ビットでinstallすればいいのではと思いましたが,Makefileをいじったりしていろいろとやってみましたが うまくいきません gccは3.4.4のsolari9 64bit版のパッケージを入れています solaris9でgccが64ビット環境で,apache,phpのinstallのやり方を 教えてください
- 締切済み
- Solaris系OS
- Solaris10でNet-SNMPがインストールできない
Solaris初心者です。よろしくお願いします。 Net-snmpをSolaris10にソースからインストールしようとしたのですが、下記のエラーが出てしまいインストールできません。 ./configure make make test(Summary: 59 / 59 succeeded.) make install creating directory /usr/local/include/net-snmp ./install-sh -c -m 644 ./include/net-snmp/version.h /usr/local/include/net-snmp/version.h cp: cannot create /usr/local/include/net-snmp/#inst.3763#: Permission denied *** Error code 2 The following command caused the error: if test "version.h" != "" ; then \ echo creating directory /usr/local/include/net-snmp ; \ it="version.h" ; \ /bin/sh ./mkinstalldirs /usr/local/include/net-snmp ; \ for i in $it ; do \ /bin/sh ./libtool --mode=install ./install-sh -c -m 644 ./include/net-snmp/$i /usr/local/include/net-snmp ; \ echo "installing $i in /usr/local/include/net-snmp" ; \ done \ fi make: Fatal error: Command failed for target `installlocalheaders' googleで調べては見たのですが(エラー文)同じ問題に対しての返答がなくて困っています。どうしたらよいでしょうか?よろしくお願いします。
- 締切済み
- Solaris系OS
- Solaris10でCコンパイラが見つからない?
Solaris 10 1/06 X86版にphp5.1.2をインストールしようとしているのですが、下記エラーが表示されてコンパイルが終了してしまいます。 エラー内容を見るとCコンパイラが見つからないといっているようなのですが、どう対応すればいいのでしょうか・・・ Solaris10にはgccコンパイラがインストールされていると思うのですが・・・ どなたかよろしくおねがいします。 # ./configure loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... egrep checking for a sed that does not truncate output... /usr/bin/sed checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH
- ベストアンサー
- Solaris系OS