[ruby-trunk - Bug #9169][Open] `require': cannot load such file -- date_core (LoadError) (ruby-2.0.0

Issue #9169 has been reported by 774 (Yasuhiro Nakayama).


Bug #9169: `require’: cannot load such file – date_core (LoadError)
(ruby-2.0.0-p353)
https://bugs.ruby-lang.org/issues/9169

Author: 774 (Yasuhiro Nakayama)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p353 (2013-11-22) [i686-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

When building ruby-2.0.0-p353, the following message appeared.

Searching for files in directory /var/tmp/ruby-2.0.0-p353
Version of /var/tmp/ruby-2.0.0-p353/addr2line.c :
/var/tmp/ruby-2.0.0-p353/.ext/common/date.rb:3:in require': cannot load such file -- date_core (LoadError) from /var/tmp/ruby-2.0.0-p353/.ext/common/date.rb:3:in<top
(required)>’
from /var/tmp/ruby-2.0.0-p353/lib/time.rb:1:in require' from /var/tmp/ruby-2.0.0-p353/lib/time.rb:1:in<top
(required)>’
from /var/tmp/ruby-2.0.0-p353/tool/vcs.rb:3:in require' from /var/tmp/ruby-2.0.0-p353/tool/vcs.rb:3:in<top
(required)>’
from ./tool/file2lastrev.rb:7:in require' from ./tool/file2lastrev.rb:7:in
no version available

I think need to resolve this problem, load path required. For example,

diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 56e1b9f…d17ae24 100755
— a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

+$:.unshift File.join(File.dirname(FILE), ‘…’, ‘ext’, ‘lib’,
‘date’)
require ‘optparse’

this file run with BASERUBY, which may be older than 1.9, so no

Issue #9169 has been updated by 774 (Yasuhiro Nakayama).

Wow, thank you for your quick response!
I hope this change backporting to branch ruby_2_0_0 of svn repo.
Can I help you?


Bug #9169: `require’: cannot load such file – date_core (LoadError)
(ruby-2.0.0-p353)
https://bugs.ruby-lang.org/issues/9169#change-43222

Author: 774 (Yasuhiro Nakayama)
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p353 (2013-11-22) [i686-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

When building ruby-2.0.0-p353, the following message appeared.

Searching for files in directory /var/tmp/ruby-2.0.0-p353
Version of /var/tmp/ruby-2.0.0-p353/addr2line.c :
/var/tmp/ruby-2.0.0-p353/.ext/common/date.rb:3:in require': cannot load such file -- date_core (LoadError) from /var/tmp/ruby-2.0.0-p353/.ext/common/date.rb:3:in<top
(required)>’
from /var/tmp/ruby-2.0.0-p353/lib/time.rb:1:in require' from /var/tmp/ruby-2.0.0-p353/lib/time.rb:1:in<top
(required)>’
from /var/tmp/ruby-2.0.0-p353/tool/vcs.rb:3:in require' from /var/tmp/ruby-2.0.0-p353/tool/vcs.rb:3:in<top
(required)>’
from ./tool/file2lastrev.rb:7:in require' from ./tool/file2lastrev.rb:7:in
no version available

I think need to resolve this problem, load path required. For example,

diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 56e1b9f…d17ae24 100755
— a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

+$:.unshift File.join(File.dirname(FILE), ‘…’, ‘ext’, ‘lib’,
‘date’)
require ‘optparse’

this file run with BASERUBY, which may be older than 1.9, so no

Issue #9169 has been updated by nobu (Nobuyoshi N.).

Category set to build
Status changed from Closed to Assigned
Assignee set to nobu (Nobuyoshi N.)
% Done changed from 100 to 0
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED,
2.0.0: REQUIRED


Bug #9169: `require’: cannot load such file – date_core (LoadError)
(ruby-2.0.0-p353)
https://bugs.ruby-lang.org/issues/9169#change-43223

Author: 774 (Yasuhiro Nakayama)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi N.)
Category: build
Target version:
ruby -v: ruby 2.0.0p353 (2013-11-22) [i686-linux]
Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED

When building ruby-2.0.0-p353, the following message appeared.

Searching for files in directory /var/tmp/ruby-2.0.0-p353
Version of /var/tmp/ruby-2.0.0-p353/addr2line.c :
/var/tmp/ruby-2.0.0-p353/.ext/common/date.rb:3:in require': cannot load such file -- date_core (LoadError) from /var/tmp/ruby-2.0.0-p353/.ext/common/date.rb:3:in<top
(required)>’
from /var/tmp/ruby-2.0.0-p353/lib/time.rb:1:in require' from /var/tmp/ruby-2.0.0-p353/lib/time.rb:1:in<top
(required)>’
from /var/tmp/ruby-2.0.0-p353/tool/vcs.rb:3:in require' from /var/tmp/ruby-2.0.0-p353/tool/vcs.rb:3:in<top
(required)>’
from ./tool/file2lastrev.rb:7:in require' from ./tool/file2lastrev.rb:7:in
no version available

I think need to resolve this problem, load path required. For example,

diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 56e1b9f…d17ae24 100755
— a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

+$:.unshift File.join(File.dirname(FILE), ‘…’, ‘ext’, ‘lib’,
‘date’)
require ‘optparse’

this file run with BASERUBY, which may be older than 1.9, so no

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs