Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Installing Ruby #1

Open
jimmynguyc opened this issue Sep 15, 2014 · 7 comments
Open

Problem Installing Ruby #1

jimmynguyc opened this issue Sep 15, 2014 · 7 comments

Comments

@jimmynguyc
Copy link
Member

Hello :) This is our attempt at a poor-man's solution for a virtual Install-fest.

If you're having problem installing Ruby on your machine, or any Ruby-related installation. Please post it here so we can help you.

Here are a couple of things that can help us identify the issues:-

  1. Screen shot / copy paste the error messages and attach them here
  2. Tell us what did you do (e.g. command history, tutorial you've followed)
  3. Tell us your machine environment (e.g. Windows/Mac/Linux, OS version)
@fylooi
Copy link

fylooi commented Sep 16, 2014

If you guys are trying to run rake assets:precompile ENV_RAILS=production on a Windows machine, you most probably will run into an ExecJS error. This solution worked for me.

http://stackoverflow.com/questions/12520456/execjsruntimeerror-on-windows-trying-to-follow-rubytutorial

@kayelbaby
Copy link

Hihi, I'm trying to install Gosu in my RailsGirls Virtual Machine. Want to try my hand at a Pong clone.
The Rails Girls VM was set up following this tutorial : http://railsgirls-my.github.io/virtual-machine/
VM OS: Ubuntu 32 bit
PC OS: Windows 7 64 bit

When installing Gosu, I used this command gem install gosu but I got an error message as follow:
gosu-errormsg
It appears that I'm missing some libraries (?) eg libsdl2 etc
So I followed this tutorial http://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/index.php did step 3 (I'm assuming I don't have a package manager since Step 1 failed)
The following error message popped up.
packagemanager-errormeg

Could you point me to a resource on how to fix this please? And any kind of pro tip is always something I need haha :) 🙇

@amree
Copy link

amree commented Sep 20, 2014

I haven't tested this one myself but after some Googling, there's actually a page where all of the dependencies listed. You can try installing them first:

# Gosu's dependencies for both C++ and Ruby
sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev \
                     libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev

Sources:

@fylooi
Copy link

fylooi commented Sep 20, 2014

@kayelbaby
If Linux is not your cup of tea, you can try RailsInstaller.
After installing, you will need to set up your Windows PATH for Ruby. Shouldn't be too hard to google.

You'll need to update your PATH too when you install a database engine. Don't think Gosu needs one yet.

Also, do check whether you have the correct Ruby / Rails version needed before installing Gosu (or any other gem).

@jimmynguyc
Copy link
Member Author

@kayelbaby sorry for late response

The Gosu dependancies on the Gosu website is for Trusty. libsdl2-dev libsdl2-ttf-dev libsndfile-dev are not part of Precise. You'll need to use libsdl1.2-dev libsdl-ttf2.0-dev libsndfile1-dev instead.

Try this

sudo apt-get install build-essential libsdl1.2-dev libsdl-ttf2.0-dev \
libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile1-dev

And then your gem install gosu should work.

--- Edited ---

Ah sorry, the latest Gosu gem uses libsdl2-dev. And since on Precise you only have libsdl1.2-dev, you'll need to use an earlier version.

Try gem install gosu -v 0.7.45. It worked on my Precise.

@amree
Copy link

amree commented Sep 29, 2014

Aiseh, should've paid more attention to the details. Apparently RailsGirls Virtual Machine is using Ubuntu 12.04 (Precise Pangolin).

@jimmynguyc
Copy link
Member Author

Everyone should use Docker now :)

jimmynguyc added a commit that referenced this issue Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants