rake db:seed causes stack level too deep, why? - ruby-on-rails-3.1

When I try to run rake db:seed --trace I get this error:
rake aborted!
stack level too deep
as below:
/home/sam/.rvm/rubies/ruby-1.9.3-p0/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/sam/.rvm/gems/ruby-1.9.3-p0#dcaclab/bin/rake db:seed --trace
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/version.rb:2: warning: already initialized constant VERSION
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MAJOR
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant BUILD
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant PATCH
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/version.rb:6: warning: already initialized constant NUMBERS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake.rb:27: warning: already initialized constant RAKEVERSION
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake.rb:68: warning: already initialized constant FileList
/home/sam/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-0.9.2.2/lib/rake.rb:69: warning: already initialized constant RakeFileUtils
rake aborted!
stack level too deep
/home/sam/.rvm/gems/ruby-1.9.3-p0#dcaclab/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25
Process finished with exit code 1
Any idea ?

Related

Warning: Module "mongodb" is already loaded in Unknown on line 0

I am using Laravel valet for a while, but now I started getting errors:
Warning: Module "mongodb" is already loaded in Unknown on line 0
Could not open input file:
Warning: Module "mongodb" is already loaded in Unknown on line 0/cli/valet.php
and it can't load local web applications anymore (with .test at the end).
I tried updating valet and run again valet install but get this:
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
Warning: Module "mongodb" is already loaded in Unknown on line 0
Could not open input file:
Warning: Module "mongodb" is already loaded in Unknown on line 0/cli/valet.php`
I have macos and valet.
Have someone ideas about what I can try out?

Jekyll: activated terminal-table 2.0.0, but your Gemfile requires terminal-table 1.8.0. and warning: already initialized constant URI::REGEXP

When I run jekyll build --trace I get:
Traceback (most recent call last):
10: from /home/john/.gem/ruby/2.7.0/bin/jekyll:23:in `<main>'
9: from /home/john/.gem/ruby/2.7.0/bin/jekyll:23:in `load'
8: from /home/john/.gem/ruby/2.7.0/gems/jekyll-4.2.0/exe/jekyll:11:in `<top (required)>'
7: from /home/john/.gem/ruby/2.7.0/gems/jekyll-4.2.0/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
6: from /home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler.rb:148:in `setup'
5: from /home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler/runtime.rb:26:in `setup'
4: from /home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler/runtime.rb:26:in `map'
3: from /home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler/spec_set.rb:149:in `each'
2: from /home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler/spec_set.rb:149:in `each'
1: from /home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler/runtime.rb:31:in `block in setup'
/home/john/.gem/ruby/2.7.0/gems/bundler-2.2.7/lib/bundler/runtime.rb:302:in `check_for_activated_spec!': You have already activated terminal-table 2.0.0, but your Gemfile requires terminal-table 1.8.0. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
In this case is not build.
And when I run bundle exec jekyll build --trace I get:
/usr/lib/ruby/2.7.0/uri/version.rb:3: warning: already initialized constant URI::VERSION_CODE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/version.rb:3: warning: previous definition of VERSION_CODE was here
/usr/lib/ruby/2.7.0/uri/version.rb:4: warning: already initialized constant URI::VERSION
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/version.rb:4: warning: previous definition of VERSION was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:29: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::ALPHA
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:28: warning: previous definition of ALPHA was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:31: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::ALNUM
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:30: warning: previous definition of ALNUM was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:35: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::HEX
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:34: warning: previous definition of HEX was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:37: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::ESCAPED
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:36: warning: previous definition of ESCAPED was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:41: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::UNRESERVED
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:40: warning: previous definition of UNRESERVED was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:46: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::RESERVED
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:45: warning: previous definition of RESERVED was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:49: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::DOMLABEL
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:48: warning: previous definition of DOMLABEL was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:51: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::TOPLABEL
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:50: warning: previous definition of TOPLABEL was here
/usr/lib/ruby/2.7.0/uri/rfc2396_parser.rb:53: warning: already initialized constant URI::RFC2396_REGEXP::PATTERN::HOSTNAME
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc2396_parser.rb:52: warning: previous definition of HOSTNAME was here
/usr/lib/ruby/2.7.0/uri/rfc3986_parser.rb:6: warning: already initialized constant URI::RFC3986_Parser::RFC3986_URI
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc3986_parser.rb:6: warning: previous definition of RFC3986_URI was here
/usr/lib/ruby/2.7.0/uri/rfc3986_parser.rb:7: warning: already initialized constant URI::RFC3986_Parser::RFC3986_relative_ref
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/rfc3986_parser.rb:7: warning: previous definition of RFC3986_relative_ref was here
/usr/lib/ruby/2.7.0/uri/common.rb:17: warning: already initialized constant URI::REGEXP
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:16: warning: previous definition of REGEXP was here
/usr/lib/ruby/2.7.0/uri/common.rb:18: warning: already initialized constant URI::Parser
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:17: warning: previous definition of Parser was here
/usr/lib/ruby/2.7.0/uri/common.rb:19: warning: already initialized constant URI::RFC3986_PARSER
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:18: warning: previous definition of RFC3986_PARSER was here
/usr/lib/ruby/2.7.0/uri/common.rb:22: warning: already initialized constant URI::DEFAULT_PARSER
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:21: warning: previous definition of DEFAULT_PARSER was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::ABS_URI
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of ABS_URI was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::REL_URI
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of REL_URI was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::URI_REF
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of URI_REF was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::ABS_URI_REF
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of ABS_URI_REF was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::REL_URI_REF
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of REL_URI_REF was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::ESCAPED
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of ESCAPED was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::UNSAFE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of UNSAFE was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::SCHEME
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of SCHEME was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::USERINFO
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of USERINFO was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::HOST
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of HOST was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of PORT was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::OPAQUE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of OPAQUE was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::REGISTRY
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of REGISTRY was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::ABS_PATH
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of ABS_PATH was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::REL_PATH
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of REL_PATH was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::QUERY
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of QUERY was here
/usr/lib/ruby/2.7.0/uri/common.rb:29: warning: already initialized constant URI::FRAGMENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:28: warning: previous definition of FRAGMENT was here
/usr/lib/ruby/2.7.0/uri/common.rb:340: warning: already initialized constant URI::TBLENCWWWCOMP_
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:277: warning: previous definition of TBLENCWWWCOMP_ was here
/usr/lib/ruby/2.7.0/uri/common.rb:346: warning: already initialized constant URI::TBLDECWWWCOMP_
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:283: warning: previous definition of TBLDECWWWCOMP_ was here
/usr/lib/ruby/2.7.0/uri/common.rb:512: warning: already initialized constant URI::WEB_ENCODINGS_
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/common.rb:449: warning: previous definition of WEB_ENCODINGS_ was here
/usr/lib/ruby/2.7.0/uri/generic.rb:28: warning: already initialized constant URI::Generic::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/generic.rb:27: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/generic.rb:47: warning: already initialized constant URI::Generic::COMPONENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/generic.rb:46: warning: previous definition of COMPONENT was here
/usr/lib/ruby/2.7.0/uri/generic.rb:62: warning: already initialized constant URI::Generic::USE_REGISTRY
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/generic.rb:61: warning: previous definition of USE_REGISTRY was here
/usr/lib/ruby/2.7.0/uri/file.rb:12: warning: already initialized constant URI::File::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/file.rb:12: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/file.rb:17: warning: already initialized constant URI::File::COMPONENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/file.rb:17: warning: previous definition of COMPONENT was here
/usr/lib/ruby/2.7.0/uri/ftp.rb:25: warning: already initialized constant URI::FTP::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ftp.rb:24: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/ftp.rb:30: warning: already initialized constant URI::FTP::COMPONENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ftp.rb:29: warning: previous definition of COMPONENT was here
/usr/lib/ruby/2.7.0/uri/ftp.rb:43: warning: already initialized constant URI::FTP::TYPECODE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ftp.rb:42: warning: previous definition of TYPECODE was here
/usr/lib/ruby/2.7.0/uri/ftp.rb:46: warning: already initialized constant URI::FTP::TYPECODE_PREFIX
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ftp.rb:45: warning: previous definition of TYPECODE_PREFIX was here
/usr/lib/ruby/2.7.0/uri/http.rb:25: warning: already initialized constant URI::HTTP::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/http.rb:24: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/http.rb:28: warning: already initialized constant URI::HTTP::COMPONENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/http.rb:27: warning: previous definition of COMPONENT was here
/usr/lib/ruby/2.7.0/uri/https.rb:20: warning: already initialized constant URI::HTTPS::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/https.rb:19: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/ldap.rb:27: warning: already initialized constant URI::LDAP::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldap.rb:26: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/ldap.rb:30: warning: already initialized constant URI::LDAP::COMPONENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldap.rb:29: warning: previous definition of COMPONENT was here
/usr/lib/ruby/2.7.0/uri/ldap.rb:48: warning: already initialized constant URI::LDAP::SCOPE_ONE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldap.rb:47: warning: previous definition of SCOPE_ONE was here
/usr/lib/ruby/2.7.0/uri/ldap.rb:49: warning: already initialized constant URI::LDAP::SCOPE_SUB
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldap.rb:48: warning: previous definition of SCOPE_SUB was here
/usr/lib/ruby/2.7.0/uri/ldap.rb:50: warning: already initialized constant URI::LDAP::SCOPE_BASE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldap.rb:49: warning: previous definition of SCOPE_BASE was here
/usr/lib/ruby/2.7.0/uri/ldap.rb:47: warning: already initialized constant URI::LDAP::SCOPE
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldap.rb:46: warning: previous definition of SCOPE was here
/usr/lib/ruby/2.7.0/uri/ldaps.rb:18: warning: already initialized constant URI::LDAPS::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/ldaps.rb:18: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/mailto.rb:22: warning: already initialized constant URI::MailTo::DEFAULT_PORT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/mailto.rb:21: warning: previous definition of DEFAULT_PORT was here
/usr/lib/ruby/2.7.0/uri/mailto.rb:25: warning: already initialized constant URI::MailTo::COMPONENT
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/mailto.rb:24: warning: previous definition of COMPONENT was here
/usr/lib/ruby/2.7.0/uri/mailto.rb:53: warning: already initialized constant URI::MailTo::HEADER_REGEXP
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/mailto.rb:52: warning: previous definition of HEADER_REGEXP was here
/usr/lib/ruby/2.7.0/uri/mailto.rb:56: warning: already initialized constant URI::MailTo::EMAIL_REGEXP
/home/john/.gem/ruby/2.7.0/gems/uri-0.10.1/lib/uri/mailto.rb:55: warning: previous definition of EMAIL_REGEXP was here
Configuration file: /home/john/Projects/lyricall/_config.yml
Source: /home/john/Projects/lyricall
Destination: /home/john/Projects/lyricall/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
done in 0.083 seconds.
Auto-regeneration: disabled. Use --watch to enable.
but this time site is build.
How can I make jekyll run and get rid of bundle exec errors ?
Thank you for help
I had this error during development You have already activated terminal-table 2.0.0, but your Gemfile requires terminal-table 1.8.0. Prepending bundle exec to your command may solve this. (Gem::LoadError)
All I had to do is,
bundle exec jekyll serve
This solved it.

NoMethodError: undefined method `plain_specs' for #<Bundler::RubygemsIntegration

I am new to actually very new. I am trying to run sinatra with jruby below is the tutorail I am try to follow,
http://www.ioncannon.net/programming/1325/getting-started-with-jruby-webapps-using-rack-and-sinatra/
I have installed everything accordingly but I am getting an exception below.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of org.jruby.util.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
NoMethodError: undefined method `plain_specs' for #<Bundler::RubygemsIntegration:0x55b62629 #replaced_methods={}>
setup at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:84
check at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:124
<main> at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:131
require at org/jruby/RubyKernel.java:984
(root) at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:135
<main> at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems_executable_plugin.rb:4
each at org/jruby/RubyArray.java:1792
run at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/executable-hooks-1.6.0/lib/executable-hooks/hooks.rb:50
<main> at /home/jahanzeb/.rvm/gems/jruby-9.2.6.0/bin/jruby_executable_hooks:10
I have gone through the related question but no results.
Please help

Tests failing in GCC

I'm starting to work with GCC. I downloaded the 4.4.2_release in Mac OSX and I'm running the tests through "make check-gcc" and many tests are failing, I thought that all tests of the test suite in a stable release should pass... so I have some questions:
Is it normal? Or maybe I've done something wrong?
Is there any default configuration that I can use for all the tests pass?
Thanks,
Adding more information requested:
This is the command line I used:
make check-gcc RUNTESTFLAGS="dg.exp"
Here is the summary of the results:
=== gcc Summary ===
expected passes 9265
unexpected failures 1700
unexpected successes 6
expected failures 66
unresolved testcases 45
unsupported tests 93
Here are some examples of the tests that are failing, from log file:
FAIL: gcc.dg/20011008-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20011008-1.c:4: warning:
declaration does not declare anything
FAIL: gcc.dg/20011130-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20011130-1.c:13: error: nested
functions are disabled, use -fnested-functions to re-enable
FAIL: gcc.dg/20031223-1.c (test for errors, line 10) FAIL:
gcc.dg/20031223-1.c (test for warnings, line 10) FAIL:
gcc.dg/20031223-1.c (test for errors, line 10) FAIL:
gcc.dg/20031223-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20031223-1.c:10: error:
expected expression before 'int'
FAIL: gcc.dg/20041213-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:5: error:
conflicting types for 'foo1'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:4: error:
previous declaration of 'foo1' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:8: error:
conflicting types for 'foo2'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:7: error:
previous declaration of 'foo2' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:11: error:
conflicting types for 'foo3'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:10: error:
previous definition of 'foo3' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:14: error:
conflicting types for 'foo4'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:13: error:
previous declaration of 'foo4' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:17: warning:
conflicting types for 'foo5'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:16: warning:
previous declaration of 'foo5' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:20: error:
conflicting types for 'foo6'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:19: error:
previous definition of 'foo6' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:23: error:
conflicting types for 'foo7'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:22: error:
previous definition of 'foo7' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:26: error:
conflicting types for 'foo8'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:25: error:
previous definition of 'foo8' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:29: warning:
conflicting types for 'foo9'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:28: warning:
previous implicit declaration of 'foo9' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:32: warning:
conflicting types for 'foo10'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:31: warning:
previous implicit declaration of 'foo10' was here
FAIL: gcc.dg/Warray-bounds-3.c (test for excess errors) Excess errors:
cc1: error: unrecognized command line option "-Warray-bounds"
FAIL: gcc.dg/binary-constants-2.c (test for excess errors) Excess
errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/binary-constants-2.c:12:5:
error: invalid suffix "b1101" on integer constant
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/binary-constants-2.c:15:10:
error: invalid suffix "b1101" on integer constant
FAIL: gcc.dg/boolcomplex-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/boolcomplex-1.c:3: error:
initializer element is not constant
FAIL: gcc.dg/builtins-30.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/builtins-30.c:10: warning:
declaration of 'cos' shadows a built-in function
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/builtins-30.c:17: warning:
declaration of 'sin' shadows a built-in function
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/builtins-30.c:24: warning:
declaration of 'cosl' shadows a built-in function

Rails/Actionpack: warning: already initialized constant ICS

trying to start Rails server and getting a "warning" I don't understand. Anyone know what it means? warning: already initialized constant ICS
Here it is in context:
meltemi$ rails s
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/Users/meltemi/.rvm/gems/ruby-1.9.3-p0#summit/gems/actionpack-3.1.3/lib/action_dispatch/http/mime_type.rb:101: warning: already initialized constant ICS
[2012-01-15 12:28:34] INFO WEBrick 1.3.1
[2012-01-15 12:28:34] INFO ruby 1.9.3 (2011-10-30) [x86_64-darwin11.2.0]
[2012-01-15 12:28:34] INFO WEBrick::HTTPServer#start: pid=61345 port=3000
It looks like the "ICS" mime type is getting declared twice. If you can find once instance where it's being declared, maybe in config/initializers/mime_types.rb you can tack on an unless clause to it like this:
Mime::Type.register "text/calendar", :ics unless Mime::Type.lookup_by_extension(:ics)
This should only register the mime type if it doesn't already exist.

Resources