I'm trying to install logstash-integration-jdbc following this git logstash-integration-jdbc
running logstash 7.12.1
I've installed jruby
$ jruby --version
jruby 9.1.17.0 (2.3.3) 2020-02-29 fffffff OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
and bundler gem
$ ruby -S gem list --local
*** LOCAL GEMS ***
bundler (2.2.19)
bundler-unload (1.0.2)
cmath (default: 1.0.0)
csv (default: 1.0.0)
did_you_mean (1.2.0)
executable-hooks (1.6.1)
fileutils (default: 1.1.0)
gem-wrappers (1.4.0)
ipaddr (default: 1.2.0)
jar-dependencies (default: 0.4.0)
jruby-launcher (1.1.17 java)
jruby-openssl (0.10.7 java, default: 0.10.2 java)
jruby-readline (default: 1.3.7 java)
json (default: 2.2.0 java)
minitest (5.10.3)
net-telnet (0.1.1)
power_assert (1.1.3)
psych (default: 3.1.0 java)
rake (13.0.3, 12.3.2)
rake-ant (default: 1.0.4)
rdoc (default: 6.1.2)
rubygems-bundler (1.4.5)
rvm (1.11.3.9)
scanf (default: 1.0.0)
test-unit (3.2.8)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
I also done clone from the git source
$ ./gradlew vendor
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.3/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
BUILD SUCCESSFUL in 4s
2 actionable tasks: 2 executed
but when I try to install the bundle
$ bundle install
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.
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...........................................................
Bundler could not find compatible versions for gem "logstash-core":
In Gemfile:
logstash-integration-jdbc was resolved to 5.1.1, which depends on
logstash-core-plugin-api (>= 1.60, <= 2.99) was resolved to 1.60.1, which
depends on
logstash-core (>= 2.4.0.snapshot1, <= 2.4.99)
logstash-integration-jdbc was resolved to 5.1.1, which depends on
logstash-core (>= 6.5.0)
What should I do now?
Related
Tried the original method of gem install jekyll and I get this error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Installed Xcode and command line tools. Then followed up with installing homebrew using this command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
get this error after:
Error: Failed to link all completions, docs and manpages:
Permission denied - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
Failed during: /usr/local/bin/brew update --force
These are my ruby and gem version:
addressable (2.5.1)
bigdecimal (default: 1.2.0)
CFPropertyList (2.2.8)
colorator (1.1.0)
ffi (1.9.18)
io-console (default: 0.4.2)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
json (default: 1.7.7)
kramdown (1.14.0)
libxml-ruby (2.6.0)
listen (3.0.8)
minitest (default: 4.3.2)
nokogiri (1.5.6)
psych (default: 2.0.0)
public_suffix (2.0.5)
rake (default: 0.9.6)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
rdoc (default: 4.0.0)
rubygems-update (2.6.12)
sass (3.5.1)
sass-listen (4.0.0)
sqlite3 (1.3.7)
test-unit (default: 2.0.0.0)
Please help!
Did you try running the command with sudo ? for example sudo gem install jekyll bundler. This will ensure that you're running the command as an administrator.
I'm trying to write a rubygem that does some stuff with homebrew. I'm calling on brew to do some stuff using system(). When I include certain gems in using bundler, I get some errors doing things inside system().
As an example, a basic Gemfile with rake:
~/tmp/foo cat Gemfile
source 'https://rubygems.org'
gem 'rake'
Inside irb after running a bundle install:
irb(main):001:0> system("brew", "info", "ack")
Could not find rake-12.0.0 in any of the sources
Run `bundle install` to install missing gems.
=> false
I can do a bundle install inside the call and receive the same results:
rb(main):007:0> system("bundle", "install")
Using rake 12.0.0
Using bundler 1.14.6
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Bundled gems are installed into /Users/laura/.bundle.
=> true
irb(main):008:0> system("brew", "version")
Could not find rake-12.0.0 in any of the sources
Run `bundle install` to install missing gems.
=> false
Without the rake gem included I do not receive any errors:
~/tmp/foo cat Gemfile
source 'https://rubygems.org'
gem 'git'
~/tmp/foo bundle install
Fetching gem metadata from https://rubygems.org/.
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Using git 1.3.0
Using bundler 1.14.6
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Bundled gems are installed into /Users/surminus/.bundle.
~/tmp/foo
~/tmp/foo irb
irb(main):002:0> system("brew", "info", "ack")
ack: stable 2.16, HEAD
Search tool like grep, but optimized for programmers
https://beyondgrep.com/
/usr/local/Cellar/ack/2.14 (4 files, 184.7KB)
Built from source on 2016-12-16 at 16:24:07
/usr/local/Cellar/ack/2.16 (4 files, 190.7KB) *
Built from source on 2017-03-17 at 20:25:45
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ack.rb
=> true
I know it's probably related to some conflict between homebrew, rake and bundler, but I can't for the life of me figure out what's going on. I only need to rake tasks for some development specific tasks so I can remove it, but I'm interested to find out why this occurs, or if indeed calling brew this way is $bad.
EDIT: I was asked for output of gem list --local in the bundle directory. Seems to be system gems. With bundle exec:
~/tmp/foo bundle exec gem list --local
*** LOCAL GEMS ***
bundler (1.14.6)
rake (12.0.0)
Without bundle exec:
~/tmp/foo gem list --local
*** LOCAL GEMS ***
activemodel (5.0.1)
activesupport (5.0.1)
addressable (2.5.0)
bigdecimal (1.2.8)
bundler (1.14.6, 1.14.5, 1.13.6)
CFPropertyList (2.2.8)
coderay (1.1.1)
commander (4.4.2)
concurrent-ruby (1.0.3)
did_you_mean (1.0.0)
diff-lcs (1.3, 1.2.5)
domain_name (0.5.20161129)
facter (2.4.6 ruby universal-darwin)
fileutils (0.7)
git (1.3.0)
hiera (1.3.4)
highline (1.7.8)
http-cookie (1.0.3)
i18n (0.7.0)
io-console (0.4.5)
json (2.0.2, 1.8.3)
json_pure (2.0.1, 1.8.3)
metaclass (0.0.4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
minitest (5.10.1, 5.8.3)
mocha (1.2.1, 1.1.0)
myosx (0.2.2, 0.2.0, 0.1.0)
net-telnet (0.1.1)
netrc (0.11.0)
oauth (0.5.1)
power_assert (0.2.6)
pry (0.10.4)
psych (2.0.17)
public_suffix (2.0.4)
puppet (3.8.7)
puppet-lint (1.1.0)
puppet-syntax (2.3.0, 2.1.0)
puppetlabs_spec_helper (1.1.1)
rake (12.0.0, 11.1.2, 10.5.0, 10.4.2)
rdoc (4.2.1)
rest-client (2.0.0)
rmagick (2.16.0)
rspec (3.5.0, 3.4.0)
rspec-core (3.5.4, 3.4.4)
rspec-expectations (3.5.0, 3.4.0)
rspec-mocks (3.5.0, 3.4.1)
rspec-puppet (2.4.0)
rspec-support (3.5.0, 3.4.1)
ruby-trello (1.6.0)
slop (3.6.0)
test-unit (3.1.5)
thread_safe (0.3.5)
tzinfo (1.2.2)
unf (0.1.4)
unf_ext (0.0.7.2)
When I try to run a test on Chrome (selenium / Ruby) then I get the following error. Could anybody help to resolve this?
Error :-
Background: Login to app # tests\integration\channels.feature:3
[6100:7920:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134949:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134955:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/135006:ERROR:child_process_launcher.cc(533)] Failed to
launch child process rake aborted!
Following are the gems installed:-
* LOCAL GEMS *
bigdecimal (default: 1.2.0)
builder (3.2.2)
bundle (0.0.1)
bundler (1.13.6, 1.11.2)
childprocess (0.5.0)
cucumber (2.4.0, 1.3.2)
cucumber-core (1.5.0)
cucumber-wire (0.0.1)
debase (0.2.1, 0.1.4)
debase-ruby_core_source (0.9.2)
diff-lcs (1.2.5)
ffi (1.9.14 x86-mingw32)
gherkin (4.0.0, 2.12.2 x86-mingw32)
io-console (default: 0.4.2)
json (2.0.2, default: 1.7.7)
minitest (default: 4.3.2)
multi_json (1.12.1, 1.11.2)
multi_test (0.1.2)
parallel (1.6.1)
parallel_tests (1.3.7)
psych (default: 2.0.0)
rake (10.1.0, default: 0.9.6)
rdoc (default: 4.0.0)
ruby-debug-ide (0.6.0, 0.4.32)
rubyzip (1.2.0, 1.1.7)
selenium-webdriver (2.52.0, 2.48.0, 2.46.2)
test-unit (default: 2.0.0.0)
websocket (1.2.3, 1.2.2)
I am using:-
ruby '2.0.0'
gem 'cucumber', '1.3.2'
gem 'selenium-webdriver', '2.53.0'
gem 'rake', '10.1.0'
gem 'appium_lib', '8.0.2'
gem 'json', '1.8.3'
gem 'parallel_tests', '1.3.7'
Thanks in advance!
I have the same issue in Chrome 54.0.2840.71. The issue only reproduces for me when running chrome as administrator (on windows). A couple of workarounds you can use:
If you were running as admin, try running unelevated and it might fix your issue.
Disable the Chrome Zygote process when launching. Beware, this will disable the chrome sandbox and you might have security risks.
chrome.exe --no-zygote --no-sandbox
I tried to study Ruby on Rails and followed a tutorial. However, I think I missed a part and I can't proceed to the next step in the tutorial, so I plan to uninstall things, including the gems I installed, and start all over again.
I installed Ruby using Homebrew, because people say it's best not to mess with the Ruby that comes with macOS. Then, I uninstalled it again using brew uninstall ruby.
After doing that, I ran gem list and this came out:
*** LOCAL GEMS ***
- bigdecimal (1.2.0)
- builder (3.2.2)
- CFPropertyList (2.2.8)
- io-console (0.4.2)
- json (1.7.7)
- libxml-ruby (2.6.0)
- minitest (4.3.2)
- nokogiri (1.5.6)
- psych (2.0.0)
- rake (0.9.6)
- rdoc (4.0.0)
- sqlite3 (1.3.7)
- test-unit (2.0.0.0)
- thor (0.19.1)
What are the gems (if any) that come with macOS system Ruby?
My fresh El Capitan gives:
*** LOCAL GEMS ***
bigdecimal (1.2.0)
CFPropertyList (2.2.8)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.7)
test-unit (2.0.0.0)
which is the same as #jsejcksn mentioned. For macOS 10.13.6 (High Sierra) and 10.14.5 (Mojave) the list is
*** LOCAL GEMS ***
bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3.1)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0.1)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
As addendum, for anybody else wondering what the current default Gems on macOS 10.13.3 are:
*** LOCAL GEMS ***
bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
Shipped gem version is 2.5.2.
macOS 12.0.1 Monterey
% gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.4.1)
bundler (default: 1.17.2)
CFPropertyList (2.3.6)
cmath (default: 1.0.0)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
e2mmap (default: 0.1.0)
etc (default: 1.0.1)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
json (default: 2.1.0)
libxml-ruby (3.2.1)
logger (default: 1.3.0)
matrix (default: 0.1.0)
mini_portile2 (2.4.0)
minitest (5.11.3)
mutex_m (default: 0.1.0)
net-telnet (0.2.0)
nokogiri (1.10.1)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
rake (12.3.3)
rdoc (default: 6.1.2.1)
rexml (default: 3.1.9.1)
rss (default: 0.2.7)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
sqlite3 (1.3.13)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
test-unit (3.2.9)
thwait (default: 0.1.0)
tracer (default: 0.1.0)
webrick (default: 1.4.4)
xmlrpc (0.3.0)
zlib (default: 1.0.0)
OS X 10.10 has Ruby 2.0 has the default version, so I guess 10.11 is the same.
However, I would suggest you to use Ruby 2.3.0, because it is the most current stable version.
Since you are using brew, you can use the following code:-
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Ruby
rbenv install 2.3.0
rbenv global 2.3.0
ruby -v
Reference: https://gorails.com/setup/osx/10.11-el-capitan
UPDATE: latest stable should be 2.3.0 instead of 2.2.3. Thanks spikermann for pointing out.
When trying to install vagrant-librarian-chef plugin for Vagrant 1.8.1 I get the following error
$ vagrant plugin install vagrant-librarian-chef
Ignoring bigdecimal-1.2.7 because its extensions are not built. Try: gem pristine bigdecimal --version 1.2.7
Ignoring bigdecimal-1.2.7 because its extensions are not built. Try: gem pristine bigdecimal --version 1.2.7
Installing the 'vagrant-librarian-chef' plugin. This can take a few minutes...
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.
You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.
Vagrant could not find compatible versions for gem "net-ssh":
In Gemfile:
vagrant (= 1.8.1) x86-mingw32 depends on
net-ssh (~> 3.0.1) x86-mingw32
vagrant (= 1.8.1) x86-mingw32 depends on
net-scp (~> 1.1.0) x86-mingw32 depends on
net-ssh (>= 2.6.5) x86-mingw32
vagrant (= 1.8.1) x86-mingw32 depends on
net-scp (~> 1.1.0) x86-mingw32 depends on
net-ssh (>= 2.6.5) x86-mingw32
vagrant-librarian-chef (>= 0) x86-mingw32 depends on
librarian-chef (>= 0) x86-mingw32 depends on
chef (>= 0.10) x86-mingw32 depends on
net-ssh (~> 2.1.3) x86-mingw32
When I do gem list net-ssh I get the following back:
*** LOCAL GEMS ***
net-ssh (3.0.2, 2.9.4)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.1)
Any help with what's wrong? I'm a total newbie to both ruby and vagrant which probably isn't helping the situation!
The problem is a conflict in the net-ssh version. Vagrant 1.8.1 uses v3.0.1, but vagrant-librarian-chef accepts versions up to 2.9.
Downgrading the vagrant version to 1.7.4 solved the issue for me.