Erlang/OTP Forums

Author Message

<  Open Telecom Platform (OTP)  ~  Problem with mysql or rather crypto to start in Windows

erland
Posted: Fri Mar 20, 2009 9:27 am Reply with quote
Joined: 19 Mar 2009 Posts: 3
I have a problem with trying to use the mysql driver available on google code (http://code.google.com/p/erlang-mysql-driver/

I have the windows installation of erlang (tried both with R12B-5 and R13A) on my PC running on Windows XP.

When try to connect to my database it fails.
I have searched the web for hints and found others with similar problems. It seems that the crypto driver is not compiled or linked properly for my machine.

Somewhere on the web I found the following test to verify if crypto works:

4> crypto:start(),
4> crypto:sha("abc").

=PROGRESS REPORT==== 20-Mar-2009::10:14:01 ===
supervisor: {local,crypto_sup}
started: [{pid,<0.61.0>},
{name,crypto_server},
{mfa,{crypto_server,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 20-Mar-2009::10:14:01 ===
application: crypto
started_at: nonode@nohost
<<169,153,62,54,71,6,129,106,186,62,37,113,120,80,194,108,
156,208,216,157>>

On my machine I get the following:

13> crypto:start(),
13> crypto:sha("abc").

=INFO REPORT==== 19-Mar-2009::21:38:13 ===
application: crypto
exited: {shutdown,{crypto_app,start,[normal,[]]}}
type: temporary
** exception error: bad argument
in function port_control/3
called as port_control(crypto_drv02,5,"abc")
in call from crypto:control/2
14>

I found some other information on the web on how to check if the crypto_drv.dll was loaded properly.

7> erl_ddll:start(),
7>
7> PrivDir = code:priv_dir(crypto),
7>
7> LibDir1 = filename:join([PrivDir, "lib"]),
7>
7> ls(LibDir1).
crypto_drv.dll
ok
8>
8> Mess = erl_ddll:load_driver(LibDir1, crypto_drv).
{error,{open_error,-136}}
9>
9> {_, Err} = Mess.
{error,{open_error,-136}}
10>
10> erl_ddll:format_error( Err).
"The specified module could not be found."
11>

Looking at this is looks like the file location is correct but the file can not be loaded.

Any suggestions what to do?
Is the crypto_drv.dll not correct linked/compiled for my machine?
If so where can I find a new?

BR,
/Erland.
View user's profile Send private message
erland
Posted: Wed Sep 09, 2009 10:45 am Reply with quote
Joined: 19 Mar 2009 Posts: 3
Hi,
Managed to get help somewhere else on the matter.

The problem was solved by installing OpenSSL:
http://www.slproweb.com/products/Win32OpenSSL.html

Also needed to install the "Visual C++ 2008 Redistributables".

/Erland.
View user's profile Send private message
wuji
Posted: Thu Aug 30, 2012 6:55 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
sk of eradicating it becomes no less daunting than expunging expunging cheap Ralph Lauren expunging false or hurtful information posted about you by others.Your
becomes part of what author Matt Ivester calls "your permanent permanent cheap polo shirts permanent record." His book "lol…OMG!" tells college students and
how to undo (or to avoid making) mistakes they may may cheap polo shirts may later regret—embarrassments, say, that do permanent damage their employment
trying to do damage control, Ivester and others say, should should [h1]cheap replica *beep*[/h1] should consider the following steps: 'Superstitious Fund'
Money in Month TwoFund That Trades on Superstitions Down 9.5 9.5 [h4]replica designer bags for sale[/h4] 9.5 Percent After Two MonthsBy SUSANNA KIMJuly 31, 2012— If
invested in stocks purely based on superstitions like avoiding Friday Friday cheap jordan shoes Friday the 13th or lucky numbers, would you end up
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum