|
|
| Author |
Message |
|
| Guest |
Posted: Mon Feb 26, 2007 11:55 pm |
|
|
|
Guest
|
Hello!
I just downloaded the mysql modules from svn
There are no instructions on how to build them. Sorry, but I have not
heard of ERlang untill yesterday.
How do I build these .beam files from the .erl files?
Please tell me how to do this
thank you.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Feb 27, 2007 12:05 am |
|
|
|
Guest
|
Hi,
> I just downloaded the mysql modules from svn
> There are no instructions on how to build them. Sorry, but I have not
> heard of ERlang untill yesterday.
> How do I build these .beam files from the .erl files?
>
I've only done this with Linux as I don't have experience with the
Microsoft toolchain...
I downloaded the source from the repository and then I ran
cd ejabberd/src
./configure
make
This built the erl files into the .beam compiled files - modifying any
of the files required another make.
> Please tell me how to do this
> thank you.
Thanks,
Kev
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Feb 27, 2007 12:05 am |
|
|
|
Guest
|
Am Dienstag, 27. Februar 2007 00:55 schrieb Dmitri:
> |
|
|
| Back to top |
|
| Guest |
Posted: Tue Feb 27, 2007 1:38 am |
|
|
|
Guest
|
Kevin Jackson wrote:
> Hi,
>
>> I just downloaded the mysql modules from svn
>> There are no instructions on how to build them. Sorry, but I have not
>> heard of ERlang untill yesterday.
>> How do I build these .beam files from the .erl files?
>>
>
> I've only done this with Linux as I don't have experience with the
> Microsoft toolchain...
>
> I downloaded the source from the repository and then I ran
> cd ejabberd/src
> ./configure
> make
>
> This built the erl files into the .beam compiled files - modifying any
> of the files required another make.
>
>> Please tell me how to do this
>> thank you.
>
>
> Thanks,
> Kev
> _______________________________________________
> ejabberd mailing list
> ejabberd@jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
>
Well, I want to install it on linux server which is at a hosting
company, so I have ssh and ftp access but no GUI.
this is fine for ./configure and make for the ejabberd itself, but I
was asking about the mysql odbc module with is a separate download from
svn and it has 4 .erl files, one Makefile.in and one mysql.hrl
the instruction mentions only where to copy the .beam files, I suppose
after they have been build, but I need to know exactly how to build
them, I mean do I just run 'make' (there is no configure script)
or do I need to use some sort of ERlang specific compiler?
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Feb 27, 2007 7:35 pm |
|
|
|
Guest
|
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?
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Feb 28, 2007 1:42 am |
|
|
|
Guest
|
>From where you downloaded the ejabberd from svn, go into the src
directory and read the install instructions - for me it said
./configure & make finally make install
When ejabberd is installed the lib files (beam) are in
/usr/lib/erlang/ebin & /usr/lib/ejabberd-1.1.3/ebin odbc specific libs
will be in /usr/lib/ejabberd-1.1.3/ebin too
Here are the instructions I wrote for my team - edited to remove stuff
that isn't important for other projects:
How top compile erlang source code (odbc_queries.erl)
1 - install the following packages for your system:
* zlib 1.2.3 or greater (and zlib-devel)
* openssl 0.9.6 or greater (and openssl-devel)
* libexpat 1.9.5 or greater
* GNU Iconv 1.8 or higher
* binutils
* make
* gcc
* Erlang-OTP R9C-2 or higher
* erlang-base (or erlang-base-hipe)
* erlang-dev
* erlang-src
* erlang
2 - check out ejabberd src from repository
svn co http://svn.process-one.net/ejabberd/trunk ~/ejabberd
3 - configure build
cd ~/ejabberd/src
./configure
4 - check odbc/Makefile
This file may be broken (ie won't compile our code), if so edit it to
fix the Makefile (./configure will create the makefile for you)
5 - Filter source with Ant (you won't need this step as it's only a
requirement for my team)
6 - Copy altered file to ejabberd/src (again unnecessary for you)
7 - Compile new file
cd ~/ejabberd/src
make
8 - Find newly compiled .beam file (or files)
cd ~/ejabberd/src => odbc_queries.beam
Kev
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Feb 28, 2007 6:35 am |
|
|
|
Guest
|
Hello,
remember that the mysql module is compiled and provided with the binary installer.
--
Mickael R |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|