Unconfigured Ad Widget

Collapse

Help with Ruby on Rails install on Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ponderosa
    Senior Member
    • May 2009
    • 1192

    Help with Ruby on Rails install on Linux

    Anyone know how to solve an issue I'm experiencing w/ installing Ruby on Rails on a Redhat EL3 ES server - I configure Ruby on Rails, then Make and it tells me I need a newer version of autoconf.

    I go to install a newer version of autoconf and it won't configure, tells me I need a newer version of M4.

    Go to install new M4 version and it configures but won't let me Make - gives me the error that i need a newer version of autoconf

    If anyone can give me pointers to get this to work out, I'd be very grateful.

    Thanks.

    Oh, and I realize I should be running version 5 and not 3, but is it possible on 3?
    Last edited by ponderosa; 08-24-2010, 4:00 PM. Reason: added last line
  • #2
    PoofNoEyebrows
    Member
    • Jul 2009
    • 153

    This is pretty much standard when building in Linux. Do you have an option of using RPM? If so i would suggest that as it does a pretty good job predetermining all the package requirements.

    Comment

    • #3
      ocabj
      Calguns Addict
      • Oct 2005
      • 7924

      This is an issue of dependencies. As far as the development tools, it's best not to rely on the system's default dev libraries/binaries, etc.

      At work, we compile stuff into the /inst directory. For example, the latest autoconf is autoconf-2.67.tar.gz.

      I'll usually DL the tarball and:

      gzip -dc autoconf-2.67.tar.gz | tar xvf -
      cd autoconf-2.67
      ./configure --prefix=/inst/pkg-ver/autoconf-2.67 (plus whatever options I need)
      make
      sudo make install

      This will install autoconf into /inst/pkg-ver/autoconf-2.67

      So when I compile m4, I'll have to:

      ./configure --prefix=/inst/pkg-ver/m4-x.x.x --/whatever_option_points_to_autoconf_dir=/inst/pkg-ver/autoconf-2.67

      If there is no configure option to point to autoconf, you'll simply have to define the /inst/pkg-ver/autoconf-2.67/lib and /inst/pkg-ver/autoconf-2.67/include dirs in your LIB and INCLUDE environment for the m4 compile.

      Distinguished Rifleman #1924
      NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
      NRL22 Match Director at WEGC

      https://www.ocabj.net

      Comment

      • #4
        ponderosa
        Senior Member
        • May 2009
        • 1192

        Thx nobrows, I did find a rpm of an older version of Ruby on R. I may try that.

        Thx ocabj, I think I am following you there, install packages utilizing newer dependent versions through switches or options.

        Appreciated. I'll let you know how it goes.

        Comment

        • #5
          ocabj
          Calguns Addict
          • Oct 2005
          • 7924

          I just reread your original post and my response technically won't solve your issue.

          I'm not sure why you're getting issues with autoconf requiring a newer m4, but then m4 requiring a newer autoconf. Unless your autoconf and m4 are currently really old, then you may have to compile slightly older versions to get them somewhat updated, and then from there you can update both to the latest.

          Distinguished Rifleman #1924
          NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
          NRL22 Match Director at WEGC

          https://www.ocabj.net

          Comment

          • #6
            ponderosa
            Senior Member
            • May 2009
            • 1192

            Originally posted by ocabj
            ...Unless your autoconf and m4 are currently really old, then you may have to compile slightly older versions to get them somewhat updated, and then from there you can update both to the latest.
            I bet this is the issue. I'm going to look at it tomorrow and I will post back. Thanks for your time!

            Comment

            • #7
              ponderosa
              Senior Member
              • May 2009
              • 1192

              Utilized an updated RPM for autoconf. Had to install byacc to get it to compile. m4 has been updated. I installed ruby and rubygems but rails won't install, getting a loaderror "no such file to load -- zlib".

              This isn't making a great impression on me. If I had my druthers I'd stick to PHP.

              So I'm installing zlib and will recompile ruby, then try to install rails again.

              Oh boy.
              Last edited by ponderosa; 08-25-2010, 12:04 PM.

              Comment

              • #8
                0x80884
                Junior Member
                CGN Contributor
                • Aug 2010
                • 85

                Originally posted by ponderosa
                Utilized an updated RPM for autoconf. Had to install byacc to get it to compile. m4 has been updated. I installed ruby and rubygems but rails won't install, getting a loaderror "no such file to load -- zlib".

                This isn't making a great impression on me. If I had my druthers I'd stick to PHP.

                So I'm installing zlib and will recompile ruby, then try to install rails again.

                Oh boy.
                Sounds more like an OS problem than a Ruby problem, but I'm a Python guy!
                Why such an old version of RHEL? Any reason to not use CentOS (binary compatible) with a newer package tree?
                -Bobby

                Comment

                • #9
                  kapache
                  Veteran Member
                  • Aug 2009
                  • 2595

                  ^CentOS much better.

                  Comment

                  • #10
                    ponderosa
                    Senior Member
                    • May 2009
                    • 1192

                    I'd have to migrate to an upgraded managed server to do that, not a bad idea overall, but would take too much time at the moment. Plus I'm a stubborn idiot at times and know this should be doable - and I know just enough to be dangerous with this stuff.

                    Installed zlib, but that didn't do me any good even after recompiling ruby and gems. So I found this trick:

                    # ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib
                    # make
                    # make install
                    Then recompiled gems, then installed rails. And it appears to have worked! Crazy.

                    Comment

                    • #11
                      ocabj
                      Calguns Addict
                      • Oct 2005
                      • 7924

                      Originally posted by ponderosa
                      I'd have to migrate to an upgraded managed server to do that, not a bad idea overall, but would take too much time at the moment. Plus I'm a stubborn idiot at times and know this should be doable - and I know just enough to be dangerous with this stuff.

                      Installed zlib, but that didn't do me any good even after recompiling ruby and gems. So I found this trick:



                      Then recompiled gems, then installed rails. And it appears to have worked! Crazy.
                      I was actually going to respond earlier that you needed to reference the zlib dev libraries, not zlib itself. But you figured it out.

                      I understand your pain with regards to build environments. We use a lot of Solaris at work for our servers (physical/virtual) and the build environments are non-existent so there's a lot of manual dependency resolution.

                      Distinguished Rifleman #1924
                      NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
                      NRL22 Match Director at WEGC

                      https://www.ocabj.net

                      Comment

                      • #12
                        ponderosa
                        Senior Member
                        • May 2009
                        • 1192

                        Originally posted by ocabj
                        I was actually going to respond earlier that you needed to reference the zlib dev libraries, not zlib itself. But you figured it out.

                        I understand your pain with regards to build environments. We use a lot of Solaris at work for our servers (physical/virtual) and the build environments are non-existent so there's a lot of manual dependency resolution.
                        Appreciate your posts, your post above helped lead me there.

                        Now to figure all this out

                        The plan is to install Spree and see how that goes for a variation of ecommerce.

                        Comment

                        • #13
                          locosway
                          I need a LIFE!!
                          • Jun 2009
                          • 11346

                          Save yourself a lot of headaches and run Debian or Ubuntu for the server. Especially if you're going to be doing Rails stuff with cutting edge technology.
                          OCSD Approved CCW Instructor
                          NRA Certified Instructor
                          CA DOJ Certified Instructor
                          Glock Certified Armorer

                          Comment

                          • #14
                            sfwdiy
                            Senior Member
                            • Feb 2008
                            • 2146

                            ugghh.... Dependency hell. No thanks.

                            --B
                            Need data recovery? CLICK HERE for a discount on your next recovery from DriveSavers!

                            Comment

                            • #15
                              sepiid
                              Member
                              • Feb 2009
                              • 353

                              im sure glad i dont manage the linux servers i used too.

                              i now manage windows servers and let me say it has been a little slice of heaven so far.

                              Comment

                              Working...
                              UA-8071174-1