Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: paco on January 12, 2014, 05:41:49 AM

Title: erlang
Post by: paco on January 12, 2014, 05:41:49 AM
Hi,

i find erlang in x86 4.x repositories.

Could it be included in 5.x (my prefered platforms would be x86 and piCore).

Cheers,
Patrick

[Finally I'd like to get rabbitmq up and running]
Title: Re: erlang
Post by: Juanito on January 12, 2014, 06:49:25 AM
it looks like it would need recompiling against openssl-1.0.0, maybe you could pm the maintainer?
Title: Re: erlang
Post by: bmarkus on January 12, 2014, 06:51:06 AM
Regarding piCore will try to build.
Title: Re: erlang
Post by: bmarkus on January 13, 2014, 03:23:19 AM
erlang.tcz is in the piCore 5.x repo. It is build without ncurses and wxWidgets. I'm not familiar with erlang so can't test the build. Please try and let me know the rwsult.
Title: Re: erlang
Post by: paco on January 13, 2014, 12:39:45 PM
Hi Markus,

that was fast. Thank you.

I am not familiar with erlang either, but I was able to build and run rabbitmq. The next days I will do some more testing and keep you informed.

Cheers,
Patrick

Title: Re: erlang
Post by: bmarkus on January 13, 2014, 01:04:39 PM
You are welcome. Good to hear it works :)
Title: Re: erlang
Post by: paco on January 26, 2014, 08:33:26 AM
Hello Markus,

erlang.tcz is quite huge (~120M). Would it be possible to divide the package in

I tried to understand the directory structure and checked debian build-scripts. IMO following files (~50M) could be moved to a dev package easily:

I am unsure about /usr/local/lib/erlang/lib/*/includes/, as debian leaves it for stdlib and kernel.

What do you think?

Cheers,
Patrick
Title: Re: erlang
Post by: bmarkus on January 26, 2014, 12:26:49 PM
Patrick

thanks for helping. I will separate it on the usual way, but wanted to have some feedbasck that it works and worth the invetsment :)

Bela
Title: Re: erlang
Post by: paco on February 09, 2014, 03:42:29 PM
Compiling rabbitmq worked - but I found an easier solution to get it running, using erlang runtine only. See as well http://www.rabbitmq.com/install-generic-unix.html (http://www.rabbitmq.com/install-generic-unix.html).

Requirements: erlang.tcz

Download generic linux package, and untar it:
Code: [Select]
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.2.3/rabbitmq-server-generic-unix-3.2.3.tar.gz
tar -zxvf rabbitmq-server-generic-unix-3.2.3.tar.gz
rm -f rabbitmq-server-generic-unix-3.2.3.tar.gz

Remove installation notes and move licence terms to appropriate folder:
Code: [Select]
rm -f rabbitmq_server-3.2.3/INSTALL
mkdir -p rabbitmq_server-3.2.3/share/licences/rabbitmq_server
mv rabbitmq_server-3.2.3/LICENSE* rabbitmq_server-3.2.3/share/licences/rabbitmq_server/

Afterwards store results:
Code: [Select]
backup

Installation (I'll put this in bootlocal):
Code: [Select]
sudo cp -R rabbitmq_server-3.2.3/* /usr/local/

Start server with Web-Management (Port 15672, guest:guest):
Code: [Select]
sudo rabbitmq-plugins enable rabbitmq_management
sudo rabbitmq-server

Works perfectly!
Title: Re: erlang
Post by: paco on February 09, 2014, 03:45:18 PM
Using the directory structure from my last post, I tried to build a squashfs:

Code: [Select]
mkdir -p rabbitmq/usr/local/
mv rabbitmq_server-3.2.3/* rabbitmq/usr/local/
mksquashfs rabbitmq/ rabbitmq.tcz

I loaded with:
Code: [Select]
tce-load -i rabbitmq.tcz

....but running it gives following error message:
Code: [Select]
tc@box:~$ sudo rabbitmq-plugins enable rabbitmq_management
Error: {cannot_write_enabled_plugins_file,
           "/tmp/tcloop/rabbitmq/usr/local/sbin/../etc/rabbitmq/enabled_plugins",
           erofs}
Title: Re: erlang
Post by: gerald_clark on February 09, 2014, 03:51:51 PM
Your program is trying to write to a file referenced using a relative path.
That path is in the non-writable squashfs.
Title: Re: erlang
Post by: paco on February 10, 2014, 01:31:38 PM
I found a solution for a tcz:

On https://www.rabbitmq.com/relocate.html (https://www.rabbitmq.com/relocate.html) in section "Generic Unix Default Locations" you can find all files written to disk during runtime. All path depend on the variable RABBITMQ_HOME. Just defining this variable did not work.

As suggested on https://www.rabbitmq.com/install-generic-unix.html (https://www.rabbitmq.com/install-generic-unix.html) in section "File Locations" I patched sbin/rabbitmq-defaults:
Code: [Select]
SYS_PREFIX=/usr/local
I will do some more testing with this configuration. Coming back to my original post: Erlang for PiCore seems to work fine!
Title: Re: erlang
Post by: paco on May 24, 2014, 09:01:52 AM
Hi Markus,

thanks for helping. I will separate it on the usual way, but wanted to have some feedbasck that it works and worth the invetsment :)

rabbitmq and erlang is working quite nice, but I finally changed to another solution. I now use a named pipe and some python queues, due to following reasons:


Thanks a lot for your effort. And I really like 5.3 :).

Regards,
Patrick