rubyinstaller | RubyInstaller for Windows - Build recipes | Build Tool library

 by   oneclick Ruby Version: devkit-4.7.2 License: BSD-3-Clause

kandi X-RAY | rubyinstaller Summary

kandi X-RAY | rubyinstaller Summary

rubyinstaller is a Ruby library typically used in Utilities, Build Tool applications. rubyinstaller has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

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

            kandi-support Support

              rubyinstaller has a medium active ecosystem.
              It has 1186 star(s) with 332 fork(s). There are 111 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 23 open issues and 323 have been closed. On average issues are closed in 125 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of rubyinstaller is devkit-4.7.2

            kandi-Quality Quality

              rubyinstaller has 0 bugs and 0 code smells.

            kandi-Security Security

              rubyinstaller has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rubyinstaller code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rubyinstaller is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              rubyinstaller releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 3952 lines of code, 351 functions and 33 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed rubyinstaller and discovered the below as its top functions. This is intended to give you an instant insight into rubyinstaller implemented functionality, and help decide if they suit your requirements.
            • 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 .
            Get all kandi verified functions for this library.

            rubyinstaller Key Features

            No Key Features are available at this moment for rubyinstaller.

            rubyinstaller Examples and Code Snippets

            No Code Snippets are available at this moment for rubyinstaller.

            Community Discussions

            QUESTION

            Windows rails installation failing, currently on websocket mask compilation -- `make: *** [Makefile:246: websocket_mask.o]`
            Asked 2022-Mar-12 at 17:25

            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:25

            This 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.

            Source https://stackoverflow.com/questions/71412886

            QUESTION

            Errors installing gems locally - how can I install slacker offline?
            Asked 2022-Jan-16 at 16:21

            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:19

            I 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/:

            Source https://stackoverflow.com/questions/70649131

            QUESTION

            Ruby Fiddle - Cannot find function in WIndows MSYS2
            Asked 2021-Apr-20 at 05:58

            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:12

            First 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:

            Source https://stackoverflow.com/questions/67119951

            QUESTION

            bundle exec jekyll serve > Conflict: The following destination is shared by multiple files
            Asked 2021-Mar-24 at 06:27
            Environment
            • Windows 10
            • ruby 3.0.0p0
            • jekyll 4.2.0
            • bundler
            Steps to get here

            Gemfile looks like this:

            ...

            ANSWER

            Answered 2021-Mar-24 at 06:27

            It 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

            1. Downgrade to ruby 2.5 as you have on ubuntu OR
            2. Add gem "webrick" in Gemfile.

            Source https://stackoverflow.com/questions/66774937

            QUESTION

            RIDK MSYS Key failing
            Asked 2020-Sep-13 at 06:43

            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:43

            1st 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)

            Source https://stackoverflow.com/questions/63804092

            QUESTION

            Can't Install / Use LocomotiveCMS Wagon on Windows 10
            Asked 2020-Aug-30 at 09:33

            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:13

            I've found a similar GitHub issue here: https://github.com/rubys/nokogumbo/issues/4.

            They mentioned the following statement as a solution:

            Source https://stackoverflow.com/questions/63613201

            QUESTION

            Windows Failed to build gem native extension when installing Squib
            Asked 2020-Apr-01 at 16:23

            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:23

            So 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:

            Source https://stackoverflow.com/questions/60291064

            QUESTION

            Redmine on Windows - error rake generate_secret_token
            Asked 2020-Mar-24 at 01:02

            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:01

            Redmine 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.

            Source https://stackoverflow.com/questions/60823069

            QUESTION

            How does this Ruby command line work? Seemingly running a CMD script with Ruby
            Asked 2020-Jan-15 at 16:30

            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:30

            From 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.

            Source https://stackoverflow.com/questions/59750684

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rubyinstaller

            Ensure you are connected to the Internet, open a Command Prompt, cd to the project root directory, and type one of:.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link