am on a rubymotion project
have required afmotion in rake file, gem file and bundle installed. I get the above error when I try to run rake pod:install.
Any ideas? Thanks in advance.
Make sure you have the cocoapods gem installed, then run
pod setup
If for some reason that doesn't solve the problem, remove the cocoapods directory entirely with
rm -rf ~/.cocoapods and try to pod setup again.
Related
I'm trying to run a tootctl command, but am running into a problem with it not being able to detect the required dependency is not present.
Could not find concurrent-ruby-1.1.10 in any of the sources
I have run bundle install and the gems get installed (or are confirmed already installed), but the command still has trouble not finding the
Using concurrent-ruby-1.1.10
...dozens of other packages
Using rails-settings-cached 0.6.6
Bundle complete! 122 Gemfile dependencies, 225 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `../vendor/bundle`
then I attempt the command again..
me#mastodon-vm:/var/www/mastodon/bin$ ./tootctl media remove --days=7
Could not find concurrent-ruby-1.1.10 in any of the sources
Run `bundle install` to install missing gems.
me#mastodon-vm:/var/www/mastodon/bin$
but I'm back to the same problem. What is the typical approach to fix this?
Note: I did try to follow the guidance in this SO post, but it broke the entire installation. I was able to save it by replacing Gemfile and Gemfile.lock from Mastodon's source (phew)
Your log shows
Gems in the groups 'development' and 'test' were not installed.
Try to install your Gems with
bundle install --with development test
or run
RAILS_ENV=production tootctl
According to https://rubygems.org/gems/concurrent-ruby/versions/1.1.10 the gem is named "concurrent-ruby". When I run gem install concurrent-ruby, it is installed successfully on my computer.
I've been trying to run a bundle install and I always seem to get the same error 'Could not locate Gemfile or .bundle/ directory'
If someone could explain a possibility of why I may be getting this it would be very helpful
Thanks :)
To confirm which file bundler is trying to use as its Gemfile, try this:
bundle exec ruby -e "puts ENV['BUNDLE_GEMFILE']"
To make sure you don't have a setting that's causing bundler not to use the Gemfile in your current (or a parent) directory, try this:
bundle config Gemfile
I am running into troubles installing gems through bundle install from an app that i cloned through git.
Here is the what the output from bundle install looks like:
bundle install
/usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8:in `require': no such file to load -- rubygems (LoadError)
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8
from /usr/lib/ruby/vendor_ruby/bundler.rb:11:in `require'
from /usr/lib/ruby/vendor_ruby/bundler.rb:11
from /usr/bin/bundle:4:in `require'
from /usr/bin/bundle:4
I read up on google and other stackoverflow questions but the file pointed to above is in th ruby folder so it should not be anyway related to the app (which in theory would mean i wouldn't be able to bundle install for any app). any way how to fix this??
any help will be deeply appreciated!
I have the same question with yours, I searched a lot, but no one is the solution, at last, I asked co-worker in my company, he just ran
gem list
to list the local gems, we found there's no bundler gem, so he ran
gem install bundler
then he ran
bundle install
OK, it worked.
Are you in the directory where your gemfile is located? I believe your current directory needs to be there.
Once Gemfile.lock is created,
whenever you run bundle install, Bundler reads this file rather than Gemfile to work
out the dependencies of the application and installs from it.
try check Gemfile/Gemfile.lock what is need to install
Make sure you're inside your application's directory before you bundle install. Because it will find the GemFile and check what gem needs to install
Run the following command :
sudo apt-get install rubygems build-essential
It should work like a charm.
I had this same problem (exact same output) and it is solved for me by simply installing the package 'rails'.
When launching Guard, I'm getting this output:
$ guard
WARN: Unresolved specs during Gem::Specification.reset:
lumberjack (>= 1.0.2)
ffi (>= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
What does this mean, and how do I fix it?
Contents of Guardfile:
guard 'livereload' do
watch(%r{.+\.(css|js|html)$})
end
guard 'sass', :input => 'css', :style => :compressed, :extension => '.min.css'
I was seeing this issue by just running RSpec on its own. From what I understand, this means that you have more than one version of the listed gems installed on your system, and RSpec is unsure which one to use. After uninstalling older version of the gems, the warnings went away.
You can try:
gem cleanup lumberjack
Or:
gem list lumberjack
gem uninstall lumberjack
If you're using Bundler, you can try bundle exec guard (or in my case bundle exec rspec).
Using the following command solved it for me:
bundle clean --force
See guard-and-unresolved-specs for more info
Use Bundler. Call bundle exec guard, not guard.
FYI:
gem cleanup
worked for me.
$ gem cleanup
Cleaning up installed gems...
Attempting to uninstall builder-3.2.2
Successfully uninstalled builder-3.2.2
Attempting to uninstall amatch-0.3.0
Successfully uninstalled amatch-0.3.0
Attempting to uninstall tins-1.12.0
Successfully uninstalled tins-1.12.0
Clean Up Complete
This worked for me:
bundle clean --force
then
bundle install
to reinstall gems.
I use gem list gem-name; gem uninstall gem-name to clean the gem one by one because of the dependency. After that, the error does not show again.
add
'bundle exec'
before your command.
I use ruby 2.4 and got the same problem when deploying jekyll on windows, it fixed.
I was getting this message while running Rspec within a Guard plugin gem, using bundle exec rspec. It turned out to be a missing line in the gemspec file:
$:.push File.expand_path("../lib", __FILE__)
This line is normally at the top of the file (in many of the gems I have recently been working in) and I had commented it out to see why.
Remember, if you want to use guard, you have to add gem guard to Gemfile.
group :developement, :test do
gem 'guard'
end
Then, run
bundle install
I hope this can help you.
If anyone has come this far and still hasn't found the answer I leave you with this. gem update --system. I tried all of these other answers to no avail. Hopefully this works for you.
Try gem uninstall <gem>
and it will remove all younger versions of gem.
You will then be asked
"If you remove this gem, these dependencies will not be met. Continue
deleting? [YN]"
Select the answer
"no"
to leave the latest version of gem and all dependencies remain valid.
I'm running ruby 1.9.3-p125 and rails 3.2.6. When I run bundle install, I get the error:
Could not find addressable-2.3.1 in any of the sources
My Gemfile.lock contains "addressable (2.3.1)", but it isn't an explicit dependency of my application. Why is this, and how can I fix it?
addressable-2.3.1 was yanked http://rubygems.org/gems/addressable/versions/2.3.1
Use bundle update to update Gemfile and it will use addressabe-2.3.2 instead