rubyinstaller | RubyInstaller for Windows - Build recipes | Build Tool library
kandi X-RAY | rubyinstaller Summary
kandi X-RAY | rubyinstaller Summary
This project, licensed under the 3-clause Modified BSD License, attempts to generate a development sandbox that can be used to compile Ruby and it's components using the freely available MinGW toolchain. Our goal is to offer a simplified way to boost your productivity when building Ruby from source code on your Windows system, and ease the path for anyone wishing to contribute to the RubyInstaller for Windows project. This project is a work-in-progress collection of Rake build recipes that download and verify the MinGW utilities required to compile and build a Ruby interpreter and it's core components and dependencies. The recipes also build a DevKit package that, when combined with a RubyInstaller installation, enables Windows users to easily build and use many of the native C-based RubyGems extensions that may not yet have a binary RubyGem. The DevKit (available as a Windows Installer and normal 7-Zip and self-extracting archives) provides an easy-to-install compiler and build system, and convenient setup helper scripts.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Read the entry directory .
- Writes a DICOM file .
- Enables the progress bar .
- Read a local file .
- Downloads a file from the target .
- Connect to the remote server .
- Reads an input from the input stream .
- Creates a new string with the given parameters
- Writes a number to the given integer .
- Closes the closed link .
rubyinstaller Key Features
rubyinstaller Examples and Code Snippets
Community Discussions
Trending Discussions on rubyinstaller
QUESTION
I have tried a bunch of different ways to get Rails to install and haven't been able to find one that works. I have refrained from going the WSL way because my OS drive is nearly at capacity, but I plan to try that if I can't find a solution here.
With my current setup, I am failing on the compilation of websocket_mask.c
.
Current process I took was one directed by John Elder to use RailsInstaller
to get a bunch of the dependencies, then upgrade Ruby and Devkit from https://rubyinstaller.org/, then gem install rails
to upgrade to the latest version of Rails.
When I ran gem install rails
, I encountered an error I'd seen before in make: gcc: No such file or directory
.
ANSWER
Answered 2022-Mar-12 at 17:25This morning, I got the same error when I installed RubyInstaller Ruby+Devkit 3.1.1-1 (x64).
I decided to install the version older RubyInstaller version Ruby+Devkit 3.0.3-1 (x64) for Windows 10, and I did not see this error anymore.
QUESTION
I'm trying to install slacker so I can do some SQL testing. I've never used Ruby before. I'm on Windows. My dev box only has access to the Internet via a proxy and I have to nominate all URls in advance.
I I downloaded and ran rubyinstaller-devkit-2.7.5-1-x64.exe
(because it requires Ruby 2.4/2.5+ and 2.7.X was recommended at the Ruby site) accepting all of the defaults.
When it got to MSYS2 I hit ENTER (MSYS2 base installation and MINGW development toolchain).
I got errors in the gpg section, e.g. (but not limited to)
...ANSWER
Answered 2022-Jan-16 at 16:19I have answered question 1 myself. If anyone else can give me a definitive answer to part two, I will happily mark that as the answer.
I guessed that I needed to download and install the mingw
packages that couldn't be downloaded somewhere. I did a bit of trawling and found this article (Offline installation of packages)which gave me the pointers I needed. I got these four files from https://repo.msys2.org/mingw/mingw64/:
QUESTION
I am trying to use Ruby Fiddle to access a C function I have developed. The C code is:
...ANSWER
Answered 2021-Apr-19 at 18:12First of all, make sure you are using a MinGW gcc and a MinGW ruby so there aren't any toolchain compatibility issues. Run which gcc
and which ruby
in your shell and make sure both commands return a filename in /mingw64
or both return a filename in /mingw32
.
Secondly, make sure you compile your DLL correctly. You sould remove the main
function because DLLs shouldn't have a main function. I think the correct command is this:
QUESTION
- Windows 10
- ruby 3.0.0p0
- jekyll 4.2.0
- bundler
- installed ruby and jekyll using instructions: https://jekyllrb.com/docs/installation/windows/#installation-via-rubyinstaller
- cloned existing jekyll repository (uses minimal mistakes theme)
- successfully executed
bundle update
to update all the dependencies. - manually installed
wdm
Gemfile looks like this:
...ANSWER
Answered 2021-Mar-24 at 06:27It seems webrick does not come bundled with ruby 3.0. Check this jekyll github issue.
From https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/:
The following libraries are no longer bundled gems or standard libraries. Install the corresponding gems to use these features.
sdbm webrick net-telnet xmlrpc
You have two options
- Downgrade to ruby 2.5 as you have on ubuntu OR
- Add
gem "webrick"
in Gemfile.
QUESTION
I want to develop and run a ruby on rails web app on my Bootcamp windows Mac laptop. I am using rubyinstaller and railsinstaller, but the installation breaks always at some PGP key check which I have no idea about.
Facing issue while trying to install ruby installer
...ANSWER
Answered 2020-Sep-13 at 06:431st for RIDK, just run 1,3 enter when instalation
2nd for SQLite3 issue, follow the following link solution of reducing sqlite version in gem file and running "bundle install" Rails error on windows 10 (An error occurred while installing sqlite3 (1.4.1), and Bundler cannot continue)
QUESTION
This started as a question about a specific gem installation issue but I went through so many iterations of issues trying to get this application working on Windows 10 that I decided to alter the question and write a sort of guide. Hopefully this will be of use to anyone else (or myself) experiencing these issues in the future.
I am running a Windows 10 64 bit machine. I have tried RubyInstaller and setting up Windows SubSystem for Linux (WSL) and have been met with various installation issues, gem dependency issues and just straight out vague as anything who-knows-what issues.
How do I get Ruby on Rails and subsequently, Locomotive CMS running on Windows 10?
Note: I initially followed this tutorial to install Ruby with RubyInstaller. This apparently worked fine (although there were a fair few hiccups along the way), but I eventually ended up with the following error when attempting to gem install locomotivecms_wagon
, which I was unable to solve:
ANSWER
Answered 2020-Aug-28 at 20:13I've found a similar GitHub issue here: https://github.com/rubys/nokogumbo/issues/4.
They mentioned the following statement as a solution:
QUESTION
I know nothing about Ruby and have been trying to install the squib gem on Windows 10 with little success.
On my first attempt, I installed Ruby 2.6.5-1 using RubyInstaller.exe. I don't remember the error code, but squib did not install. (I believe it was "make failed, exit code 1")
Then, I found out that I did not install MSYS2. So, I uninstalled Ruby and reinstalled, making sure to install MSYS2. Squib refused to install properly yet again.
Therefore, I took to the help pages and found support in a thread called "Windows install issue?". I was sure that this was my saving grace.
It wasn't.
I also tried the fixes listed in "trouble downloading" even though the OP's OS did not match mine. It didn't work.
I tried to install squib with bundler as well, but it did not work. I was not surprised.
I read some random thing somewhere saying that there may be conflicts with the newest version of Ruby. (2.6.5-1 at the time) So I used some downgrade Ruby magic to get to Ruby 2.5.7-??. Then something baffling happened. Squib failed to install. (The post was old and squib had been updated long ago)
UPDATE: I have uninstalled and reinstalled Ruby again. This time around I used the optional MSYS2 Update after installing MSYS2 in the rubyinstaller.exe. Still no luck. I believe it has to do with "glib2" whatever that is.
I am looking for advice on what to do next as I am sure I am missing something.
Thanks, Edgar
(This is the regurgitation from my most recent attempt.)
...ANSWER
Answered 2020-Apr-01 at 16:23So it seems like the version of glib2 that squib is calling for is not installing correctly on my Windows 10 system. After multiple attempts I discovered a work around that can get squib installed. It requires you to have a "subsystem for Linux" not as bad as it sounds, follow me:
1. Head to this site
2. Scroll down to the "Using the Windows Subsystem for Linux" section.
3. Follow all instructions after "Using the Windows Subsystem for Linux" and before "Bonus points!".
4. Once ruby is installed. Type the code below into your terminal:
QUESTION
I am trying to follow the Redmine guide here. I am running into the same problem this previous post, but the solution didn't solve it for me.
Steps that I have done so far:
Ruby
I have downloaded/installed the Ruby from http://rubyinstaller.org and verified that Rails was installed.
rails -v
Rails 5.1.3
ruby -v
ruby 2.3.3p222
MySQL
Visual Studio 2019 redistributable installed.
Ran the MySql installer msi Selected the Developer (Defaults)
Took all the defaults for the rest of the wizard (I did set root password and added a user)
*I think I had to do all this first before starting the Installation procedures.
Redmine
Completed step 1-4 with the MySQL settings
Step 5
Running the command:
bundle exec rake generate_secret_token
Could not locate Gemfile or .bundle/ directory
I have verified that rake is installed
rake -V
rake, version 13.0.1
gem list rake
(rake 13.0.1)
Using the stackoverflow post from above, I did update the version of rake I had installed, but that didn't solve the issue. I am new to gem/bundle type of installs, so I may be missing something that is quite obvious.
Do I need to be a specific directory when running these commands?
Any direction for me would be good. I am trying to run this on a Windows Server if that makes any difference.
...ANSWER
Answered 2020-Mar-24 at 01:01Redmine is a Rails app. You must download the app, extract it, then change into that directory before running your rake task. The process for this is defined in step 1:
Get the Redmine source code by either downloading a packaged release or checking out the code repository.
See the download page for details.
Afterwards, you can run bundle exec rake generate_secret_token
because that is a Rake task defined by lib/tasks/initializers.rake
. Rake tasks in Rails are typically defined within the lib/tasks
directory and you can see multiple examples there.
If you attempt to run rake something
then Rake is going to look for a Rakefile where this task is defined. Since you're currently just in your Ruby bin/
directory there are no defined rake tasks so you get the errors that you see.
QUESTION
I'm examining how ridk enable
works in order to figure out how to hook it into Travis CI build logic. (The Ruby installation I'm studying is a RubyInstaller+Devkit installed locally; the commands are run from the "Start Command Prompt with Ruby" prompt.)
I've got stuck at a Ruby command line executed under the hood whose working is a mystery to me:
...ANSWER
Answered 2020-Jan-15 at 16:30From man ruby
:
-x[directory]
Tells Ruby that the script is embedded in a message. Leading garbage will be discarded until the first line that starts with#!
and contains the string,ruby
Any meaningful switches on that line will be applied. The end of the script must be specified with either EOF ^D ( control-D ^Z ( control-Z or the reserved word__END__
If the directory name is specified, Ruby will switch to that directory before executing script.
Which means the ridk.cmd
has embedded ruby code.
The directory
is optional, as indicated by both the square brackets around the name and the description. If provided, it should be directly after -x
without any space, which effectively allows it to be an optional argument.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rubyinstaller
You can combine COMPAT and CHECKOUT to build Ruby 1.8.6 directly from the Subversion repository.
While the only officially supported DevKit's are the versions available for download at http://rubyinstaller.org/downloads both the RubyInstaller and DevKit recipes are flexible enough to allow one to use any one of the compiler toolchains configured in the config/compilers/ subdirectory. To list the available DevKit versions and current default, invoke rake devkit:ls.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page