jeremycole / innodb_ruby

A parser for InnoDB file formats, in Ruby
http://rubygems.org/gems/innodb_ruby
Other
1.69k stars 314 forks source link

innodb_space:754: syntax error, unexpected '.' #193

Closed myabce closed 9 months ago

myabce commented 10 months ago

/root/innodb_ruby-master/bin/innodb_space -f abc/t1.ibd space-indexes

/root/innodb_ruby-master/bin/innodb_space:754: syntax error, unexpected '.' ...innodb_system.data_dictionary&.each_data_dictionary_index do... ... ^ /root/innodb_ruby-master/bin/innodb_space:1645: syntax error, unexpected '.' ...(Innodb::Page::Index) && page&.root? ... ^

hostnamectl

Static hostname: vm1 Icon name: computer-vm Chassis: vm Machine ID: 2008ec27d9ce57718c5d875e1245333e Boot ID: bf593b5f8b204a345d5ecc766893fcd2 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.71.1.el7.x86_64 Architecture: x86-64

jeremycole commented 9 months ago

It would appear that you're attempting to use a very old version of Ruby, before 2.3 when the safe navigation operator (&.) was introduced. That's definitely not going to work.