• ベストアンサー

Linuxでmakeが実行出来ません

Linuxの素人です。 RedHatLinux7jをインストールして、PostgreSqlを実行したいと考えています。 (Apache+PostgreSql+PHP) そこで、本を見ながらPostgreSqlのソースを展開した後に、 シェルで「make」を入力してみましたが、正しく実行してくれません。 メッセージは下記の様に表示されました。 [postgres@server1 src]$ make You must use GNU make to use Postgres. It may be installed on your system with the name 'gmake'. NOTE: If you are sure that you are using GNU make and you are still getting this message, you may simply need to run the configure program. [postgres@server1 src]$ gmake 「gmake」を入力しても、同じメッセージが表示されます。 コンパイルを可能にするにはどうしたらよいでしょうか? 宜しくお願いします。

質問者が選んだベストアンサー

  • ベストアンサー
回答No.1

表示されたメッセージに、「gmakeを使ってもうまくいかなければ、configureを実行してくれ」と書いてありますが、すでにconfigureは実行済みですか?

mogomogo2
質問者

お礼

有難うございます。 configureは実行していると思っていました。 でも、エラーが出ていたのを見落としていたみたいです。 環境を整えて再度チャレンジしてみます。

その他の回答 (1)

  • asuca
  • ベストアンサー率47% (11786/24626)
回答No.2

userの環境がちゃんとなっていないんじゃないでしょうか? このメッセージはよく/bin/sh以外のシェル環境で実行すると出ますよ。 自分のルートの環境変数をよく見てみてください。

mogomogo2
質問者

お礼

有難うございます。 少し先に進めそうです。 素人なので、又分からなくなると思います。 その時は、宜しくお願いします。

関連するQ&A

  • make でエラー

    勉強中の身です。 環境 fedora 2 postgresqlをインストールして (postgresql-8.2.1) make コンパイルがうまくいきません [postgres@localhost postgresql-8.2.1]$ ./configure checking build system type... i686-pc-linux-gnuoldld checking host system type... i686-pc-linux-gnuoldld checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... no checking for cc... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. [postgres@localhost postgresql-8.2.1]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] エラー 1 $ make とすると上記のようにエラーがでます。 ./configure -オプション が必要なのでしょうか? よろしくおねがいします。

  • Radiusのmake時に表示されるエラーの解決策を教えて頂けないでしょうか?

    freeradius-1.1.7のmake時に以下のエラーらしきメッセージが表示されます。(Apache、PHP、MySQL をyumでインストール済みです。) 経験が浅いため、解決策を教えていただけないでしょうか? ・ ・ ・ /usr/lib/libltdl.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status gmake[4]: *** [radiusd] エラー 1 gmake[4]: ディレクトリ `/tmp/freeradius-1.1.7/src/main' から出ます gmake[3]: *** [common] エラー 2 gmake[3]: ディレクトリ `/tmp/freeradius-1.1.7/src' から出ます gmake[2]: *** [all] エラー 2 gmake[2]: ディレクトリ `/tmp/freeradius-1.1.7/src' から出ます gmake[1]: *** [common] エラー 2 gmake[1]: ディレクトリ `/tmp/freeradius-1.1.7' から出ます make: *** [all] エラー 2

  • RedHat9にPostgreSQL構築できるが、再起動すると消滅

    WindowsXP内のVMWareに仮想マシンRedHat9を構築して便利に使っています。今回この中ににPostgreSQL構築しpostgresql-8.1.3.tar.gzを/usr/local/srcにダウンロード #useradd postgres #mkdir /usr/local/pgsql #mkdir /usr/local/pgsql/data #cd /usr/lcal/src #tar zxfv postgres-8.1.3.tar.gz #chown postgres.postgres /usr/locl/pgsql #chown -R postgres.postgres postgresql.1.3 #su - postgres $cd /usr/local/src/postgresql-8.1.3 $./configure $gmake $gmake install 以上で無事postgreSQLデータベースが完成 引き続きユーザpostgresで $/usr/local/pgsql/bin/initdb -D /usr/local/pogsql/data $/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data $/usr/local/pgsql/bin/createdb TestDB $/usr/local/pgsql/bin/psql TestDB で作成したTestDBに接続でき、テーブルも作りました。 ところがRedHat9をいったん再起動するとできている筈のTestDBに接続できなくなります。どこかにどこかに設定ミスがありますか。何かヒントをいただければうれしいです。 $/usr/local/

  • CentOS5でLAPPを構築したいのですが・・・

    CentOS5にApacheとPostgreSqlとPHPをインストールしたいんですがうまくいきません。 httpd-2.2.14 postgresql-8.2.6 php-5.2.6 を入れようと思っています。 CentOS5をインストールして、IPアドレスやホスト名などの設定後、もともとインストールされているApacheなどを # rpm -qa | grep 'httpd' # rpm -e httpd などのコマンドで削除ごに #/usr/local/src/ に上記のApcheやPHPなどのファイルを持ってきてApache→Postgresql→PHPの順番にインストールしました。 Apcheの場合 # cd /usr/local/src # tar xfz /usr/local/src/httpd-2.2.14.tar.gz # cd httpd-2.2.14 # /configure # make # make install Postgresqlの場合 # /usr/sbin/adduser postgres # chown postgres:postgres /usr/local/pgsql # mkdir /usr/local/src/postgres-8.2.6 # chown postgres:postgres /usr/local/src/postgresql-8.3.7 # su - postgres # cd /usr/local/src # tar xfz /usr/local/src/postgres-8.2.6.tar.gz # cd /usr/local/src/postgres-8.2.6 # ./configure # make # make install PHPの場合 # cd /usr/local/src # tar xfz /usr/local/src/php-5.2.6.tar.gz # cd /usr/local/src/php-5.2.6 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregex --with-pgsql # make # make install 上記の様なコマンドでインストールしましたがうまくいきません 詳細な設定もしているつもりですがいまいちうまくいきません どうか皆さまの知識をどうかお貸しくださいm(_ _)m

  • xfz zxvf??

    RedHatLinux7.2にポスグレ7.2.1をインストールしようとしているのですが、[postgres@localhost src]$ tar xfz postgresql-7.2.1.tar.gzを実行すると、open不能:そのようなファイルやディレクトリはありませんとエラーが出ます。srcにはpostgresql-7.2.1.tar.gzはちゃんと存在するのですが、なぜエラーになってしまうのでしょう・・・。別の本やサイトにはxfzの変わりにzxvfが使われているのですが、この意味がわかりません。 宜しくお願いします!!

  • postgresqlでinitdbが実行できない

    Vine Linux2.6r4 + PostgreSQL 7.4.3で、インストールが終了して、initdbを実行すると、 creating directory /data... mkdir: ディレクトリ `/data' を作れません: 許可がありません とメッセージがでてきて、実行できません。 ユーザもpostgresでやっていて、問題はないとおもっていますが。。 どなたかご存知のかたがいらっしゃいましたらお教え願えませんでしょうか?

  • PostgreSqlインストールで

    Linux環境にPostgreSqlをインストールしたいのですが以下のエラーがでて困ってます; 手順としては 1, ./configure 2, gmake 3, su 4, gmake install 5, mkdir /usr/local/pgsql/data 6, chown postgres /usr/local/pgsql/data 7, su - postgres 8, /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data 9, /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 & 10, /usr/local/pgsql/bin/createdb test 11, /usr/local/pgsql/bin/psql test まず手順8で以下のエラーが出ます database "postgres" does not exist その後、手順9を実行すると以下のエラーがでます createdb: could not connect to database template1: could not connect to server: そのようなファイルやディレクトリはありません Is the server runnning locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? 解決策等ご存知でしたら教えて頂けないでしょうか? よろしくお願い致します。

  • sudo createdbをnopasswdで実行

    sudoをnopasswdで設定しているにも関わらずpostgresユーザーで sudo createdb を行うとパスワードを聞いてきます。 sudo 設定内容 postgres ALL=NOPASSWD: ALL 実際に行ったコマンド -bash-4.1$ sudo -u hogehoge /usr/bin/createdb -U hogehoge -W hogehoge -E UTF-8 -D hogehoge -w [sudo] password for postgres: nopasswdで実行出来れば最終的にcronでの定期実行を考えています。 環境は以下の内容です。 CentOS-6.2-x86_64 PostgreSQL 9.3.16 よろしくお願い致します。

  • linux postgres アンインストールにつ

    いつもお世話になっております。 postgres8系をアンインストールしたく、下記を実行しましたが、 依存関係のエラーが続出してしまい、どうしたらよいかわからなくなってしまいました。 どのようにするのが、定石なのでしょうか。 お手数をお掛けしますが、何卒ご教授くださいますようお願い申し上げます。 [root@localhost ~]# rpm -qa | grep postgres postgresql-server-8.1.22-1.el5_5.1 postgresql-8.1.22-1.el5_5.1 postgresql-libs-8.1.22-1.el5_5.1 postgresql-tcl-8.1.22-1.el5_5.1 postgresql-contrib-8.1.22-1.el5_5.1 You have new mail in /var/spool/mail/root [root@localhost ~]# rpm -qa | grep postgres | xargs rpm -e エラー: 依存性の欠如: libpq.so.4 は (インストール済み)apr-util-1.2.7-11.el5_5.2.i386 に必要とされています libpq.so.4 は (インストール済み)php-pgsql-5.1.6-27.el5_5.3.i386 に必要とされています [root@localhost ~]# rpm -qa | grep apr-util apr-util-1.2.7-11.el5_5.2 [root@localhost ~]# rpm -qa | grep apr-util | xargs rpm -e エラー: 依存性の欠如: libaprutil-1.so.0 は (インストール済み)httpd-2.2.3-43.el5.centos.3.i386 に必要とされています [root@localhost ~]#

  • 英文を訳して下さい。

    あるサイトの英文です。訳して下さい。 You are free: to Remix — to adapt the work to make commercial use of the work