gem install bundle Fetching: bundler-1.14.4.gem (100%) 2 gems installed which bundle ~/bin/bundleBundle has made it much easier to keep this old project running. It will find and try to build the exact versions of rails components that I orignally developed the project with. I know from past experience that I need to install certain "-devel" packages to get header files for some things that will get built:
su dnf install ruby-devel dnf install sqlite-devel dnf install nodejs dnf install redhat-rpm-config exit cd /u1/micromounts bundle update rails serverAfter this I can point my browser to localhost:3000 and see the page I expect!
Bundle install gets into trouble building "json (1.8.6)" (which I am not sure I even need anyway). I get this message:
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directoryThe fix is apparently to install the "redhat-rpm-config" package as I have now added above. A google search on the error message led me quickly to this helpful page: Running "bundle install" is typically a "lather rinse repeat" scenario, adding packages until things build. It is certainly much less painful than it used to be.
Once the "bundle install" succeeds, I try "rails server" and get a long traceback with the following error:
Gem Load Error is: Could not find a JavaScript runtime ...The fix to this is to install nodejs, as I have added to the list above.
Adventures in Computing / [email protected]