I just installed the searchlogic gem, and when I run rake gems:install, I'm getting the following output:
gem install serachlogic
ERROR: could not find gem serachlogic locally or in a repository
Not the misspelling of "serachlogic". I don't think that's an error I introduced, but I'm not sure where I can fix it.
Any ideas? Thanks....
You probably have a typo in your Gemfile (if you use bundler) or config/environment.rb.
If all else fails, open up your editor and search all your project code for serachlogic to see where the problem is located.
Related
I am trying to make a very simple rails program and meet this problem. When I ran rails s, it said to me this error
Could not find gem sqlite3 (~>1.4) x86~mingw32 in any of the gem sources listed in your gemfile. Run bundle install to install missing gems
The problem is, when I ran bundle install, it auto delete something in the program, and it said that error : mingw32: key "4A6129F4E4B..." is unknown and many errors more as you can see in the picture.
error: mingw32: key 4A6129F4E... is unknown
I follow this link to fix the error, https://www.msys2.org/news/, and successfully.
Then I follow this link https://www.sqlite.org/howtocompile.html and copy all the sqlite file to the folder C:\Ruby26\lib\ruby\gems\2.6.0\gems\sqlite3-1.4.2\ext\sqlite3 and compile it by msys, also successfully.
But, when I tried to run rails s, it still said to me that error, Could not find gem sqlite3 (~>1.4) x86~mingw32 in any of the gem sources listed in your gemfile. Run bundle install to install missing gems
And when I ran bundle install, it deleted something in my program.
I am very confusing with this problem, could you please give me some ideas? Thank you very much.
I am trying to get a simple tutorial app up and running with Rails, but have run into this problem almost right away. I create the new ruby app, cd to the directory and run rake db:create. I get the following
Please install the sqlite3 adapter: 'gem install activerecord-sqlite3-adapter' (sqlite3 is not part of the bundle. Add it to the Gemfile.)
But I do have the gem added to the Gemfile, like so:
gem 'sqlite3'
Also, when I tried to gem install the adapter, I was given an output saying that it did not exist in any repository. This is my first time using rails, any ideas on how to fix this?
*Edit
gem install activerecord-sqlite3-adapter produces the following:
Error: Could not find a valid gem 'activerecord-sqlite3-adapter' in any repository.
The it offers some alternatives, only one of them being sqlite3. It is called activerecord-jdbcsqlite3-adapter. Is this the one I need possibly?
Thank you for everyone's input. I never was able to resolve this issue, and ended up just using the Rails Installer instead. So much easier, just make sure you delete all your previous versions of Rails, Ruby, Gems, everything. Then use the installer.
I am super, super new at programming and I have been trying to get everything set-up on my computer. I have installed RailsInstaller, go to >railsinstaller_demo, and type in rails s. I get the following error though could not find gem 'uglifier <>= 1.0.3> x86-mingw32'
I looked through the forum and found how to do a gem list and i noticed it was not there. I then went to gembundler and ran $ gem install bundler. I tried again but it did not work.
I am sure the answer is on this site, but i am so new that i see all these lines of code I actually have no idea where to type it in.. I am running Windows 7.
thanks for taking the time to help out a real beginner.
Have you gone to the $ railsinstaller_demo directory and run the bundle install command? This will install the gem dependencies for the application; you will not be able to run the server until you've bundled the gems. Additionally, if you're still having issues with the uglifier gem, go ahead and remove the line in the Gemfile and then run bundle install
If you need further help with the Command Prompt, you an find out more at http://bit.ly/ZajVeW.
Thanks,
Evan
I am following the tutorial on railstutoiral.org and encounter the following error: "ZenTest is not part of the bundle. Add it to Gemfile. (Gem::LoadError)." I have ZenTest (4.4.2) installed according to gemlist so what's wrong? Thanks!
Open 'Gemfile' in the root of your rails application, and add a section like this to the bottom:
group :development, :test do
gem 'ZenTest'
end
Then at the command line, type:
bundle install
This command will install the gem and associate it with your application. It might take a few minutes :)
The cause of your problem is that under rails 3, rubygems are managed by a tool called bundler, which manages all the dependencies between your gems and ensures that your application is always started with the right versions of the right gems, even when you move it between servers.
One more thing to note is that if you want to run a command from a gem you've installed using bundler, you need to type 'bundle exec <command>' to ensure the right environment is established to run the command.
Even if you have it installed it isn't getting loaded because it says it isn't in the Gemfile. The Gemfile exists at the root of your project directory.
I am trying to install ruby-mp3info as a gem on my computer.
Running sudo gem install ruby-mp3info seems to work OK.
In my environment.rb file, I added config.gem "ruby-mp3info".
When I try to run the server, it fails, claiming I have some missing gems
Following the error message's advice:
Run `rake gems:install` to install the missing gems.
I run the command, which simply returns my local path. Running the server again - I get the same error message.
Could someone explain what I am doing wrong? How does one go about installing gems from RubyForge - or in general?
How does the gem command know where to find the necessary files - they are not all stored on my computer. Does it have hardcoded urls built into it?
Here's what did the trick.
In my environment.rb file, I had the following:
config.gem "ruby-mp3info"
Playing around with the options, I found that I had to specify the lib attribute:
config.gem "ruby-mp3info", :lib => "mp3info"
This solved the problem.
I've run into a similar problem on servers when running Phusion Passenger (mod_rails). Problem being I forget to update the Passenger gem repository like this:
/opt/ruby-enterprise-1.8.6-20090421/bin/gem install whatever
instead of simply this:
gem install whatever
It would be a useful utility for someone to write, keeping the 2 gem repos in sync.