仮想環境 VirtualBox - Vagrant
サーバー centOS64 におきまして、
vagrant init centos64 vagrant up vagrant ssh
の後、ruby, Ruby on rails, git を正常にインストールし終えました。
[vagrant@localhost ~]$ ruby -v ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] [vagrant@localhost ~]$ rails -v Rails 5.0.2 [vagrant@localhost ~]$ git --version git version 1.7.1
〜 PostgreSQLのバージョンを確認。
[vagrant@localhost ~]$ psql --version -bash: psql: command not found
_PostgreSQLをインストールしたいのですが、
[vagrant@localhost ~]$ sudo yum install postgresql-server Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] problem making ssl connection Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: pgdg95. Please verify its path and try again
となってしまいます。repository metadataが見つからない、ようですが、githubでもないのにrepositoryということは、どこかでcloneしたりするのでしょうか。
sudo yum install -y http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm sudo rpm -ivh http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm sudo yum install -y postgresql95 postgresql95-server postgresql95-contrib postgresql95-libs postgresql95-devel sudo rpm -i http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm sudo yum update sudo yum -y install postgresql96* sudo vi /etc/yum.repos.d/CentOS-Base.repo sudo yum -y localinstall https://yum.postgresql.org/9.6/redhat/rhel-6.7-x86_64/pgdg-centos96-9.6-3.noarch.rpm sudo apt-get install postgresql wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
〜 上記の如くいくつか試しましたが、インストールができないです。
[root@localhost network-scripts]# vi ifcfg-eth0 [root@localhost network-scripts]# vi ifcfg-eth1 [root@localhost network-scripts]# vi ifcfg-lo
〜 これらのファイルも異状ありません(noをyesに書き換える場合があるようです)。
_なにがしかでも御指南いただけますと幸いです。
回答2件
あなたの回答
tips
プレビュー