I have found Can't install chef, gem version conflict with net-ssh net-ssh-multi net-ssh-gateway in my research, but unfortunately none of those workarounds work for me in my particular case.
I'm trying to bootstrap chef on an EC2 instance.
I cannot upgrade to 11.x.
This one does not work: (added command I run to install chef which includes --verbose and --version)
gem install net-ssh -v 2.2.2 --no-ri --no-rdoc
gem install net-ssh-gateway -v 1.1.0 --no-ri --no-rdoc --ignore-dependencies
gem install net-ssh-multi -v 1.1.0 --no-ri --no-rdoc --ignore-dependencies
gem install chef --no-ri --no-rdoc --verbose --version 0.10.8
Is there any way to work around this problem without upgrading chef?
I've also tried the above but with
gem install chef --pre --no-ri --no-rdoc
and that fails too. These are both workarounds outlined in the linked post above.
Does this blog post by Joshua Timberman help?
I encountered these issues running a 0.10.4 Chef Server and equivalent Chef Clients when using Knife EC2 tool to launch servers.
For anyone else like me who had issues getting KNIFE to launch an instance without this net-ssh issue, placing the following in my bootstrap file didn't work as per recommendations elsewhere on SO:
gem install chef --no-ri --nordoc --verbose --version 0.10.24
The way that worked was to use a flag on the knife ec2 command:
--bootstrap-version 10.24.0
The version can be higher than 10.20.0.
Related
I have successfully installed php70 and mysql. But when i am trying to install phpmyadmin by
$ sudo yum-config-manager --enable epel
And Then
$ sudo yum install -y phpMyAdmin
It gives me
--> Finished Dependency Resolution
Error: php70-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Also after google sometimes i found a solution that try this
sudo yum install php70-mbstring
And i have tried this also, Still facing same error.
Any suggestion...?
I guess that you are following the Amazon tutorial to install phpMyAdmin ?
I had the same problem today and resolved it by uninstall PHP 7.0 with the yum command (the same given by Amazon with 'remove' instead of 'install' :
sudo yum remove httpd24 php70 mysql56-server php70-mysqlnd
and installed PHP 5.6 instead :
sudo yum install httpd24 php56 mysql56-server php56-mysqlnd
I don't know if this is a good solution, but it worked and I could install phpMyAdmin without dependencies problem. I hope it will help :)
In case you want to keep php7, I found a solution with AWS Amazon experts.
Just use :
sudo yum install -y php70-mbstring
I was having the same issue today. I had some success downloading phpmyadmin from phpmyadmin.net, and following their instructions. I did run into a different problem during the setup of phpmyadmin....
So, I punted on resolving this with the Amazon AMI for now, and chose to install the Bitnami LAMP AMI to get me going quicker. It comes with phpmyadmin configured.
NOTE: Bitnami's AMI is running PHP Version 5.6.29, so I would say it's valid to follow the previous post's advice and downgrade, unless your web application specifically needs PHP 7.0.
I run rails generate controller welcome index
I got the warning
You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run gem pristine --all
I updated gem --system and also added paths into ~/.bashrc, but still same result, is there any suggestion?
Since I had an older Ruby version 2.0 from the past, so it made apache confuse. I could either explicitly telling apache to use which directory, or use RVM (Ruby Version Manager) which do all jobs. Just need to go through these steps:
Install RVM:
rvm get stable --auto-dotfiles
Then tell which version you tend to use:
rvm use 2.2.0
Update gems
gem install rails
Now ready to go!
Go to your Gemfile.lock and change your version of Ruby. That might do it.
What Ruby manager are you using?
I've been trying to setup Vagrant to learn Django for a while now. I am following [http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/][1] tutorial. The first error is default: stdin is not a tty
and the second is
==> default: ERROR: Error installing chef:
==> default: mixlib-shellout requires Ruby version >= 1.9.3.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
I am using Ubuntu 14.04 LTS x86_64 as host machine.
sudo apt-get install ruby gives me "Already in the newest version". Tried installing chef manually. No luck either :(
I had a very similar issue (Vagrant, Django) which I solved by downgrading Chef. I had to pin a couple of gems too due to some version mismatches. This didn't solve all my issues but it did solve the OP's error with mixlib-shellout.
In my Vagrant file
# Install an older version of chef
config.vm.provision :shell, :inline => 'apt-get install build-essential ruby1.9.1-dev --no-upgrade --yes'
config.vm.provision :shell, :inline => "gem install mixlib-shellout --version 1.4.0 --no-rdoc --no-ri --conservative"
config.vm.provision :shell, :inline => "gem install ohai --version 7.4 --no-rdoc --no-ri --conservative"
config.vm.provision :shell, :inline => "gem install chef --version 11.18.12 --no-rdoc --no-ri --conservative"
More here.
https://www.chef.io/blog/2014/12/02/postmortem-ohai-mixlib-shellout-gem-release-issues/
I'm trying to install Open shift's client tool to access apps on OpenShift. But I get the following error when I try to install rhc:
Error installing rhc: net-scp requires net-ssh (>= 2.6.5, runtime)
Couldn't find much help online to resolve this error.
[I'm using an old MacBook running SnowLeopard.]
Thanks.
Snow Leopard comes with net-ssh 2.0.4 installed. Try running sudo gem update net-ssh in terminal to update net-ssh, then try installing rhc again.
You may want to just run sudo gem update to get all of your RubyGems up to date.
I want to install prawnto plug-in in my rails 3.0.6 application but when i fire the command as given here
rails plugin install git://github.com/thorny-sun/prawnto.git
it gives me result as given below
mkdir -p /var/www/octo11/vendor/plugins/prawnto
rm -rf /var/www/octo11/vendor/plugins/prawnto
which create and delete plugin directory automatically
Please anyone suggest me any alternatively to install the prawnto plugin. My system configuration is as given below
rails 3.0.6
ruby 1.8.7
ubuntu 11.04
thorny-sun seems to have deleted their fork, try one with recent updates, including docs on using with 3.1 in the readme:
https://github.com/forrest/prawnto
The best way to install seems to be using the gem version of this fork:
gem "prawnto_2", :require => "prawnto"
and then
bundle install