apache / trafficserver

Apache Traffic Server™ is a fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server.
https://trafficserver.apache.org/
Apache License 2.0
1.81k stars 799 forks source link

Likely Documentation Issue: Trouble building ATS on EL 8 #8605

Open michelamarie opened 2 years ago

michelamarie commented 2 years ago

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:

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

randall commented 2 years ago

@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?

michelamarie commented 2 years ago

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. :)

randall commented 2 years ago

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.

SolidWallOfCode commented 2 years ago

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.

michelamarie commented 2 years ago

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.

bryancall commented 2 years ago

@michelamarie did you get this working?

github-actions[bot] commented 1 year ago

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.