2016-05-14 5 views
1

Ich habe die Anweisungen aus der folgenden Website zur Einrichtung cfncluster http://cfncluster.readthedocs.io/en/latest/getting_started.htmlFehler bei dem CFNCluster Einrichtung

gefolgt Nachdem ich cfncluster mit diesem Befehl installiert

sudo pip install cfncluster 

ich den Befehl lief

cfncluster configure 

aber es sagt:

bash: cfncluster: Befehl nicht

mich gefunden

Kann jemand bitte sagen, was hier schief gelaufen ist?

finden Sie die folgende Ausgabe:

[[email protected] ~]$ sudo su 

[[email protected] ec2-user]# sudo pip uninstall cfncluster 

You are using pip version 6.1.1, however version 8.1.2 is available. 

You should consider upgrading via the 'pip install --upgrade pip' command. 
Uninstalling cfncluster-1.2.1: 

/usr/local/bin/cfncluster 
    /usr/local/lib/python2.7/site-packages/cfncluster-1.2.1.egg-info 
    /usr/local/lib/python2.7/site-packages/cfncluster/__init__.py 
    /usr/local/lib/python2.7/site-packages/cfncluster/__init__.pyc 
    /usr/local/lib/python2.7/site-packages/cfncluster/cfncluster.py 
    /usr/local/lib/python2.7/site-packages/cfncluster/cfncluster.pyc 
    /usr/local/lib/python2.7/site-packages/cfncluster/cfnconfig.py 
    /usr/local/lib/python2.7/site-packages/cfncluster/cfnconfig.pyc 
    /usr/local/lib/python2.7/site-packages/cfncluster/cli.py 
    /usr/local/lib/python2.7/site-packages/cfncluster/cli.pyc 
    /usr/local/lib/python2.7/site-packages/cfncluster/config_sanity.py 
    /usr/local/lib/python2.7/site-packages/cfncluster/config_sanity.pyc 
    /usr/local/lib/python2.7/site-packages/cfncluster/easyconfig.py 
    /usr/local/lib/python2.7/site-packages/cfncluster/easyconfig.pyc 
    /usr/local/lib/python2.7/site-packages/cfncluster/examples/config 

Proceed (y/n)? y 
    Successfully uninstalled cfncluster-1.2.1 


[[email protected] ec2-user]# sudo pip install cfncluster 
You are using pip version 6.1.1, however version 8.1.2 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
Collecting cfncluster 
    Using cached cfncluster-1.2.1.tar.gz 
Requirement already satisfied (use --upgrade to upgrade): boto>=2.39 in /usr/local/lib/python2.7/site-packages (from cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): awscli>=1.10.13 in /usr/local/lib/python2.7/site-packages (from cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): rsa<=3.3.0,>=3.1.2 in /usr/lib/python2.7/dist-packages (from awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): s3transfer==0.0.1 in /usr/local/lib/python2.7/site-packages (from awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): botocore==1.4.19 in /usr/local/lib/python2.7/site-packages (from awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): colorama<=0.3.3,>=0.2.5 in /usr/local/lib/python2.7/site-packages (from awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.10 in /usr/local/lib/python2.7/site-packages (from awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.3 in /usr/local/lib/python2.7/site-packages (from rsa<=3.3.0,>=3.1.2->awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): futures<4.0.0,>=2.2.0 in /usr/local/lib/python2.7/site-packages (from s3transfer==0.0.1->awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python2.7/site-packages (from botocore==1.4.19->awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python2.7/site-packages (from botocore==1.4.19->awscli>=1.10.13->cfncluster) 
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/local/lib/python2.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.4.19->awscli>=1.10.13->cfncluster) 

Installing collected packages: cfncluster 

Running setup.py install for cfncluster 
Successfully installed cfncluster-1.2.1 

[[email protected] ec2-user]# sudo cfncluster configure 
sudo: cfncluster: command not found 
[[email protected] ec2-user]# cd /usr/local/lib/python2.7/site-packages 
[[email protected] site-packages]# ls -l 
total 160 
drwxr-xr-x 6 root root 4096 May 13 19:11 awscli 
drwxr-xr-x 2 root root 4096 May 13 19:11 awscli-1.10.28.dist-info 
drwxr-xr-x 57 root root 4096 May 14 18:59 boto 
drwxr-xr-x 2 root root 4096 May 14 18:59 boto-2.40.0.dist-info 
drwxr-xr-x 5 root root 4096 May 13 19:11 botocore 
drwxr-xr-x 2 root root 4096 May 13 19:11 botocore-1.4.19.dist-info 
drwxr-xr-x 3 root root 4096 May 16 04:24 cfncluster 
drwxr-xr-x 2 root root 4096 May 16 04:24 cfncluster-1.2.1.egg-info 
drwxr-xr-x 2 root root 4096 May 14 18:59 colorama 
drwxr-xr-x 2 root root 4096 May 14 18:59 colorama-0.3.3.egg-info 
drwxr-xr-x 3 root root 4096 May 13 19:11 concurrent 
drwxr-xr-x 4 root root 4096 May 14 18:59 dateutil 
drwxr-xr-x 8 root root 4096 May 14 18:59 docutils 
drwxr-xr-x 2 root root 4096 May 14 18:59 docutils-0.12.egg-info 
drwxr-xr-x 2 root root 4096 May 13 19:11 futures-3.0.5.dist-info 
drwxr-xr-x 2 root root 4096 May 14 18:59 jmespath 
drwxr-xr-x 2 root root 4096 May 14 18:59 jmespath-0.9.0.dist-info 
drwxr-xr-x 5 root root 4096 May 14 18:59 pyasn1 
drwxr-xr-x 2 root root 4096 May 14 18:59 pyasn1-0.1.9.dist-info 
drwxr-xr-x 2 root root 4096 May 14 18:59 python_dateutil-2.5.3.dist-info 
-rw-r--r-- 1 root root 119 Dec 8 18:25 README 
drwxr-xr-x 2 root root 4096 May 13 19:11 s3transfer 
drwxr-xr-x 2 root root 4096 May 13 19:11 s3transfer-0.0.1.dist-info 
drwxr-xr-x 2 root root 4096 May 14 18:59 six-1.10.0.dist-info 
-rw-r--r-- 1 root root 30098 May 14 18:59 six.py 
-rw-r--r-- 1 root root 29545 May 14 18:59 six.pyc 

[[email protected] site-packages]# cd cfncluster 

[[email protected] cfncluster]# cfncluster configure 

bash: cfncluster: command not found 

[[email protected] cfncluster]# 

[[email protected] cfncluster]# which cfncluster 
/usr/bin/which: no cfncluster in (/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin) 
[[email protected] cfncluster]# 
+0

Können Sie mit 'sudo deinstallieren pip uninstall cfncluster' und dann einen zweiten Timer installieren. Können Sie die Ausgabe Ihrer Installation kopieren? –

+0

Bitte zeigen Sie die Ausgabe von 'welche cfncluster' – GMichael

+0

Hallo Christophe, ich habe meine Ausgabe posten finden Sie es oben. – nadish

Antwort

0

nach dem Hinzufügen "/ usr/local/bin", um PATH den cfncluster Befehl nicht gefunden Problem behoben wurde

[[email protected] etc]# echo $PATH 
/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin 
[[email protected] etc]# export PATH="/usr/local/bin:$PATH" 
[[email protected] etc]# echo $PATH 
/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin 
Verwandte Themen