Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to install ruby on pfsense?

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      Dm3Ch
      last edited by

      Hello!
      I've got pfSense as a router and I've got a script on ruby that i need to run on pfSense.
      I tried to install ruby throw get.rvm.io and it haven't work, i was searching ruby throw pkg and i haven't found.

      So I've got a question, is there any way to install ruby on pfSense?

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        Not at all easily and we would never recommend it.

        Can you not convert your script to run in something already available?

        Steve

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dm3Ch
          last edited by

          Suddenly it is very difficult. :(

          Could you please say, why ruby was removed from pfsense ports? In freebsd there are ruby packages in ports. O_o

          1 Reply Last reply Reply Quote 0
          • K Offline
            kpa
            last edited by

            I doubt ruby was ever part of the pfSense repository (correct me if I'm wrong) and it's really a case of keep it simple stupid philosophy, don't build and offer something that that system doesn't need to operate. We don't have C/C++ compilers either because of the same reason. PfSense is a firewall system, not a general purpose server distribution.

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dm3Ch
              last edited by

              I mean that in freebsd ports were ruby, not in pfSense ports. :)

              1 Reply Last reply Reply Quote 0
              • K Offline
                kpa
                last edited by

                Yes I know it was possible back when pfSense was using the FreeBSD binary packages directly but things have changed with the new PKG packaging system. Now pfSense has its own binary repositories that have only a subset of the FreeBSD ports and trying to mix FreeBSD's own binary packages with the pfSense ones will probably not work because pfSense has some very different defaults like no X11.

                1 Reply Last reply Reply Quote 0
                • stephenw10S Offline
                  stephenw10 Netgate Administrator
                  last edited by

                  Yeah, you could change the pkg repo back to the FreeBSD pkg base and install anything you want but there's a good chance of breaking stuff and you won't see updates etc.

                  What are you wanting to run that needs ruby? Perhaps we could suggest an alternative.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • w0wW Away
                    w0w
                    last edited by

                    Actually there is no problem with updates when you change repo back to pfSense after installing desired packages ;)
                    Also there is no problem to use forum search and find out how to do it on your own risk.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.