Open jimmynguyc opened 10 years ago
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.
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:
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.
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 :) :bow:
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:
@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).
@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.
Aiseh, should've paid more attention to the details. Apparently RailsGirls Virtual Machine is using Ubuntu 12.04 (Precise Pangolin).
Everyone should use Docker now :)
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)