[ejabberd] How to compile mysql modules?

Dmitri project1 at sharedlog.com
Tue Feb 27 22:34:18 MSK 2007


Tilman Bender wrote:

>Am Dienstag, 27. Februar 2007 15:53 schrieb Dmitri:
>  
>
>>I also don't know what is the purpose of mysql.hrl file
>>here is the complete contents of that mysql.hrl: (I wonder what it's for?)
>>%% MySQL result record:
>>-record(mysql_result,
>>    {fieldinfo=[],
>>     rows=[],
>>     affectedrows=0,
>>     error=""}).
>>    
>>
>
>That looks to me like mysql.hrl is a header file that defines the erlang 
>pendant for a struct or something alike. This seems to describe the structure 
>of a record returned by mysql. 
>As it is a header file all others will propably need it for correct 
>compilance.
>
>Did you get it done in the end?
>
>regards
>er4z0r
>  
>
I'm not done yet. So far I compiled module one by one using the erlc command
I got the 4 .beam files now.

Now I'm not sure where to place them. I have not compiled the ejabberd 
yet, so I don't have any other .beam files.
Can I place these in /usr/lib?





More information about the ejabberd mailing list