Gentoo It Seems Your Ruby Installation Is Missing Psych

That's been removed in Ruby 1.9. Dec 9 09:17:08 narfy-2102 systemd: logstash.service: main process exited, code=exited, status=1/FAILURE Dec 9 09:17:08 narfy-2102 systemd: Unit logstash.service entered failed state.

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time. Hello, I just recently re-installed RVM, and I got the message 'It seems your ruby installation is missing psych (for YAML output)', and no matter what I did (see below), I couldn't get rid of that message. Also experiencing this issue on gentoo. The command @bbck mentioned worked for me with a minor correction. Note, use full paths in place of /. It seems your ruby. Download a full MineMap 90 day Free licence. Navigate the list of applications until you locate Surpac – Quarry Edition 6. To improve search results for Surpac try to exclude using words such as: Many downloads like Surpac may also include a crack, serial number.

Backport #5492

closed
Closed
Normal
[ruby-core:40462]

Description

This is a regression since at least the preview release, not sure about the rc1 release. Using MinGW to make and then make install Ruby on Windows 7 now creates the following bin directory:

bin
erb
.bat
gem
.bat

etc.

Notice the file should be 'erb.bat', not a 'erb' sudirectory with a file called '.bat' in it. The same is true for:

erb
gem
irb
rake
rdoc
ri
testrb

This obviously breaks the installation...so marking it high priority.

Updated by jonforums (Jon Forums)over 9 years ago

How did you build it?

I'm guessing you tried a plain-vanilla build rather than using the RubyInstaller recipes as I got a normal looking bin dir for ruby 1.9.3dev (2011-10-11 revision 33457) [i386-mingw32]

I'm going to try both a RubyInstaller recipe and plain-vanilla build again to double-check.

Updated by cfis (Charlie Savage)over 9 years ago

Plain vanilla build using mingw + msys (same setup I've used the last couple years).

$ ./configure --prefix=/ --enable-shared CPPFLAGS=-Ic:/MinGW/local/include LDFLAGS=-Lc:/MinGW/local/lib
$ make
$ make install DESTDIR=c:/MinGW/local/ruby193

Updated by jonforums (Jon Forums)over 9 years ago

I can't replicate with a plain vanilla mingw + msys via cmd.exe...very odd.

C:UsersJonDocumentsRubyDevruby-git>git co ruby_1_9_3
Switched to branch 'ruby_1_9_3'

Gentoo it seems your ruby installation is missing psychic

C:UsersJonDocumentsRubyDevruby-git>DevKitdevkitvars.bat
Adding the DevKit to PATH...

Seems

C:UsersJonDocumentsRubyDevruby-git>sh -c 'autoconf'

C:UsersJonDocumentsRubyDevruby-git>cd build

C:UsersJonDocumentsRubyDevruby-gitbuild>sh -c '../configure --enable-shared --disable-install-doc --prefix=C:/Users/Jon/Downloads/temp/ruby193'

C:UsersJonDocumentsRubyDevruby-gitbuild>make

C:UsersJonDocumentsRubyDevruby-gitbuild>make install
./miniruby.exe -I../lib -I. -I.ext/common ../tool/rbinstall.rb --make='make'
--dest-dir=' --extout='.ext' --mflags=' --make-flags=' --data-mode=0644
--prog-mode=0755 --installed-list .installed.list --mantype='man'
...

C:UsersJonDownloadstempruby193>tree /f bin
Folder PATH listing
Volume serial number is 00000002 9601:587A
C:USERSJONDOWNLOADSTEMPRUBY193BIN
erb.bat
gem.bat
irb.bat
msvcrt-ruby191.dll
rake.bat
rdoc.bat
ri.bat
ruby.exe
rubyw.exe
testrb.bat

No subfolders exist

C:UsersJonDownloadstempruby193>set PATH=bin;%PATH%

C:UsersJonDownloadstempruby193>ruby --version
ruby 1.9.3dev (2011-10-11 revision 33457) [i386-mingw32]

C:UsersJonDownloadstempruby193>erb --version
erb.rb [2.1.0 $]

C:UsersJonDownloadstempruby193>gem --version
C:/Users/Jon/Downloads/temp/ruby193/lib/ruby/1.9.1/yaml.rb:56:in `':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
1.8.11

Gentoo It Seems Your Ruby Installation Is Missing Psychic

Updated by jonforums (Jon Forums)over 9 years ago

fwiw, my msys + mingw (DevKit) consists of:

https://github.com/oneclick/rubyinstaller/blob/master/config/devkit.rb#L27-61
https://github.com/oneclick/rubyinstaller/blob/master/config/compilers/tdm_mingw.rb#L45-85

Updated by jonforums (Jon Forums)over 9 years ago

oops...my mingw (gcc 4.6.1) really consists of:

Updated by phasis68 (Heesob Park)over 9 years ago

I have same issues as above.

Gentoo It Seems Your Ruby Installation Is Missing Psychiatrist

If you specify configure prefix as '/', the line #444 of tool/rbinstall.rb produce incorrect result
cmd = File.join(File.dirname(cmd), RbConfig.expand(trans[File.basename(cmd)]))
input -> '//bin/erb'
output -> '//bin/erb/'

This bug is related with File.dirname and File.basename behavior like this:
irb(main):005:0> File.dirname('//bin/erb')
=> '//bin/erb'
irb(main):006:0> File.basename('//bin/erb')
=> '/'
irb(main):007:0> File.dirname('/bin/erb')
=> '/bin'
irb(main):008:0> File.basename('/bin/erb')
=> 'erb'

Updated by nobu (Nobuyoshi Nakada)over 9 years ago

Thnk you for figuring out.

Heesob Park wrote:

If you specify configure prefix as '/', the line #444 of tool/rbinstall.rb produce incorrect result
cmd = File.join(File.dirname(cmd), RbConfig.expand(trans[File.basename(cmd)]))
input -> '//bin/erb'
output -> '//bin/erb/'

The input is already wrong, as is a UNC path on Windows.
Can't you try with '--prefix=/.'?

Updated by cfis (Charlie Savage)over 9 years ago

Why is the input wrong? I'm fairly sure this used to work fine...

Updated by phasis68 (Heesob Park)over 9 years ago

Configuring with '--prefix=/.' works fine.

FYI, this issue introduced with r30228.

Updated by nobu (Nobuyoshi Nakada)over 9 years ago

Nobuyoshi Nakada wrote:

Can't you try with '--prefix=/.'?

Or `make install DESTDIR=/some/temporary/path'.

Updated by nobu (Nobuyoshi Nakada)over 9 years ago

Nobuyoshi Nakada wrote:

Or `make install DESTDIR=/some/temporary/path'.

Sorry, this should not affect.

Updated by nobu (Nobuyoshi Nakada)over 9 years ago

Gentoo It Seems Your Ruby Installation Is Missing Psychological

You can use empty prefix, i.e., `--prefix=', to install them underneath DESTDIR.

Updated by cfis (Charlie Savage)over 9 years ago

Would be nice if --prefix=/ worked, but --prefix= is ok also. I'm happy to have this closed.

Updated by nobu (Nobuyoshi Nakada)over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33566.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

  • tool/rbinstall.rb (install_recursive, bin-comm): split merestring not path name. [ruby-core:40462] [Bug #5492]

Updated by nobu (Nobuyoshi Nakada)over 9 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport193
  • Category deleted (build)
  • Status changed from Closed to Assigned
  • Assignee set to yugui (Yuki Sonoda)
  • Priority changed from 5 to 3
  • Target version deleted (1.9.3)

Low priority since the workaround is easy.

Updated by kosaki (Motohiro KOSAKI)over 9 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r34195.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

merge revision(s) 33566:

Actions

Also available in: AtomPDF

Bug #5560

closed

YAML installation not found and no /usr/local/lib/ruby/1.9.3

Closed
Normal
-
ruby 1.9.3p0 (2011-10-30 revision 33570) [i386-cygwin]
[ruby-core:<unknown>]

Description

I configured the source with '$ ./configure --program-suffix=19' (see attachment) and built it with gcc 4.5.3 and did 'make install'. Now this happens:

$ gem19 list -l
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.

*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.6.1, 1.5.4)
minitest (2.7.0, 2.5.1)
rake (0.9.2.2)
rdoc (3.11, 3.9.4)

I noticed that in file include/ruby/version.h the minor ('teeny') is set to '1':

/* API version */
#define RUBY_API_VERSION_MAJOR 1
#define RUBY_API_VERSION_MINOR 9
#define RUBY_API_VERSION_TEENY 1
#define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)

There are some entries in doc/ChangeLog-1.9.3 which mention API version changes involving '1.9.1' but since I am lacking context it is not clear to me what happened there.

Strangely enough there is no 1.9.3 directory in /usr/lib/ruby but there exists /usr/local/lib/ruby19 which has the same suffix as the one I used during configuring:

$ ls -la /usr/local/lib/ruby*
/usr/local/lib/ruby:
total 36
drwxr-xr-x+ 1 Robert None 0 May 14 11:08 ./
drwxr-xr-x+ 1 Robert root 0 Nov 2 23:46 ../
drwxr-xr-x+ 1 Robert None 0 Nov 2 23:47 1.9.1/
drwxr-xr-x+ 1 Robert None 0 May 14 11:08 gems/
drwxr-xr-x+ 1 Robert None 0 May 14 11:07 site_ruby/
drwxr-xr-x+ 1 Robert None 0 May 14 11:07 vendor_ruby/

/usr/local/lib/ruby19:
total 8
drwxr-xr-x+ 1 Robert None 0 May 14 11:00 ./
drwxr-xr-x+ 1 Robert root 0 Nov 2 23:46 ../
drwxr-xr-x+ 1 Robert None 0 Jan 5 2010 gems/
drwxr-xr-x+ 1 Robert None 0 May 14 11:00 site_ruby/
drwxr-xr-x+ 1 Robert None 0 May 14 11:00 vendor_ruby/

That's why I suspect a build issue.

I also notice that there is /usr/local/lib/ruby19/gems/1.9.1/gems/posix_mq-0.3.0 but this gem is not contained in the list of local gems (see above).

$ ls -l /usr/local/lib/ruby*/gems/*/gems
/usr/local/lib/ruby/gems/1.9.1/gems:
total 16
drwxr-xr-x+ 1 Robert None 0 Nov 2 23:48 json-1.6.1/
drwxr-xr-x+ 1 Robert None 0 Oct 29 14:59 minitest-2.7.0/
drwxr-xr-x+ 1 Robert None 0 Oct 29 14:59 rake-0.9.2.2/
drwxr-xr-x+ 1 Robert None 0 Oct 29 14:59 rdoc-3.11/
drwxr-xr-x+ 1 Robert None 0 Nov 2 23:47 rdoc-3.9.4/

/usr/local/lib/ruby19/gems/1.9.1/gems:
total 4
drwxr-xr-x+ 1 Robert None 0 Jan 10 2010 posix_mq-0.3.0/

Files

config.tbz2(32.3 KB)config.tbz2Archive containing config.log and config.status

Updated by rklemme (Robert Klemme)over 9 years ago

There is also http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/388429 - not sure whether these are related.

Updated by luislavena (Luis Lavena)over 9 years ago

API version is 1.9.1, so all the versioned directories inside Ruby 1.9.3 will be '1.9.1'

This is the same for Ruby 1.9.2, and was cleared up in Ruby 1.9.2 release FAQ:

Now, the missing psych warning is coming form RubyGems, which is complaining you don't have Psych build.

Psych is the default YAML parser on Ruby 1.9.3 and requires libyaml 0.1.3 or 0.1.4 to build.

Please install libyaml and build Ruby again.

As for 'posix_mq-0.3.0', it might come from your existing Ruby 1.9.x installation, since the output from 'gem19 list' is correct (these gems are bundled with Ruby)

Updated by rklemme (Robert Klemme)over 9 years ago

Luis, thank you for the information! Unfortunately libyaml is not a cygwin package so I'll have to compile it from source. Unfortunately I am struggling with other (apparently unrelated) issues with compilation on cygwin at the moment. I'll let you know once I remedy that. Maybe I can add a specific installation instruction for cygwin later.

Updated by rklemme (Robert Klemme)over 9 years ago

OK, I got it working. You can close the issue (apparently I can't).

How I did it: I fetched libyaml from http://pyyaml.org/wiki/LibYAML built and installed it with default settings (i.e. to /usr/local). Then configured Ruby with

$ export CPPFLAGS=-I/usr/local/include
$ export LDFLAGS=-L/usr/local/lib
$ ./configure --program-suffix=19

(Suffix to avoid collisions with the ruby 1.8.7 which is a cygwin package.)

Gentoo It Seems Your Ruby Installation Is Missing Psych

Finally 'make' and 'make install' as usually.

I checked README and NEWS file in the root directory of the distribution but could not find a list of prerequisites which must be present on the system. Maybe we can improve on that by delivering that list in a file INSTALLATION. What do you think?

Updated by ayumin (Ayumu AIZAWA)over 9 years ago

  • Status changed from Open to Closed

Also available in: AtomPDF