Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation::First steps (2) #251

Open
piffy opened this issue May 29, 2014 · 6 comments
Open

Installation::First steps (2) #251

piffy opened this issue May 29, 2014 · 6 comments

Comments

@piffy
Copy link

piffy commented May 29, 2014

During the make_install step:

Pulling ibrowse from {git,"git://github.com/cmullaparthi/ibrowse.git",
{tag,"v4.0.1"}}
Cloning into 'ibrowse'...
==> mochiweb (get-deps)
==> meck (get-deps)
==> ibrowse (get-deps)
==> erlastic_search (get-deps)
Pulling lhttpc from {git,"https://github.com/esl/lhttpc.git","master"}
Cloning into 'lhttpc'...
ERROR: Failed to extract name from /home/piffy/develop/sensor-cloud/lib/lhttpc/src/lhttpc.app.src: {27,
file_io_server,
invalid_unicode}
ERROR: 'get-deps' failed while processing /home/piffy/develop/sensor-cloud/lib/erlastic_search: rebar_abort
make: *** [get_libs] Errore 1

??

@qbahers
Copy link
Contributor

qbahers commented Jun 5, 2014

I believe you get an error because you are running Erlang/OTP 17.0, which uses UTF-8 encoding by default. At the time of the project, we were running an earlier version of Erlang.

More specifically, I am guessing you run into an error because the name “Oscar Hellström” cannot be read in the file sensor-cloud/lib/lhttpc/src/lhttpc.app.src (line 27). Maybe you can try to replace the “ö” character with a normal “o” and run the make_install command again.

/Quentin

@piffy
Copy link
Author

piffy commented Jun 5, 2014

Ok, I did that change and it seems to work, thanks. I suggest you change it in the main trunk , too.

However, I got stuck somewhere else:

==> mochiweb (compile)
ERROR: OTP release 17 does not match required regex R16|R16B01|R16B02
ERROR: compile failed while processing /home/piffy/develop/sensor-cloud/lib/mochiweb: rebar_abort

It only seems a minor version requirement glitch. Changing that regexp should also fix things, but I don't know where to start. OTOH, you might change requirements and force-install R16 instead of 17.

@qbahers
Copy link
Contributor

qbahers commented Jun 6, 2014

This regex is coming from the sensor-cloud/rebar.config file, line 4. Try replacing "R16|R16B01|R16B02" with "R16|R16B01|R16B02|R17" to see if that works any better. If it doesn't, I would suggest you install Erlang R16 instead.

@piffy
Copy link
Author

piffy commented Jun 6, 2014

The first method did not work out. I'll contact you via email, which promises to be a more appropriate means of communication for this matter. :-)

@ashokraman
Copy link

Any resolution please - I too am stuck here, would appreciate a suggestion,
Thank you

@konstantino
Copy link
Contributor

It is a little bit more complicated than that, so this change will not get you very far. I have a workaround for this issue but on a different fork of the sensor-cloud which you can find here: https://github.com/EricssonResearch/iot-framework-engine . The current work around is to use the installation script found in the aforementioned fork in order to install an older but compatible version of Erlang, in this case R16. I'm still in the process of upgrading the project (and other related erlang libraries) to R17 in order to avoid this issue once and for all. I'll get back to you once I have a working version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants