Code Monkey home page Code Monkey logo

Comments (9)

Sija avatar Sija commented on July 28, 2024

Make sure you have "git" executable in your PATH.
You can check it from cmd.exe by typing "git --version".

Best regards,
Sijawusz Pur Rahnama

On Oct 12, 2012, at 9:00 PM, GoodEveningMiss [email protected] wrote:

I tried to install this by inserting the following line into my gemfile & running bundle install, but no go.
gem 'garb', :git => 'git://github.com/Sija/garb.git'

I get this error:
Fetching git://github.com/Sija/garb.git
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/source.rb:582:in
': No such file or directory - git clone "git://github.com/Sija/garb.git" "C:/R
uby193/lib/ruby/gems/1.9.1/cache/bundler/git/garb-e842720de50ae026d8afe9526ed8e7
9cc2ed72b8" --bare --no-hardlinks (Errno::ENOENT)

At first I had vigetlabs's garb installed, but same error after removing that.

I was able to clone this repository from git, but couldn't get it to install from source either. Something about lack of a gem file. Tried building it from the gemspec, and I get "Invalid gemspec in [garb.gemspec]: No such file or directory - git ls-files ERROR: Error loading gemspec. Aborting."

Is anyone else having this problem, or am I having a bizarre error on my end? And yes, I'm on Windows 7.


Reply to this email directly or view it on GitHub.

from garb.

GoodEveningMiss avatar GoodEveningMiss commented on July 28, 2024

Git's in my path :\

from garb.

Sija avatar Sija commented on July 28, 2024

Try setting up git by following instructions from https://help.github.com/articles/set-up-git#platform-windows.
Hope it helps.

from garb.

GoodEveningMiss avatar GoodEveningMiss commented on July 28, 2024

I have git version 1.7.11.msysgit.1 on my computer. I'll download the (non-developer? the shiny blue one) version of git for windows and try again.

As far as I can tell, the problem is with line 12 in the gemspec: " gem.files = git ls-files.split $\ " I checked vidget's gemspec file, and that gemspec lists each file name directly in the gem.files = line. My friend's suggesting that gem doesn't recognize git or can't find git's path, even though Ruby does. I'll try the other version of git for Windows, but that doesn't work I'll just install a VM and run it on Linux.

Thanks.

from garb.

Sija avatar Sija commented on July 28, 2024

Hi!

https://github.com/Sija/garb/blob/master/garb.gemspec#L12 invokes ls-file git command which is system independent (http://linux.die.net/man/1/git-ls-files). Vigetlab's version specifies all files in a static array instead of pulling list of them from git, which apparently causes problem for your windows installation.

On Oct 15, 2012, at 7:04 PM, GoodEveningMiss [email protected] wrote:

I have git version 1.7.11.msysgit.1 on my computer. I'll download the (non-developer? the shiny blue one) version of git for windows and try again.

As far as I can tell, the problem is with line 12 in the gemspec: " gem.files = git ls-files.split $\ "
Windows, at least my computer, doesn't know how to deal with the ls command, I believe. I checked vidget's gemspec file, and that gemspec lists each file name directly in the gem.files = line.

I'll let you know if the other Windows version of git works, cause if it's Windows/ls command compatibility thing, I find it weird no one else has had an issue on Windows.


Reply to this email directly or view it on GitHub.

from garb.

GoodEveningMiss avatar GoodEveningMiss commented on July 28, 2024

Yes, you're right about the first part. The ls-file error doesn't have to do with Windows.

Today and last week I've tried cloning this repository, and I got it to work on Windows, but I just tried on Ubuntu and I got "fatal: remote error: Repository not found." which was what I was getting on and off last week on Windows. But I guess it's a fluke or something since I've gotten it to work.

Feel free to close the error if you feel, since it's most likely something with my install and not your fork. I'm not sure what else can be done.

from garb.

GoodEveningMiss avatar GoodEveningMiss commented on July 28, 2024

Okay, I got your fork installed on the Linux VM. The remote error was probably a fluke since I don't think anything was done differently the second time. As far as my windows install, whatever. Thanks for the help!

from garb.

Sija avatar Sija commented on July 28, 2024

I'm glad it worked for you! :)

from garb.

GoodEveningMiss avatar GoodEveningMiss commented on July 28, 2024

Yup, thanks! It was actually a really stupid-easy solution.

clone repository
cd garb
bundle install
rake install

I'm not entirely sure why, but perhaps something in bundle helped gem get past the git ls-file line.

from garb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.