WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: erlang  (Read 4179 times)

paco

  • Guest
erlang
« on: January 12, 2014, 02: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]

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: erlang
« Reply #1 on: January 12, 2014, 03:49:25 AM »
it looks like it would need recompiling against openssl-1.0.0, maybe you could pm the maintainer?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: erlang
« Reply #2 on: January 12, 2014, 03:51:06 AM »
Regarding piCore will try to build.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: erlang
« Reply #3 on: January 13, 2014, 12: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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

paco

  • Guest
Re: erlang
« Reply #4 on: January 13, 2014, 09:39:45 AM »
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


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: erlang
« Reply #5 on: January 13, 2014, 10:04:39 AM »
You are welcome. Good to hear it works :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

paco

  • Guest
Re: erlang
« Reply #6 on: January 26, 2014, 05:33:26 AM »
Hello Markus,

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

I tried to understand the directory structure and checked debian build-scripts. IMO following files (~50M) could be moved to a dev package easily:
  • /usr/local/lib/erlang/usr/*
  • /usr/local/lib/erlang/lib/*/src/
  • /usr/local/lib/erlang/lib/*/c_src/
  • /usr/local/lib/erlang/lib/*/java_src/
  • /usr/local/lib/erlang/lib/*/asn1/
  • /usr/local/lib/erlang/lib/*/COSS/
  • /usr/local/lib/erlang/lib/*/examples/

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

What do you think?

Cheers,
Patrick

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: erlang
« Reply #7 on: January 26, 2014, 09:26:49 AM »
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
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

paco

  • Guest
Re: erlang
« Reply #8 on: February 09, 2014, 12: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.

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!

paco

  • Guest
Re: erlang
« Reply #9 on: February 09, 2014, 12: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}

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: erlang
« Reply #10 on: February 09, 2014, 12: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.

paco

  • Guest
Re: erlang
« Reply #11 on: February 10, 2014, 10:31:38 AM »
I found a solution for a tcz:

On 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 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!
« Last Edit: February 10, 2014, 10:33:46 AM by paco »

paco

  • Guest
Re: erlang
« Reply #12 on: May 24, 2014, 06: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:

  • Both, erlang and rabbitmq are rather big tcz-files
  • Even idle, rabbitmq uses 4% to 5% CPU
  • For now, I only use one node, so python queues are enough

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

Regards,
Patrick