trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Likely Documentation Issue: Trouble building ATS on EL 8

Open michelamarie opened this issue 3 years ago • 6 comments

Hello!

I am trying to build Traffic Server 9.1.1 on Oracle Linux 8, using the official documentation for CentOS, and I have run into some issues.

It appears that I have got the software to build correctly, but I see an error when I run 'make install': src/node_data.cpp:16:20: error: no declaration matches ‘const string& YAML::detail::node_data::empty_scalar()’ const std::string& node_data::empty_scalar() {

Might anyone here know what other dependencies should be installed to properly build and install ATS 9.1.1 on EL 8? I am happy to contribute to the documentation myself, however I can, once I have a complete list of the requirements and steps.

So far, I believe I have found the following differences between what is in the latest version of the documentation for building ATS 9.1 on EL 8, and what is required to do so:

  • It is no longer necessary to install and enable devtoolset.
  • Additional packages required: make, yaml-cpp-static.

I know this is not a support forum, though I believe the issue is relevant because it is related to some potentially missing or outdated items in the documentation. Please excuse me if this is not the right place to post this report and these questions.

I may be wrong about the above elements of the documentation, as I have not successfully installed ATS yet. I am happy to update this ticket (or to post elsewhere) with my findings once I get everything worked out in the build and installation procedure. :)

Thank you!! Michela

michelamarie avatar Jan 14 '22 07:01 michelamarie

@michelamarie Just curious, did you try building without yaml-cpp-static (and picking up the version of yaml-cpp included in the source distribution) ?

Also, can you share your configure command line?

randall avatar Jan 14 '22 20:01 randall

Hi, @randall. Well, I did try building ATS without the yaml-cpp-static package installed. I now see that there is a parameter in the configure script, '--with-yaml-cpp=DIR use a specific yaml-cpp library', though I am not sure what I would set that parameter to.

I executed configure with no parameters, as specified in the documentation (it says to simply run ./configure && make). Are there parameters that you recommend I use? I'm happy to try those. :)

michelamarie avatar Jan 14 '22 22:01 michelamarie

Do you have the yaml-cpp-devel package installed (or equivalent named)? If so, can you remove it for the configure/compile? I think it's a bug in how we detect/setup yaml-cpp includes. I'll try to get a OEL8 environment to verify things locally.

randall avatar Jan 15 '22 22:01 randall

I've built on CentOS 8 (I don't have EL 8) and didn't see this issue. You should not need any "yamlcpp" package as that is contained inside the ATS codebase. I thin Randall is likely correct that one being present might be confusing ATS.

SolidWallOfCode avatar Jan 25 '22 01:01 SolidWallOfCode

Hi, @SolidWallOfCode. Thank you for replying! I am quite sure I tried building ATS without that yamlcpp package at first, and the build failed. If I remember correctly, I only added that package after the first build failed with a message about yamlcpp.

I have been too busy to break away and try again, but I will hopefully be able to do that this week and report my findings here.

michelamarie avatar Feb 07 '22 23:02 michelamarie

@michelamarie did you get this working?

bryancall avatar May 16 '22 23:05 bryancall

This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

github-actions[bot] avatar May 17 '23 01:05 github-actions[bot]