I want to build Octopress on my Windows 8.1 system.
I installed Ruby 2.0.0, and DevKit in C:\devKit, then ran gem install bundler and bundle install.
They run successfully but when I run rake install, I always get an error message like:
rake aborted! cannot load such file --
C:/Users/username/Documents/GitHub/octopress/Rakefile
I think the problem is that my username is Chinese, but could there be another problem?
I've tried bundle update or bundle exec rake install but it didn't work.
I hope someone can help me.
Just to clean up this question and to supply the right answer.
I think the problem is that my username is Chinese, but could there be another problem?
The problem is that that current user has non English characters as the windows username.
This cause error and rake cant load the desired file.
Changing teh name or moving the the Octopress to a different folder fixed the problem.
Related
I am trying to use Middleman to create a website, and I am running into a lot of issues with trying to do it. To solve these issues I am currently running ruby through the git interface to resolve several errors that I get when trying to do this by other methods (like cmd). Right now I am having an issue getting the first step in doing a website with Middleman and getting errors when executing the first command in the first step of the tutorial.
I have found no resolution to my problem of WDM not working at all. Here is an image of what happens when I try to execute the command middleman init. After getting this Error I run bundle install and try again and get this Amazing Error that I have found no source in finding out how to fix. When I Do gem install WDM -v '0.1.1' --source 'https://rubygems.org/' it seems to work but then spits out the same error when I run middleman init again. I have no idea why this is happening when I can find no other sources on how to fix this.
Did you try running the suggested command at the bottom
gem install wdm -v '0.1.1' --source 'https://rubygems.org/'
?
I just installed Ruby 2.2.2 on a Windows 7 64-bit VM. Every gem install <gemname> attempt fails with the following error:
ERROR: Could not find a valid gem '<gemname>' ()= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name
(https://api.rubygems.org/specs.4.8.gz)
However, the list generated by the gem list contains the gem that I thought failed. Is it actually installed or not? I assume it isn't but even if it is, the error concerns me.
I know that I am working behind a proxy so I've tried appending --http-proxy but that hasn't helped either.
Any ideas to troubleshoot this? Thanks!
It's possible that one of the gems that you installed declares an invalid dependency such as <gemname> (specifically).
To validate this, open an irb or pry console and run Gem.loaded_specs to see if the string <gemname> shows up anywhere.
You could also try updating your rubygems with gem update --system.
And finally, you could also try to run gem check to validate all installed gems.
Unfortunately, this appears to be an issue that needs to be investigated to get to the root cause.
I ran into the same issue before figuring out my session was fucked up. Indeed the command whoami was displaying an id and not my username. I logged out and logged in again and everything was solved.
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'.
I've been working on this issue for quite some time now and I did not come up with an solution so far. I have installed redmine via a bitnami stack. I set up git via gitosis as well, and now I'm trying to install the gitosis plugin for redmine. But when I try to activate the plugin with "rake redmine:plugins:migrate RAILS_ENV=production" I get the following error:
rake aborted!
No such file to load -- lockfile
Tasks: TOP => db:migrate_plugins => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
I ran the command with the use_redmine script. I already installed lockfile via "gem install lockfile". bundle check returns that all dependencies are satisfied, but I still can't get this thing to work.
After reading some similar questions here, I guess it could have something to do with the passenger module.
I figured it out now. Sorry, I forgot about my post here.
The solution was kinda dumb. I did install the required packages, but I did not include them in my Gemfile.
Developing Rails and even installing Rails Applications can be a real pain in the butt -.-
I m trying to install the Octopress on my windows. As per their Tutorial on their website. But when I type the command
rake install
It gives me the following error
C:\Documents and Settings\admin\octopress>rake install
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. U
sing bundle exec may solve this.
(See full trace by running task with --trace)
And as the error says I need to install rake 0.9.2
I tried it doing with the following command.
C:\Documents and Settings\admin\octopress>gem install rack -v=0.9.2.0
ERROR: Could not find a valid gem 'rack' (= 0.9.2.0) in any repository
ERROR: Possible alternatives: rack
I already have Ruby & Gems installed on my PC. But I m not able to figure out how to solve this issue. How do I even use the "bundle exec" to install Octopress ?
You probably need to use the bundle exec in this way
bundle exec rake install
This might just solve you problem.
I solve this with bundle update
it's a dependency problem and not big deal
The first time you spelled it rake and the second time you spelled it rack
First update the documentation to say,
bundle exec rake install
Then update the Gemfile.lock with,
bundle update