Snow Leopard install Ruby on Rails (with MySQL) - ruby-on-rails

I've done a clean re-install of OS X Snow Leopard, so there's nothing on my system at all.
I've installed Xcode and I'm ready to install Rails.
However, my system is a MacBook (MacBook2,1) and apparently it doesn't support 64-bit by default. Apple is going to add this at a later date.
How would I go about installing Rails? Do I go about it the normal way?
How about MySQL, do I need the 64-bit binary?

Most of the time (maybe always, I'm not really sure) you can run binaries compiled for 32 bit even if your system is 64 bit. They just won't have any benefits of 64 bit (either storing bigger things or processing stuff faster).
If your macbook is a recent one it has 64 bit support (Core 2 Duo processor), if it is an older version (Core Duo) it is 32 bit. You can determine the processor type by checking 'About this Mac' in the Apple menu.

You can certainly install the 64-bit packages. They will be able to access the memory space and every advantage of running with 64bits. The only thing that won't boot in 64bit is the Kernel, but it's not something to be worrying about for the moment.
Check out the Hivelogic's guide for installing MySQL, Rails and Ruby on Snow Leopard:
MySQL
Git
Ruby, Rails

Your MacBook does support 64bit, but it cannot boot in 64bit mode. You should be able to install 64bit binary packages just fine.

You should definitely install the 64-bit binory packages such as mysql.

Related

PyScripter always says: "Python could not be properly initialized. We must quit."

I've googled for a solution, and based on that, let me report a few details:
I've tried 32-bit PyScripter-v2.6.0-Setup.exe with 32-bit python-3.6.1.exe; and 64-bit PyScripter-v2.6.0-x64-Setup.exe with 64-bit python-3.6.1-amd64-webinstall.exe.
I'm on a 64-bit Windows 10 machine.
I uninstalled other versions of Python on the machine.
Tried unzipping rpyc in the \Lib\ folder, as someone suggested that here.
What else should I be looking at?
Here is a tested Solution
Remove old PyScripter
Install Python from Python website. I installed mine from:
http://www.python.org/ftp/python/3.3.2/python-3.3.2.amd64.msi (and it worked)
Now install PyScripter-v2.6.0-x64-Setup.exe from https://sourceforge.net/projects/pyscripter/files/
This should solve the problem.
I got this solution from https: //github.com/pyscripter/pyscripter/issues/715
You are using an old version of Pyscripter. Version 3.4 from https://sourceforge.net/projects/pyscripter/ provides support for all released python versions, virtual environments, conda distibutions and the ability to switch between them without exiting Pyscripter.

rbenv: having 32 & 64 bit versions of ruby installed side by side on same machine

For certain reasons (Oracle, I'm looking at you) I need to be able to use 32 and 64 bit versions of ruby. Can I have both 32 & 64 bit versions of 1.9.3 installed side by side with rbenv? How would I be able to tell them apart when I run rbenv versions?
Right now I'm using a 32 bit version of 1.9.2 and a 64 bit version of 1.9.3. I would much prefer to have a 64 & 32 bit version 1.9.3.
UPDATE:
For now I've just chosen to use a different patch. There has to be a better way...
UPDATE 2:
To clarify my situation, I'm using a machine that runs on Mac OSX Lion.
this link describes my main problem, no 64bit instant client for Lion
This link shows the only solution I've found to the problem
UPDATE 3:
This is no longer an issue, because oracle released a 64 bit instant client that works on Lion and Mountian Lion.
You can have as many arbitrary builds of Ruby installed in rbenv. It doesn't care as long you give them each a uniquely named directory/symlink in ${RBENV_ROOT}/versions/.
By default, it seems that Rubies built on OS X are 64bit. If you can figure out how to configure 32bit build of Ruby, you could install one with PREFIX="$(rbenv root)/versions/1.9.3-p194-32", for example. Then you can use that version as any other:
RBENV_VERSION=1.9.3-p194-32 ruby -v
Here I used "-32" prefix to tell versions apart.

Not able to install CollabNet 6.1.1 TeamForge 32 bit on my Windows

I have downloaded the latest version 6.1.1 from the windows installer for 32bit. I have a problem with the installation. The installer checks for software requierements are fulfilled. Out of 4 programs it installs i.e. msys, java, postgre and CsvnEdge, csvnEdge is marked as not installed. Tough in system i can see it is installed. If I cancel the setup and start again, it fails again to find CsvnEdge.
Regards
Anuj

Which would be best suited for Ruby on Rails Dev Projects - 32 bit or 64 bit Ubuntu 11.10

I have a 4GB Ram, 500 gb hdd with a 64 bit OS running on an intel core 2 duo 2.2 Ghz processor.
I just had one clarification would all the tools(different editors etc.) and softwares(like RubyMine IDE etc.) related to Ruby on Rails projects support/run with the 64 bit OS version or should I go with the recommended 32 bit os installation of Ubuntu 11.10 as given in http://www.ubuntu.com/download/ubuntu/download .
Also is the 64 bit only suited for AMD processors?(just a doubt as the download file name of this version has amd tagged to it.) Would it work with the aforementioned intel processor?
Kindly suggest, so that I could install the appropriate bit version of OS. I'm planning to go ahead with the Desktop version itself.
Thank you for your inputs.
Afaik there is no reason not to use the 64-bit OS. Take the OS that works best with your computer. I have one machine running 32-bit and another 64-bit without any problems (both on 11.10).

RailsInstaller on Windows 7 64bit?

I tried to use the Rails Installer to get a ruby on rails environment on my Windows 7 64bit today and the .exe won't run because it's made for 32bit instead of 64bit.
Update When I try to start the installer, this message pops up:
Here is the translation:
This version of the file is not compatible with the running version of Windows.
Open the system information of the computer to check if a x86 (32bit) or x64
(64bit) version of this application is neccessary and contact the software vendor.
Is there a 64bit alternative for the installer?
64bits Windows can run 32bits applications, that is what WOW64 layer provides (Windows on Windows)
However, there are specific things you can't perform, like accessing OLE or using 64bits DLLs from 32bits applications or viceversa.
If the issue you're having is connect to a MySQL installation (something you're not mentioning) you should take a look to this blog article:
http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
Hope that helps.

Resources