invalid char '\220' in expression

M

MAwiniarski

Greetings,

Using Ruby in NetBeans I've got following error in separate cases with
gems:

<path>/<file>.so:1: Invalid char `\220' in expression.

What is it about ?

Thanks.
 
L

Lars Christensen

Using Ruby in NetBeans I've got following error in separate cases with
gems:

<path>/<file>.so:1: Invalid char `\220' in expression.

What is it about ?

By coincience, I stumbled over the exact same error message yesterday
while making a wrapper for some ruby scripts. It turned out I had
accidentally called ruby.exe with the ruby.exe executable as argument,
for example (simplified):

system("ruby c:\\ruby\\bin\\ruby.exe")

'\220' is 0x90 HEX and the third byte (after two ASCII chars) in a
Windows executable or DLL. Ruby doesn't like that when attempting to
parse an executable.

Hope it helps,
Lars
 
M

MAwiniarski

By coincience, I stumbled over the exact same error message yesterday
while making a wrapper for some ruby scripts. It turned out I had
accidentally called ruby.exe with the ruby.exe executable as argument,
for example (simplified):

    system("ruby c:\\ruby\\bin\\ruby.exe")

'\220' is 0x90 HEX and the third byte (after two ASCII chars) in a
Windows executable or DLL. Ruby doesn't like that when attempting to
parse an executable.

Hope it helps,
Lars

I'm using it with NetBeans Rails project, running Rake Task db:create
(already defined command).
 
M

MAwiniarski

By coincience, I stumbled over the exact same error message yesterday
while making a wrapper for some ruby scripts. It turned out I had
accidentally called ruby.exe with the ruby.exe executable as argument,
for example (simplified):

    system("ruby c:\\ruby\\bin\\ruby.exe")

'\220' is 0x90 HEX and the third byte (after two ASCII chars) in a
Windows executable or DLL. Ruby doesn't like that when attempting to
parse an executable.

Hope it helps,
Lars

Maybe *.so files needs to be saved in a different encoding (ASCII,
UTF, ...) ?
 
J

Jano Svitok

Maybe *.so files needs to be saved in a different encoding (ASCII,
UTF, ...) ?

so is usually renamed dll file (on windows) or the library itself (on
linux), so no encoding change needed.
What are you doing when you get this error?
 
M

MAwiniarski

While using gems with NetBeans,


I've created new Rails Project
then generated Scaffold
then I want to create database
using Rake Task db:create :

and gets:

...
.../mysql.so:1: Invalid char `\220' ('<square>') in expression.

I've installed mysql ruby gem earlier. And mysql.so comes with this
gem.
 
M

MAwiniarski

The answer to topic question is to use pure Ruby interpreter in
NetBeans, NOT NetBeans' JRuby.

While using gems with NetBeans,

I've created new Rails Project
then generated Scaffold
then I want to create database
using Rake Task db:create :

and gets:

...
.../mysql.so:1: Invalid char `\220' ('<square>') in expression.

I've installed mysql ruby gem earlier. And mysql.so comes with this
gem.

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,649
Latest member
MargaretCo

Latest Threads

Top