How to install Ruby with rvm on Windows 10 with Cygwin64 Terminal? - ruby

I have been trying to install Ruby on a Windows 10 using the Cygwin64 Terminal so that I can us RVM to manage my Ruby version and gems. This is a first time install so I do not have any Ruby currently. Every time I try to run rvm install 2.1.7 the process errors out on compiling. Below is a screen shot of the terminal window:
enter image description here

Edit: Nowadays (2021) the best way to go is not to use Cygwin but rather WSL2. Then you have plenty of tools since you basically have a Linux install. rvm, rbenv or asdf should be able to do the job.
Old answer:
Best way is to use RailsInstaller. It handles most dependencies for you. I wouldn't mess around with RVM in Windows, AFAICT you will have issues along the road trying to use it on a non-UNIX environment.

Related

How can I install an X11 version of Emacs on MacOS Catalina?

I'd like to install an X11 version of Emacs on Catalina, but haven't found anything online that tells me how I might accomplish this.
The following worked for some previous versions of MacOS, including, I believe Mojave.
$ brew tap d12frosted/homebrew-emacs-plus
$ brew install /emacs-plus --with-x11
Unfortunately, at the moment, if you do this, you get only the "app" version of Emacs, not the X11 version.
The default Emacs recipe that comes with Homebrew does not currently support the "--with-x11" or "--with-x" option.
Is there another Emacs cask somewhere that supports X11?
P.S. I know that I could try to build Emacs directly from the Emacs sources myself, but from past experience, I am afraid that there be dragons along this path.
P.P.S. I seem to have gotten a working version of an X11 emacs installed by rsyncing the directory /usr/local/Cellar/emacs over from a Mac that is running Mojave. But clearly this is less than ideal, so I'm still looking for how I might accomplish this the "right" way.
I maintain my own brew formula for X11 emacs that you may be able to use. I wrote about this in a blog entry here.
This isn't really a programming question -- probably better for serverfault.com or unix.stackexchange.com, but I'll post this reply here anyway.
My last attempts to try to use homebrew to install X11 capable apps, especially Emacs, failed. Once upon a time I had edited the homebrew recipe to make it compile a local version with X11 support, but I was giving up on maintaining that against the quickly moving target of homebrew and the mass migration of homebrew away from supporting X11.
So, really your best option is to build Emacs from source and install it.
(I've moved entirely away from homebrew as a result -- I only use pkgsrc now, and that gives one an easy way to reliably build Emacs with X11 support and manage all the dependencies, etc.)

Install Ruby 2.3.2 on Windows 10

I have an old Ruby 2.3.2 app I've been asked to help maintain on Windows 10. RubyInstaller (https://rubyinstaller.org/downloads/archives/) would normally be great, but it seems like 2.3.2 was not ported over.
Since RubyInstaller was not an option, installing RVM on the Windows Subsystem for Linux was the next option. While this sometimes works, it has issues with our VPN pretty regularly, which seems like a recurring issue with WSL (https://github.com/Microsoft/WSL/issues/1350 && https://github.com/Microsoft/WSL/issues/416).
Is there a way to convert any of the 2.3.2 builds (https://www.ruby-lang.org/en/news/2016/11/15/ruby-2-3-2-released/) to run on windows?

How to install System Python 2.7 on a Mac

I need to know How to install System Python 2.7 on my Mac. This is because, I unknowingly uninstalled it (I thought I was removing the Python I downloaded from Python.org)
I followed this Stack Overflow answer, and after the damage had been done, I read the comments telling me NOT TO do that.
The current reason I am wanting to install System Python 2.7 is because it is needed to install PyGame. Below is a screenshot of what I am facing when trying to install PyGame:
I recommend installing packages on OS X using Homebrew as it keeps everything you install in one place. Allowing you to upgrade or uninstall easily and not needing to remember how or where you installed it.
Once it is installed you simply type brew install python in your terminal. This will install Python 2.7.10 and it will be available at /usr/local/bin/python.
The only supported way to restore the system Python framework on macOS is to reinstall the operating system. It is treated as a component of the core operating system, so there is no way to selectively reinstall it.

Want to install Jruby but intimidated by RVM

Want to install Jruby and I am pretty sure that I want to manage it with RVM. My problem is that I am a little intimidated by RVM with its command line and all the dependencies (bash, git, etc.) I am on Windows 7, ruby 1.9.3.
Can someone please help a newbie out and explain this in English.
Thanks
RVM is not supported on windows.
"If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it on GitHub."
Options to manage ruby version over windows:
pik is a tool to manage multiple versions of ruby on Windows. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash. Github-pik
You can also use Cygwin and then install the various packages required.
Checkout
How to install rvm on windows using cygwin
I would recommend using linux/mac OS when working with open source.
If you want to install ruby on Windows I suggest you to use PIK. It's sponsored by RubyInstaller.
And, about install Jruby on Windows ... all that you have to do is go to JRuby website and download the .exe file.
JRuby Website Link here: http://jruby.org/download

Installing VisualRuby on a MAC

I'm trying to understand how to install visualruby on a MAC. I work in ubuntu, and I've developed install instructions for Ubuntu and Windows, but I don't know the corresponding instructions for the MAC:
http://visualruby.net/Download
I know that you need to install the Glade Interface Designer. This should install the graphics toolkit, gtk2 as well. Visualruby needs gtk2. After that you can install visualruby:
gem install visualruby
My friend told me that it needs to be run in the X11 terminal. I don't understand any of this. I'd like to develop step-by-step instructions for installing it on the MAC that includes the correct version of Glade/Gtk2. I know that visualruby requires Glade version 2.6 thru 2.8. The latest version of Glade uses Gtk3 which isn't good.
EDIT: Visualruby will also require "gtksourceview2" installed (perhaps via homebrew?)
Step-by-step instructions would be greatly appreciated.
I'm the friend referred to above.
I had the best success with QuartzX11.
I installed glade, gtk+ and gtksourceview via homebrew but perhaps that's not the best way.

Resources