bundle install error for system_timer 1.2.4 - ruby-on-rails

9.3 and every time i try "bundle install" it starts ok then give me this error...
An error occurred while installing system_timer (1.2.4), and
Bundler cannot continue.
Make sure that gem install system_timer -v '1.2.4' succeeds
before bundling.
when i try to run system_timer it says...
sudo gem install system_timer
Building native extensions. This could take a while...
ERROR: Error installing system_timer:
ERROR: Failed to build gem native extension.

Gemfile.rb:
platform :ruby_18 do
gem 'system_timer', '1.2.4'
end
Run :
bundle install
Moreover SystemTimer is only a patch for ruby 1.8's threading system. So, there is no need to have it for ruby > 1.9.3

Related

bundle install fails after installing puma

I'm running bundle install and it failed in the middle with the error:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/Mahmoud/dev-reps/non-docker/normal/vendor/bundle/ruby/2.5.0/gems/puma-4.3.1/ext/puma_http11
/Users/Mahmoud/.rbenv/versions/2.5.5/bin/ruby -r ./siteconf20220308-96584-8zjcoy.rb extconf.rb --with-cppflags=-I/usr/local/opt/openssl/include
checking for BIO_read() in -lcrypto... yes
...
...
An error occurred while installing puma (4.3.1), and Bundler cannot continue.
Make sure that `gem install puma -v '4.3.1' --source 'http://rubygems.org/'` succeeds before bundling.
After some failures to install puma, and after much searching and many trials, I was able to install it through:
gem install puma:4.3.1 -- --with-cflags="-Wno-error=implicit-function-declaration"
and the gem installed successfully, giving:
Building native extensions with: '--with-cflags=-Wno-error=implicit-function-declaration'
This could take a while...
Successfully installed puma-4.3.1
Parsing documentation for puma-4.3.1
Done installing documentation for puma after 0 seconds
1 gem installed
My problem currently is that trying bundle install again still fails with the same error. Tried restarting terminal, but still same. It's as if puma has not been installed at all. What am I doing wrong?
Finally got bundle to work using:
bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"
from this answer here

RubyOnRails- How to bundle?

I am trying to install all dependencies via following command:
bundle install
It gave me following error:
An error occurred while installing libv8 <3.16.14.13>, and bundle cannot continue.
Make sure that 'gem install libv8 -v '3.16.14.13' ' succeeds before bundling.
Then from this link:
Error installing libv8: ERROR: Failed to build gem native extension
I found this solution:
gem install libv8 -v '3.16.14.13' -- --with-system-v8
It then installed the libv8
Then again I ran the command:
bundle install
Now its giving me following error:
An error occurred while installing therubyracer <0.12.2>, and bundler cannot continue.
Make sure that 'gem install therubyracer -v '0.12.2' ' succeeds before bundling.
I tried deleting therubyracer from gem file and then run the command but i am getting the same error.
Please guide me.
Thanx
I see that you are using Windows 7 , then prepare yourself:
Unfortunately, there's no know way of installing that gem on Windows:
Linked question: therubyracer not installing on Windows
This is one of many things that made me change to Linux.
EDIT
There is a workaround but its from 4 years ago so , I hope this will work:
https://github.com/eakmotion/therubyracer_for_windows
EDIT 2 - About middleman
Did you install the DevKit for RubyInstaller?.
Here you have the documentation of the gem with the installation steps:
https://github.com/middleman/middleman
EDIT 3
Check this one. There are others with the same issue (of course) and they managed to "solved" it using it:
https://github.com/jawwadzafar/middleman-boilerplate

Error installing rb-fsevent (0.4.3.1)

I'm fairly new to rails. This may be a dumb question, but I can't seem to find a solution. Any suggestion is greatly appreciated.
I've just cloned a repository and I'm running "bundle install". I initially received a general error message regarding "rb-fsevent"when I ran "bundle install". I then just tried to install "rb-fsevent" individually, but received the following error message: (unfortunately I don't have enough reputation to post images...)
An error occurred while installing rb-fsevent (0.4.3.1), and Bundler cannot continue.
Make sure that gem install rb-fsevent -v '0.4.3.1' succeeds before bundling.
dhcp-50-74:sample_app SJ$ gem install rb-fsevent -v '0.4.3.1'
Building native extensions. This could take a while...
ERROR: Error installing rb-fsevent:
ERROR: Failed to build gem native extension.
/Users/SJ/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
creating Makefile
extconf.rb:21:in `': Only Darwin systems greater than 8 (Mac OS X 10.5+) are supported (RuntimeError)
extconf failed, exit code 1
The error message seems to suggest my Mac system is not 10.5+, however, I'm using a MacbookPro running Mavericks OS X 10.9.2.
First of all, read about fsevents here to know what it actually does.
The gem you're trying to install depends on native OSX libraries and you don't seem to be able to build 'em. Try installing command line tools for OSX and install the gem again.
Here's a good tutorial on how to install command line tools:
UPDATE
This was raised as an issue and the fix is to uninstall the previous version and install version 0.9.
gem install 'rb-fsevent' -v '0.9'
or update the gem dependency in your Gemfile:
gem 'rb-fsevent', '>= 0.9'

Error on bundle install

I am trying to run my Ruby application.
I am running the bundle install command, however get the error-
An error occurred while installing libv8 (3.1.16.14.3), and Bundler cannot continue.
Make sure that 'gem install libv8 -v '3.1.16.14.3' succeeds before bundling.
So then I tried-
gem install --version '=3.16.14.3' libv8
and get the error-
Error installing libv8:
ERROR: Failed to build gem native extension.
This is required to run the application however I am not sure how to resolve this?
RUBYOPT=-rrubygems gem install libv8 -v '3.16.14.3'

Issue while installing Ruby Rails on CentOs

When iam trying to install Ruby Rails on my centos server .When i enter Bundle install i got the error
An error occurred while installing pg (0.14.1), and Bundler cannot continue.
Make sure that gem install pg -v '0.14.1' succeeds before bundling.
When i try `gem install pg -v '0.14.1 got the below error
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out
Anybody know why i get this error? Help is highly appreciated.
This should help you --
$ sudo yum install postgresql-devel
Setting up Install Process
...
Complete!
$ sudo gem install pg
Building native extensions. This could take a while...
Successfully installed pg-0.14.1
1 gem installed
Installing ri documentation for pg-0.14.1...
Installing RDoc documentation for pg-0.14.1...

Resources