No such file to load openssl.so error on rhodes-1.5

163 views
Skip to first unread message

Poornima

unread,
Mar 8, 2010, 3:00:17 AM3/8/10
to rhomobile
Hi,

I downloaded rhodes1.5 unstable version today and i did,

rake run:iphone

i got the below error,

RhoRuby| require_compiled: net/https
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
net/http
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
net/protocol
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
timeout
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/common
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/generic
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/ftp
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/http
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/https
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/ldap
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/ldaps
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
uri/mailto
E 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
error: can not find zlib
I 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
openssl
E 02/08/2010 13:27:58 b0185000 RhoRuby| require_compiled:
error: can not find openssl.so
I 02/08/2010 13:27:58 b0185000 APP| App error: no
such file to load -- openssl.so


when i saw the into the gem folders i found openssl folder missing in
the extensions.
Please tell me how to proceed with this issue?


C.Poornima.


evgeny vovchenko

unread,
Mar 8, 2010, 3:16:26 AM3/8/10
to rhom...@googlegroups.com
In 1.5 you should use AsyncHttp(s)
Net/https is no longer supported

Hi,

rake run:iphone


C.Poornima.


--
You received this message because you are subscribed to the Google Groups
"rhomobile" group.
To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to
rhomobile+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rhomobile?hl=en.

Dmitry Moskalchuk

unread,
Mar 8, 2010, 3:18:40 AM3/8/10
to rhom...@googlegroups.com
Hi,

We are discontinued support of openssl extension due to legal problems. Why you are need it? If for net/https - use AsyncHttp interface instead http://wiki.rhomobile.com/index.php/Rhodes#AsyncHttp_.28since_1.5.29


Dmitry Moskalchuk

08.03.2010, в 11:00, Poornima написал(а):

Poornima

unread,
Mar 8, 2010, 4:19:19 AM3/8/10
to rhomobile
Hi,


I updated to 1.5 version today only, I included require' net/https'
in my controller, I did nothing change from my previous code.whether
if i remove that line it works?

C.Poornima

On Mar 8, 1:18 pm, Dmitry Moskalchuk <crys...@gmail.com> wrote:
> Hi,
>

> We are discontinued support of openssl extension due to legal problems. Why you are need it? If for net/https - use AsyncHttp interface insteadhttp://wiki.rhomobile.com/index.php/Rhodes#AsyncHttp_.28since_1.5.29

Poornima

unread,
Mar 8, 2010, 4:39:57 AM3/8/10
to rhomobile
Dmitry,

Can I use AsyncHttp on a direct call like accessing through API call
and rendering based on the response?
Does Rhodes-1.5 works on windows platform?
May i know when will be the official release of the gem?

C.Poornima.

evgeny vovchenko

unread,
Mar 8, 2010, 4:50:57 AM3/8/10
to rhom...@googlegroups.com
1.5 works on windows of course
Here is AsyncHttp(s) wiki:
http://wiki.rhomobile.com/index.php/Rhodes#AsyncHttp_.28since_1.5.29

You should remove 'require net/http(s)'
And remove extensions from build.yml

What is your data format? If it is JSON than AsyncHttp parsed it
automatically

-----Original Message-----
From: rhom...@googlegroups.com [mailto:rhom...@googlegroups.com] On
Behalf Of Poornima

Poornima

unread,
Mar 8, 2010, 5:56:40 AM3/8/10
to rhomobile
I removed all Https/Http stuff and used only AsyncHttp,it seems to be
working but when I tried to use Rho::AsyncHttp.get on my external
library ie in lib folder it throwing the error,

Error: undefined method `url_for'

Does AsyncHttp supports on External Libraries or not?


C.Poornima

On Mar 8, 2:50 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>
wrote:

Dmitry Moskalchuk

unread,
Mar 8, 2010, 8:05:01 AM3/8/10
to rhom...@googlegroups.com
Of course, you can. The error actually is in using 'url_for' method
which is undefined outside of RhoController. To use it in external
library you need specify it's full name: 'Rho::RhoController::url_for'.


Dmitry Moskalchuk

08.03.2010, в 13:56, Poornima написал(а):

Poornima

unread,
Mar 8, 2010, 8:40:46 AM3/8/10
to rhomobile
Dmitry,

iam getting same error,

Error: undefined method `url_for' for Rho::RhoController::Class.
I included the header too
require 'rho'
require 'rho/rhocontroller' in my library

Also when I tried to parse using Rho::JSON.parse(@params['body']) it
throwing the error


Can you tell how can i parse JSON?

C.Poornima

C.Poornima

Dmitry Moskalchuk

unread,
Mar 8, 2010, 9:22:31 AM3/8/10
to rhom...@googlegroups.com, Poornima
You need to add
require 'rho/rhoviewhelpers.rb'
to use url_for in external library

Regarding JSON problem - what the error you've seen?

Dmitry Moskalchuk

evgeny vovchenko

unread,
Mar 8, 2010, 9:59:47 AM3/8/10
to rhom...@googlegroups.com
AsyncHttp parse JSON body automatically, see wiki
@params['body'] contain parsed data

-----Original Message-----
From: rhom...@googlegroups.com [mailto:rhom...@googlegroups.com] On
Behalf Of Poornima
Sent: Monday, March 08, 2010 4:41 PM
To: rhomobile
Subject: [rhomobile] Re: No such file to load openssl.so error on rhodes-1.5

Dmitry,

iam getting same error,

Poornima

unread,
Mar 8, 2010, 10:28:16 AM3/8/10
to rhomobile
Dmitry,

Seems to be not working any thing i made mistake? please guide me.

i added
require 'rho/rhoviewhelpers'
but still iam getting the error

this is my method what i used in my library,

def get_response(url_path)
res = Rho::AsyncHttp.get(:url => url_path, :callback =>
( url_for :action => :httpget_callback ), :callback_param => "" )
response = Rho::JSON.parse(res)
response
end

Error: undefined method `url_for' for #

also when i tried to parse i am getting the error,

Error: undefined method `parse' for Rho::JSON Class


C.Poornima

On Mar 8, 7:59 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>

evgeny vovchenko

unread,
Mar 8, 2010, 11:06:14 AM3/8/10
to rhom...@googlegroups.com
Rho::RhoController::url_for

Again, you don't have to parse json body, it is already parsed

Read wiki pls:
http://wiki.rhomobile.com/index.php/Rhodes#AsyncHttp_.28since_1.5.29

AsyncHttp.get dow not retrun any result
You should define callback

Poornima

unread,
Mar 9, 2010, 12:33:27 AM3/9/10
to rhomobile

Hi,

Iam getting the below as my AsyncHttp result,

{"rho_callback"=>"1", "status"=>"ok", "headers"=>{"Connection"=>"Keep-
Alive", "Content-Type"=>"text/html; charset=UTF-8", "Date"=>"Tue, 09
Mar 2010 05:22:44 GMT", "Keep-Alive"=>"timeout=15, max=100",
"Server"=>"Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.5 mod_ssl/2.2.4
OpenSSL/0.9.8e JRun/4.0", "Transfer-Encoding"=>"chunked"},
"body"=>"{\"ERRORARRAY\":[],\"ACTION\":\"action\",\"DATA\":{\"USERNAME
\":\"abc\",\"KEY\":\"abc\"}}"}

body is coming in JSON format I want to parse and render when I use

Rho::JSON.parse(@params['body']) throwing,

App error: undefined method `parse' for Rho::JSON:Class

How to parse in this case?

C.Poornima

On Mar 8, 9:06 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>

Adam Blum

unread,
Mar 9, 2010, 1:10:25 AM3/9/10
to rhom...@googlegroups.com, rhomobile
Poornima,

I think what Evgeny is suggesting is that you don't need to parse.
It's already a usable hash.

Adam

Sent from my iPhone

>> For more options, visit this group athttp://groups.google.com/group/

evgeny vovchenko

unread,
Mar 9, 2010, 1:38:02 AM3/9/10
to rhom...@googlegroups.com
Hi,
Yes, it was a bug. Fixed in 1-5-unstable. Get update

Why content-type is text/html? Is it your webservice? It should be
application/json
In this case it will be parsed by AsyncHttp

Regards,
Evgeny.

-----Original Message-----
From: rhom...@googlegroups.com [mailto:rhom...@googlegroups.com] On
Behalf Of Poornima
Sent: Tuesday, March 09, 2010 8:33 AM
To: rhomobile
Subject: [rhomobile] Re: No such file to load openssl.so error on rhodes-1.5

Poornima

unread,
Mar 9, 2010, 3:48:12 AM3/9/10
to rhomobile
Dear Evgeny,

Have just checked the APIs - thats not our APIs unfortunately.
The API is returning the Content Type as text/html only. OR is there a
way to specify the content-type of the API result to the API call, so
that the automatic parsing will happen?
I agree with you that the content type should have been JSON.

Now whats the solution?

Why this is not working?
Rho::JSON.parse(@params['body'])
Are you saying this was a bug and now got fixed in 1.5?

thanks for your help
Best Regards
Poornima

On Mar 9, 11:38 am, "evgeny vovchenko" <evgenyvovche...@gmail.com>
wrote:

> ...
>
> read more >>

evgeny vovchenko

unread,
Mar 9, 2010, 3:54:09 AM3/9/10
to rhom...@googlegroups.com
Yes. It is fixed. So use Rho::JSON.parse
the same method is called by AsyncHttp

Poornima

unread,
Mar 9, 2010, 5:00:39 AM3/9/10
to rhomobile
Thanks for your help.Its Working now.

C.Poornima.

On Mar 9, 1:54 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>

> ...
>
> read more >>

Egghead

unread,
Oct 5, 2012, 9:10:55 AM10/5/12
to rhom...@googlegroups.com
What's your use case that cannot be accomplished with Phonegap?

Suresh Kumar

unread,
Oct 5, 2012, 9:27:26 AM10/5/12
to rhom...@googlegroups.com
Hi,
 
We have below Business Case to satisfy
 
1) Only One Build - Deploy in Multiple Mobile Platform
 
2) Capture Photo & Send to external server
 
3) Google Map as My Current Location
 
4) Barcode Scanner
 
We are successfuly did for all the three (1-3) in 3 different Mobile Plaforms (WINDOWS, ANDROIDS, BLACKBERRY) but when we integrate with Barcode Scanner plugin, we are failed in Point # 1. That is, we need to take 3 build to satisfy the Barcode Scanner Business Case. So we are in turn looking for alternate mobile framework to support. Otherwise we are very much happy & satisfied with PG. As PG does not support plugins currently we are lacking of our requirements.
 
Thanks & Regards,
S.Suresh Kumar
 
 
 
 


 
On Fri, Oct 5, 2012 at 6:40 PM, Egghead <mark.no...@gmail.com> wrote:
What's your use case that cannot be accomplished with Phonegap?
--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/2C23pweTmLwJ.

Adam Blum

unread,
Oct 5, 2012, 9:50:05 AM10/5/12
to rhom...@googlegroups.com, rhom...@googlegroups.com
The answer is yes to all three questions

 See Jon Tara's recent post about differences between PhoneGap and Rhodes. His analogy is better than anything I've come up with. PhoneGap is a good product but only tries to do a tiny fraction of what Rhodes offers. 

Sent from my iPhone

On Oct 5, 2012, at 12:12 AM, Suresh Kumar Saminathan <suresh.s...@gmail.com> wrote:

Hi Team,

I have worked with PhoneGap for the past 4 months, due to one business case, i am looking for alternate mobile framework. Can any one answer my below questions.

1) Whether "RhoMobile" File Transfer API Supports in Android, BB & Windows Phone OS.

2) Whether "RhoMobile" Camera API feature works in  Android, BB & Windows Phone OS. 

3) Whether "RhoMobile" Barcode Scanner feature works in  Android, BB & Windows Phone OS. 

And main thing, i should able to achieve this features in one build. 

Please give your valid inputs.

Thanks & Regards,
S.Suresh Kumar
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/oQhm5hJkbnEJ.

Suresh Kumar

unread,
Oct 8, 2012, 2:29:58 AM10/8/12
to rhom...@googlegroups.com
Adam,
 
Thanks for your valuable information.Where can i see working examples for all these three samples.
 
Please guide us.
 
Thanks & Regards,
S.Suresh Kumar

Reply all
Reply to author
Forward
0 new messages