Installed rbenv and dugway but lost from there? - ruby

To cut a long story short this year I changed from PC to Mac and I've been asked to code a website for Big Cartel and I've an existing theme I'd like to edit.
Turns out getting dugway up and running on Mac isn't as straight forward as PC but none the less it has to be done.
I've got homebrew installed which allowed me to install rbenv along with the plugin.
From there I did the usual gem install dugway which went fine
But I'm confused why dugway create mytheme didn't work I got the error
-bash: dugway: command not found
I believe it's because I hadn't selected the directory but how do I do that?
Also does anyone know how dugway can unpack a theme downloaded?
Thanks

Related

Problems with Cocoapods on Xcode 6.4

I'm trying to install and use Cocoapods with Xcode. I've installed already Brew, so I've used this command:
sudo gem install cocoapods
but it stays there, without response and without asking me for password (that's really strange, because of sudo command).
Maybe I got some problem with Brew Installation or Ruby on my Yosemite iMac?
I met the same error in the past, there is something wrong with my development environment. I re-install the Command Line Tools follow this guide, then everything is ok.
You can get the detail information from here, hope it can help you.

Installing Rbenv on a Mac - Beginner

I am new to Ruby and coding in general, and am trying to do a set of problems. However, I am unable to even get to the problems because the files I will be using require Rbenv and Bundler, and I cannot seem to install them on my Mac.
Can someone please give me a really simple explanation on how to correctly download the files (git ?) and install them via my terminal?
I have gone to github and downloaded the rbenv-master folder and saved it in a folder on my desktop. (https://github.com/sstephenson/rbenv)
I can open my terminal and navigate to this folder.
Should I be saving something from the entire folder differently and loading that?
If so, what do I save it as and what do I type in my terminal to load it?
Once I do that, do I have to do anything else (use the require command??) to use this in my exercises?
Thanks for taking the time… I'll probably look back on this as a stupid questions. :)
You can just follow the homebrew install install instructions on the rbenv github page.
You just may need to install homebrew first if you don't have it. Which is a one-line command found on the homebrew homepage.

Installing portable ruby and portable xampp in order to use compass and sass in my windows machine: Is that possible?

I want to try using SASS and compass. As I´ve read that compass runs in ruby, I need to install ruby on my local windows machine in order to go and play with it.
I thought on installing everything in a portable way, I mean in my pendrive.
I´ve download a portable ruby version and a portable xampp version, and I´ve installed both in my pendrive.
My question is: As I´ve haven´t worked with ruby ever, should I just run the ruby app and the xamp app and then just install compass in there?
I´ve read compass installing version, but I don´t know how to install it using the command line inside the pendrive.
Thanks for your help!
I´ve found somewhere else the reply to this, and just in case anyone wonders the same thing, here´s the fastest way to use SASS when you have windows and don´t know a word about ruby, but you read that you need it in order to use compass:
You can install ruby in your windows pc using this. I´ve tried the portable one but didn´t worked in my case.
After that you have to open a special console window (the one with ruby activated). There´s this icon called "start commend promt with ruby" that does exactly that. It is in the same folder as your ruby installation.
You just type this: gem install compass
No, you don´t have to download nothing, it just installs the application.
You don´t need to use the command line anymore, nor you have to pay for the compass.app: You have the free alternative Scout. You install it and from that moment you can work with it.
Maybe you should read these aswell:
http://thesassway.com/beginner/getting-started-with-sass-and-compass
http://andrewpwatson.com/posts/how-set-compass-sass-windows-aptana-studio-3

RVM causing path issues with installed gems on Ruby 1.9.2 - unable to annotate, etc, do I need to reinstall RVM?

I'm on Mac OSX Snow Leopard. I tried to post a similar question to the RVM Google group but it did not seem to get posted.
I'm worried that I've done something fundamentally wrong with my RVM install that's causing these errors, that seems to be related to paths, at each step of the way. Have any of you seen this behavior before?
I started to teach myself Rails programming as of about two months ago with a working environment of Ruby 1.9.1 and Rails 3.0.3, based on a hivelogic install tutorial that had me modify my ~/.profile file and install the relevant bits to ~/usr/local/src/. For reference, the line in my ~/.profile file was this when I installed RVM, if that makes any difference:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/src:$PATH"
In my terminal I installed RVM as a user using the standard user github bash script.
I tried to install Ruby 1.9.2, which kept running into a weird error about a libfile somewhere. After much Googling I found someone on Stack Overflow that recommended renaming the ~/usr/local directory while performing the Ruby install -- I did this, and the install complete.
Then I did gem install rails and tried to do bundle install in my app, which gave an error when trying to install the SQLite3 gem (even though I already had SQLite3 installed and working). Again, I spent a day Googling this and eventually found "Unable to install sqlite3-ruby gem" that said if I used Macports to sudo port install sqlite3 it would work.
I tried that from the base directory, and Macports did its thing but it didn't fix the problem. Then I did the same thing from my app directory and it fixed the SQLite3 error I was getting.
Now I am able to run rails server and rails generate again, which is great, but then I tried to "annotate" my new model, and I get this error: http://pastie.org/1481570
I have not yet solved this issue, and have looked at many threads of similar issues. This, for example, did not solve my problem: https://github.com/james2m/annotate_models/commit/5997da9692c9b222e8d1be22dfad6ed8638c16a1
I even tried copying my source code directly into the rvm/user/ directory in case that relative path was causing problems, but it doesn't seem to have fixed anything. Maybe I need to uninstall RVM and re-install it as root instead of a user-level thing?
What do you think is the best way to get annotate to work and hopefully get RVM to play nice with my gems going forward?
I'm unfortunately REALLY new to terminal, code, etc, so any help would be much appreciated.
On Snow Leopard you should modify either ~/.bashrc or ~/.bash_profile, preferably the later. Also, RVM will not need anything in ~/usr/local since it's entirely self-contained in ~/.rvm.
RVM uses a nice little shell function to sense the needed directories and desired default Ruby. I suspect either the instructions you followed were very out of date, or poor recommendations. The current RVM installation requests you add:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
to your ~/.bash_profile
The RVM site has lots of troubleshooting tips for things like MySQL. I'd strongly recommend backing out of the things those other tutorials had you do, and refer to the instructions on RVM's site. It is very easy to get things working right if you do it the RVM-way.
Download and install Apple's latest version of XCode from their Developer site if you haven't already. There have been some broken versions shipped on the DVDs.
Install. In particular follow the "Post Installation" section.
Following that, do whatever rvm notes says to do as far as libraries. Following that, you should be able to use rvm info to gather useful info about your installation. It is your best friend.
Database integration will point you to how to fix MySQL's wagon.
RVM development happens fast. Keep it updated, at least once a week using rvm get head.
At that point you should be in a good place to start reinstalling gems.

I removed /etc/acpache2, how do I put back? (OSX)

Ok, so I was having some issues getting rails setup and I'm very new to this. I decided in the end to delete the apache2 folder in /etc as I thought that was created by the passenger-install-apache2-module, but apparently thats not so.
So... now I installed rvm, installed ruby, installed passenger, ran the rvmsudo passenger-install-apache2-module command and then went to edit the config file... but its not there.
So I clearly made a mistake deleting that. How do I put it back? More importantly, did I screw anything up?
Update for solution:
What I ended up doing was Archive and Install from the OSX DVD (I'm using snow leopard so I had to do this manually). I probably could have used Pacifist to just install apache, not sure if thats possible but found out about it after I did the archive install.
You could try re-installing apache2.

Resources