Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8180751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:17:30+00:00 2026-06-07T00:17:30+00:00

I would like to distribute an executable for Mac/Windows of a Ruby script that

  • 0

I would like to distribute an executable for Mac/Windows of a Ruby script that (besides other things) will be doing a conversion from/to common image formats to .xpm / X PixMap (wikipedia)

I know about the following gems that act as a wrapper around pre-installed libraries (mostly ImageMagick): RMagick, Mini magick, Image science, Magickly, Devil, Im magick, Free-image, etc.

The problem boils down to, from what I understand, the following: Imagemagick and Freeimage need to be installed on the system, not just pointed in a relative way in the script. And Ruby2Exe, Ocra, Crate don’t have the functionality to distribute the library and my script, as an executable.

Is there a technical reason why I haven’t yet found a gem can perform this operation without the use of an external library?
What are the possible solutions to my problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:17:33+00:00Added an answer on June 7, 2026 at 12:17 am

    One possible solution:

    Find a free command-line utility which can perform the conversions you need. The best would be one which doesn’t require any special installation (just dropping an EXE file onto the hard drive and running it).

    In your Ruby program, invoke the command-line utility using backticks. If it is not on the system path, you may have to invoke it as utility.exe rather than utility. And so that you can invoke it correctly, regardless of the current working directory, you may have to use an absolute path, generated using File.dirname(__FILE__) and File.expand_path. Or change the working directory before trying to invoke the utility.

    Finally, you will just have to package that utility together with your Ocra-generated Ruby EXE.

    I suggest all this because I know that trying to install RMagick on a Windows system can be incredibly painful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a really trivial perl script that I would like to distribute to
I would like to compile and distribute (on .net) some python programs that work
I made a Java application which I would like to distribute on Windows, OSX
I am working on some reusable Android code that I would like to distribute
I would like to distribute a Java application for Windows. It's Windows-only because it
I would like to distribute an App preview to a musician that I am
I would like to distribute an application, but have license key that they can
I would like to distribute my startup script with my app. Its called blah
I would like to send a windows service program to our client that does
I've developed a Ruby application (a small game), and I would like to 'distribute'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.