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

rename rest-front/backend to website #2747

Open
dmoisej opened this issue Jun 4, 2019 · 8 comments

Comments

Projects
None yet
5 participants
@dmoisej
Copy link
Contributor

commented Jun 4, 2019

Related to the documentation:
https://www.libelektra.org/tutorials/snippet-sharing-rest-service

As it is said

The backend requires the most dependencies and unfortunately some of them need to be installed manually because no APT packages are available.
The required dependencies with their own dependencies are:
CppCMS >= v1.0.0
Zlib library
PCRE library
Python >= v2.4 (but not v3)
ICU library >= v3.6
gcrypt or OpenSSL library
Boost >= v1.45
OpenSSL
LibJWT >= v1.5
Jansson
OpenSSL

I am using Ubuntu 16.06 by myself. The problem appears while installing CppCMS. I tried to install it manually, so to download from the repository, untar, execute cmake and make in the build folder.

As a result I couldn't install CppCMS becuase I had errors during make command. After investigating I figured it out, that it is recommended to have gcc and g++ compilers of version up to 4.3 but Ubuntu 16.06 doesn't support this version and I couldn't install the older versions of gcc and g++, so the minimal version, that I could install was 4.7. Anyway, the cppcms package didn't want to compile and as a result I can not start compile the libelektra with the following command:

cmake -DTOOLS="ALL;rest-backend;rest-frontend" -DPLUGINS="yajl" ..

It reported me, that the CppCMS package does not exist.

So as a result, I suppose it is not possible to install all those dependencies for the Shared Snippets on the latest Ubuntu versions.

@sanssecours

This comment has been minimized.

Copy link
Member

commented Jun 4, 2019

Thank you for the bug report. As far as I can tell from the nightly build report of CppCMS, it looks like building the framework with

  • Clang 3.8,
  • Clang 4.0,
  • GCC 5.4, and
  • GCC 5.4/C++11

on Ubuntu 16.04 should work. Can you please also add the error messages reported by make to the issue?

@dmoisej

This comment has been minimized.

Copy link
Contributor Author

commented Jun 4, 2019

I have installed clang 3.8 and gcc 5.5. After I execute the make I get the following problems:
cppcms_error

And as a result there is long list of errors like the specific symbol or variable was not declared in this scope

But I see, that cppcms, that you sent me, is from other repository. I tried to download it from the official website. I will try later today with the code from the github you specified and will let you know the result.

markus2330 added a commit that referenced this issue Jun 4, 2019

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2019

Thank you for reporting this problem! Cppcms is an external tool, this bug should be reported to
https://github.com/artyom-beilis/cppcms/issues

But as already written by EMail, I think you actually want elektrad and not the snippet sharing. Elektrad "only" needs nodejs/npm, so it should be easy to run it.

I updated the docu to clarify the differences in 9c3ba98

What we actually should do is to move "rest-backend" and "rest-frontend" to a folder "website". Then people might be less likely to confuse it as a REST service that provides a get/set interface of configuration (which it is not, it is to share snippets).

@Namoshek do you think we can simply move these folders? Or do you remember potential problems we will face then?

@dmoisej

This comment has been minimized.

Copy link
Contributor Author

commented Jun 4, 2019

@markus2330, yes, you are right, I just need elektrad and no shared snippets. I just wanted to describe the issue, that I faced.

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2019

Ok, thank you for the report! I wrote about it in artyom-beilis/cppcms#60

@Namoshek

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2019

@Namoshek do you think we can simply move these folders? Or do you remember potential problems we will face then?

Not sure. I think we designed the CMake build in a way that will survive a folder move. The grunt tasks are based on a configuration that is generated from CMake.

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2019

Thank you for the quick reply!

Then we'll leave the ticket open for this move (at least to try if the move causes any troubles).

@artyom-beilis

This comment has been minimized.

Copy link

commented Jun 4, 2019

You are building an old CppCMS 1.0.4. You need to use 1.2.1 - it is the stable and well tested release.

@markus2330 markus2330 changed the title Problem with configuring Shared Snippets rename rest-front/backend to website Jun 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.