ngds / install-and-run

Use this repository's issue tracker to post comments, bug reports, and help questions on installing and running NGDS CKAN.
4 stars 3 forks source link

yum-config-manager: command not found #18

Closed ccaudill closed 9 years ago

ccaudill commented 9 years ago

yum install -y libxml2-2.9.0 gdal-1.9.2 gdal-python-1.9.2 gdal-devel-1.9.2 yum-utils

next error - trying to run the install command on line 8 of the instructions...

gin-error

@FuhuXia @lukejbuckley

FuhuXia commented 9 years ago

The error usually indicates some prior command was not executed successfully. Now try this command,

yum update -y ca-certificates --disablerepo=epel

Then start from beginning. Stop at any error message and report here. Dont try to move on to next command if previous one indicates some kind of error.

lukejbuckley commented 9 years ago

The command you gave ran, but now to first command in the stack gives the same error:

yum update -y ca-certificates

Yields

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again.

Sent from my iPhone

On Dec 2, 2014, at 7:40 AM, Fuhu Xia notifications@github.com<mailto:notifications@github.com> wrote:

The error usually indicates some prior command was not executed successfully. Now try this command,

yum update -y ca-certificates --disablerepo=epel

Then start from beginning. Stop at any error message and report here. Dont try to move on to next command if previous one indicates some kind of error.

— Reply to this email directly or view it on GitHubhttps://github.com/ngds/install-and-run/issues/18#issuecomment-65239767.

lukejbuckley commented 9 years ago

[root@MBMGGIN ~]# yum update -y ca-certificates --disablerepo=epel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

Luke Buckley | Computer Software Engineer MBMG | Montana Tech 1300 W Park St, NRB 329 A | Butte, MT 59701

From: Fuhu Xia [mailto:notifications@github.com] Sent: Tuesday, December 02, 2014 7:40 AM To: ngds/install-and-run Cc: Buckley, Luke Subject: Re: [install-and-run] yum-config-manager: command not found (#18)

The error usually indicates some prior command was not executed successfully. Now try this command,

yum update -y ca-certificates --disablerepo=epel

Then start from beginning. Stop at any error message and report here. Dont try to move on to next command if previous one indicates some kind of error.

— Reply to this email directly or view it on GitHubhttps://github.com/ngds/install-and-run/issues/18#issuecomment-65239767.

lukejbuckley commented 9 years ago

Ok, I went back and re-read what I think you meant... Have run the following commands in this order:

yum update -y ca-certificates --disablerepo=epel

cd /etc/yum.repos.d/ curl -fsLOS http://NGDS-RPM-SERVER/libxml2.repo curl -fsLOS http://NGDS-RPM-SERVER/ngds.repo

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://yum.postgresql.org/9.1/redhat/rhel-6.3-x86_64/pgdg-centos91-9.1-4.noarch.rpm rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm

yum install -y libxml2-2.9.0 gdal-1.9.2 gdal-python-1.9.2 gdal-devel-1.9.2 yum-utils

And get the error: "Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again" at the install line. So I stopped.

Is there an incorrect link in the epel.repo file? Or is the https throwing it off?

Thanks for any guidance. Luke

FuhuXia commented 9 years ago

It is the https in the epel.repo under [epel]. That is why we need to update the outdated ca-certificates first. Not sure why your instance does not get the updated certificates. Can you do check on the version:

rpm -qa ca-certificates

lukejbuckley commented 9 years ago

[root@MBMGGIN yum.repos.d]# rpm -qa ca-certificates ca-certificates-2014.1.98-65.1.el6.noarch [root@MBMGGIN yum.repos.d]#

FuhuXia commented 9 years ago

hmm.. that ca-certificates is as new as it can be. Not sure why it is still complaining epel link. Have not seen this before. To get the installation going, now let us simply change the url in epel.repo under [epel] from https to http and pretend everything is ok.

lukejbuckley commented 9 years ago

That got me past that step with success. After the yum install ngds.ckan it is asking:

Total download size: 278M Is this ok [y/N]:

Is my answer "y"?

lukejbuckley commented 9 years ago

Success!

The software is installed and I can login to the browser...

emilianoavendano commented 7 years ago

in order to "yum install yum-utils" work, you need the yum-utils before:

yum install yum-utils