Getting error when ruby webpack installing - ruby-on-rails

I'm trying to install ruby webpack. But getting an error it says "C:\Ruby31-x64\bin\ruby.exe: No such file or directory -- F:/Rails (LoadError)"
How can I fix this.
enter image description here
Looking for install webpack correctly

Related

Getting an error while installing Ruby On Rails on Mac OS X 10.15 Catalina

I tried installing Ruby on Rails on my OS X Catalina (10.15) and had two issues that are maybe related. On the final step here it says
"Mojave changed the location of header files necessary for compiling C extensions. You might need to run the following command to install pg, nokogiri, or other gems that require C extensions:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
"
For that step i do not have a folder packages under my command line tools folder so this line i could not run. So I ignored it and continue with the instructions. Then when i got to the last command in this instructions guide "rails server" the server tried to run and i got this run time error:
/Users/yoramaharony/.rvm/gems/ruby-2.7.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:95:in `rescue in load': Webpacker configuration file not found /Users/yoramaharony/dev/myapp/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory # rb_sysopen - /Users/yoramaharony/dev/myapp/config/webpacker.yml (RuntimeError)
I do not have experience running terminal command but i am pretty sure i followed the guide diligently so why the last step is giving me error.
Thank you
You need to run bundle exec rails webpacker:install in order to set up Webpacker dependencies. Rails 6 introduces Webpacker as the default JavaScript tool for bundling JavaScript code. You could read more about it in this blog by Prathamesh Sonpatki

'No such file' error after reinstalling Ruby

At first I could not create a new Ruby project and I was getting a error about the bin path. I uninstalled ruby and reinstalled it.
Now I get this error whene executing rails --version:
mackbookpro:desktop 411techhelp$ rails --version
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:7:in `require': no such file to load -- rubygems (LoadError)
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:7
What is going on and how can I fix this?
It looks very much like uninstalling ruby also uninstalled rubygems, but you didn't re-install the latter (or your installation of rubygems is/was for a different ruby version).

Error while installing rails and starting server

I'm totally new to rails. I downloaded rails package from railsinstaller.org and installed it. While starting server, i got this error
"Could not find uglifier..."
Then i tried bundle install. It is not working.
Then i totally uninstalled it and installed only ruby from rubyinstaller.org. Ruby is working fine. When i tried "gem install rails", i'm getting this error
"could not download data from rubygems.org"
What i tried
1) I downloaded the rails-4.1.7.gem and tried installing it locally as show here
How can I specify a local gem in my Gemfile?
I tried gem "rails", :path => "D:\rails-4.1.7.gem"
Error: Unknown command rails
2) I tried the solution here
gem install rails doesn't work due to openssl/ETimedout in windows
But getting this exception
I cannot able to set it up. Please tell how to install rails and start the server. I'm a total newbie to rails.

Ruby on Rails - Using LogServer for Remote Logging in log4r using ROMP

I am a complete newbie in working with a Ruby on Rails (RoR) application. I am trying to set up a LogServer and tried running the example available on github : https://github.com/colbygk/log4r/blob/master/examples/logserver.rb and the https://github.com/colbygk/log4r/blob/master/examples/logclient.rb.
But I knew that ROMP was required for setting up a LogServer, so I downloaded the ROMP tarball and expanded it here : /usr/lib/ruby/1.8
But still when I tried running the logserver.rb program in the terminal, I get :
"/usr/lib/ruby/1.8/log4r/configurator.rb:204:in new': LogServer not supported. ROMP is required (RuntimeError) from /usr/lib/ruby/1.8/log4r/configurator.rb:204:indecode_logserver' ...."
Any idea on how to properly install ROMP on my machine???
I am using Ubuntu 10.04, ruby1.8 and rails 2.2.3.
Thanks in Advance ........
From this link: http://www.ruby-forum.com/topic/103958
After downloading and extracting the ROMP tarball ...
cd romp-0.2
ruby extconf.rb
make
This will compile the ROMP C extension. Now you need to install it into your ruby directory. On my Windows/Cygwin bastard box this is found in ...
/lib/ruby/site_ruby/1.8
The ROMP .rb files go directly into this directory, and the compiled .so goes into the
/lib/ruby/site_ruby/1.8/i386-cygwin
directory.
Please note that I have not tried this installation myself, but I hope
you get the general idea

Can't install Ruby on Rails on Wamp

I followed this tutorial:
How to install Ruby on Rails alongside WampServer?
After adding D:\wamp\ruby\bin (my wamp folder is in D:) to my Path and write gem install rails in the command line I get 2 error which says that the following files couldn't be found:
SSLEAY32.dll
zlib.dll
Here is the screenshot:
Never mind it is fixed by downloading some dlls http://alwaysthecritic.typepad.com/atc/2009/03/install-ruby-191-on-windows.html

Resources