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

Install python-dev, allowing ambari to build on vagrant provisioned machines #9

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jhalterman
Copy link

Install python-dev so that ambari builds can succeed on vagrant provisioned machines. Current builds fail via psutils-compile in ambari-metrics-host-monitoring with:

[INFO] --- maven-antrun-plugin:1.7:run (psutils-compile) @ ambari-metrics-host-monitoring ---
[INFO] Executing tasks

psutils-compile:
     [exec] running build
     [exec] running build_py
     [exec] running build_ext
     [exec] building '_psutil_linux' extension
     [exec] gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
     [exec] psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
     [exec] compilation terminated.
     [exec] error: command 'gcc' failed with exit status 1
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:27.269s
[INFO] Finished at: Thu Jun 11 18:35:59 UTC 2015
[INFO] Final Memory: 43M/290M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (psutils-compile) on project ambari-metrics-host-monitoring: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec dir="/ambari/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil" executable="/ambari/ambari-metrics/ambari-metrics-host-monitoring/../../ambari-common/src/main/unix/ambari-python-wrap" failonerror="true">... @ 4:231 in /ambari/ambari-metrics/ambari-metrics-host-monitoring/target/antrun/build-psutils-compile.xml

@derek800109
Copy link

thank you so much!!

@rila121
Copy link

rila121 commented Jul 8, 2016

thank you very much. For CentOS: yum install python-devel.x86_64

@chaitu750
Copy link

Thank you

@NormanTrinh
Copy link

successfully fixed the error with installing gcc on Centos7

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

Successfully merging this pull request may close these issues.

5 participants