Page 1 of 1
[05:21:49] chris349: I install RVM which installs the latest ruby version automaticall. Then I install the version I need and uninstall the one RVM initially installed
[23:24:07] chris349: I try to make a new db migration, but I get some strange error about the code thats never popped up before. How can I just manually make the migration so I dont have to deal with this unrelated problem right now?
[00:30:08] chris349: Can I just tell the gem command to ignore SSL certifcate errors? Dumb idea, I know. But I place all the possible certifcates in the rubygems/ssl_certs but I still keep getting validation errors
[00:41:20] chris349: Heres the latest one: ERROR: Could not find a valid gem ´bundler` (>=0), here is why: Unable to download data from https://rubygems.org SSL_connect returned=1 errno=0 state-SSLv2/v3 read server hello: A tlsv1 alert protocol version
[23:02:05] chris349: I install Ruby for Windows and gem install fails with an SSL error. How do I resolve this? Same command works with Linux system.
[23:29:57] chris349: havenwood, I need a path to ruby.exe for a Windows program. With the WSL can I use RVM and them point a Windows app to the correct ruby install?
[23:49:35] chris349: havenwood, I just want to install ruby and some gems to debug a project on my machine, But the gems dont install due to SSL errors
[00:29:16] chris349: When I run rake db migrate it takes a long time to start up because its loading a bunch of irrelevant code, gems, etc. Is tehre any way to stop this on have db migrate only load the bare minimum to get the job done?
[22:53:05] chris349: I try to do a bundle install as non-root user, because when you run as root it gives you warning to NOT run as root
[22:54:09] chris349: But then it pops up a prompt asking for the "password" (not clear which "password" is needed). I type my system user password, but then it says: Gem::FilePermissionError: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.1.2/wrappers directory
[22:54:25] chris349: But if I use sudo I can use the command it gives to install that one particular gem
[22:54:37] chris349: But then bundle install gets stuck and I need to run a sudo command to manually install the next gem
[22:54:56] chris349: So how can I configure the bundle install sudo/password prompt to work correctly and install the gem, instead of failing
[22:57:28] chris349: What is the difference between --user-install and --path vendor/bundle? Which is better?
[22:57:47] chris349: And if it warns to me run as root why does it fail as non-root? Shouldnt it just work?
[03:13:03] chris349: I have a rake task that runs fine from a crontab, but its getting to complex so I want to move it to a shell script. I copy all the env variables from my crontab, such as RAILS_ENV, but when I run the script it errors out because its not running in the right RAILS_ENV
[03:21:54] chris349: eldritch, I dont export it in the crontab. Whats the right way to export it in a shell script?
[03:52:22] chris349: How can I stop nill method errors? I get them too often for stupid things. Right now I can not run a db:migrate because an smtp server setting is missing! SMTP server setting should have nothing to do with a db:migrate
[04:12:15] chris349: Is there any way to make it better so this unrelated error doesnt happen? Even if the SMTP setting is wrong db:migrate should not fail!
[00:01:47] chris349: Basically the ImageMagick package of my OS was updated and now the Ruby code does not run because it uses the rmagic gem.
[00:04:25] chris349: Yea it seems to think its smarter than me, deleting the files and trying to bundle install again
[00:05:24] chris349: ... and gem update is reinstalling EVERYTHING. I hope it doesnt break something else
[00:20:31] chris349: Its not regenerating all the files of the gem. Is there any command specifically to force reinstall one gem?
[00:31:53] chris349: I think bundle install is failing but there is no error. At the end it says Please report any bugs is that normal?
[23:14:51] chris349: What is the best way to run the rails server from systemd? When I run it directly it works, but I need it to load automatically upon bootup. When I try to run it from systemd it fails saying: require: cannot load such file -- bundler/setup (LoadError)
[23:20:53] chris349: I run the command directly and there is no issue: /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby /opt/errbit/script/rails server
[23:21:29] chris349: But when I run it from the systemd script it does not run and gives this error: require: cannot load such file -- bundler/setup (LoadError)
[23:27:58] chris349: I try /usr/local/rvm/bin/rvm wrapper /opt/errbit/script/rails server but it fails with the error Unknown ruby interperter version, Could not load ruby /opt/errbit/script/rails
[23:30:14] chris349: All I know is I run this command in the console and everything works as expected: /usr/local/rvm/rubies/riby-2.2.1/bin/ruby /opt/errbit/script/rails server and everything works perfect.
[23:37:34] chris349: Yes it seems to have to do with the paths, how can I set the path correctly from the systemd script?
[23:38:49] chris349: zenspider, I am using the full path, but it seems that other things are called that depend on the enviroment path, which is not set through systemd
[03:54:42] chris349: Maybe I phrase my question wrong. I have the ruby code, but it is web-based. How do I start the built in webserver to run that code and view it in a web browser?
[03:57:54] chris349: I am using Linux. I dont know what framework was used and I do not have any instructions.
[03:58:56] chris349: ponga, Yes. Normally I use Phusion Passengear and run the code from Apache webserver, but in this case I want to run it directly.
[04:02:42] chris349: ponga, The code is in a directory on a Linux machine. I dont know know to run it.
[04:09:57] chris349: ponga, Yes there are subdirectories with .rb files but I am pretty sure what I have used before was a generic command that didnt reference any project specific file
[04:12:43] chris349: The contents of the directory are: app/ bin/ config/ db/ Gemfile Gemfile.locl Rakefile README.rdoc test/ vendor/
[04:15:29] chris349: How involved would it be to add a dummy rails project? I am pretty sure this code is missing something.
[04:16:10] chris349: zotherstupidguy, Bundle install was able to install all the gems without a problem
[04:17:28] chris349: I am not sure if this is an issue but Gemfile has no gems, they are all in Gemfile.lock
[01:14:03] chris349: Does anyone know what is the correct way to install the gems for system-wide usage instead of the default of per-user?
[01:16:33] chris349: The problem is when I run bundle install it gives an error that says to run bundle install --no-deployment but when I run that it gives an error to run bundle update minitest instead but that command gives me the same error that says to run bundle install --no-deployment
[01:17:30] chris349: I also dont quite understand the error: Run `bundle install` elsewhere because I cd .. and run bundle install but it gives an error that Gemfile not found and when I cd back it gives the same error.
[01:19:06] chris349: So basically bundle install --deployment only works once and then to update it is an issue.
[03:53:59] chris349: After I run bundle install I still get errors about missing gems. When I comment out the erroring module in Gemfile that parcicular error goes away. How can I force Gemfile to see the installed modules?
[03:07:04] chris349: I need to run the command bundle install as a particular user, but my bundle is in /root/.rvm/gems/ruby-2.1.1/bin/bundle How can I install this in the correct location that is not user-specific (e.g. /usr/local/bin)
[03:12:57] chris349: I think I got it to work with the Multi-User install. But now when I run bundle it says dont run as root, but when I do sudo -u apache /usr/local/rvm/gems/ruby-2.1.1@global/bin/bundle install then I get an error message: /usr/bin/env: ruby_executable_hooks: No such file or directory
[03:17:42] chris349: RubyPanther, I really dont want to get into complicating things. I am just trying to get this running through apache in the simplest manner possible.
[03:25:17] chris349: The commands all work as root but not as user apache. Is there a better way to run the code through apache other than rvm + passenger?
[03:34:39] chris349: I follow the instructions to install rvm ruby for all users, but when I do gem install bundle it is placing it in: /root/.rvm/gems/ruby-2.1.1/bin/bundle
[03:40:55] chris349: rvm is installed as system-wide. However, it is not installing the gem for system-wide usage.
[03:44:16] chris349: What is the correct way to install bundler for system-wide usage? I have /usr/local/rvm/rubies/ruby-2.1.1/bin/gem but when I invoke it to install bundler it installs bundler in /root/
[04:00:19] chris349: poka, Bundle install gives the error: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
[04:01:36] chris349: Yes it lets me run it but then says: installing your bundle as root will break this application for all non-root users on this machine
[04:11:19] chris349: Im using the standard x86_64 platform. What changes would need to be made to rvm to permit code to run through a webserver?
[22:42:01] chris349: I am able to access the appliation through the built-in web server on port 3000. But when I attempt to use the same code and access it through Apache web server instead I get an error: "uninitialized constant FullcalendarEngine::Engine (NameError)"
[06:45:06] chris349: I installed ruby on a server but it seems to have hijacked the console. Is there any way to revert this?
[06:55:15] chris349: popl, Its gone from my scrollback, but when I cd into a directory I was getting messages about ruby
[07:00:26] chris349: Got one, I type the command: cd test/public/ and then it says: RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too
[07:22:41] chris349: What would be the best way to install ruby? I simply need to run an application through Apache, that is giving bundle errors with the rvm installation.
[21:23:48] chris349: When I specify a module from git in Gemfile it gets installed to a different directory and then when the application runs it can not detect the module. Is there any way to manually install these to the standard directory?
[21:28:59] chris349: https://gist.github.com/anonymous/5d94d6a2352426cbec60 The gems from git are the ones that give errors. Those are being installed in /usr/local/rvm/gems/ruby-2.1.1/bundler/gems while those that do not give errors are in /usr/local/rvm/gems/ruby-2.1.1/gems
[21:40:01] chris349: jenrzzz, Yes but it places the modules sourced from git in a diffrent directory.
[21:50:13] chris349: Is there any way I can take a gem from git and manually install it to a specific directory:>
[22:29:44] chris349: The only issue I seem to face is the gems from git show the Could not find gem error. I have gotten past most of these by manually doing a git clone, gem build ZYX.gemspec and gem install XYZ.gem. However the last two are not solved by this process.