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

Compiling problem on Redhat 6.3 #1

Open
linuxheadz opened this issue Feb 5, 2013 · 5 comments
Open

Compiling problem on Redhat 6.3 #1

linuxheadz opened this issue Feb 5, 2013 · 5 comments
Assignees

Comments

@linuxheadz
Copy link

When i try to compile nova-billing on redhat 6.3 i got these erros .

rpmbuild -ba nova-billing.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zPDV15

  • umask 022
  • cd /root/rpmbuild/BUILD
  • cd /root/rpmbuild/BUILD
  • rm -rf nova-billing-0.0.2
  • /usr/bin/gzip -dc /root/rpmbuild/SOURCES/nova-billing-0.0.2.tar.gz
  • /bin/tar -xf -
  • STATUS=0
  • '[' 0 -ne 0 ']'
  • cd nova-billing-0.0.2
  • /bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.63ee5J
  • umask 022
  • cd /root/rpmbuild/BUILD
  • cd nova-billing-0.0.2
  • /usr/bin/python setup.py build
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/nova_billing
    copying nova_billing/amqp.py -> build/lib/nova_billing
    copying nova_billing/glance_utils.py -> build/lib/nova_billing
    copying nova_billing/version.py -> build/lib/nova_billing
    copying nova_billing/utils.py -> build/lib/nova_billing
    copying nova_billing/keystone_utils.py -> build/lib/nova_billing
    copying nova_billing/nova_utils.py -> build/lib/nova_billing
    copying nova_billing/vm_states.py -> build/lib/nova_billing
    copying nova_billing/init.py -> build/lib/nova_billing
    copying nova_billing/rest.py -> build/lib/nova_billing
    creating build/lib/nova_billing/db
    copying nova_billing/db/init.py -> build/lib/nova_billing/db
    creating build/lib/nova_billing/db/sqlalchemy
    copying nova_billing/db/sqlalchemy/api.py -> build/lib/nova_billing/db/sqlalchemy
    copying nova_billing/db/sqlalchemy/models.py -> build/lib/nova_billing/db/sqlalchemy
    copying nova_billing/db/sqlalchemy/session.py -> build/lib/nova_billing/db/sqlalchemy
    copying nova_billing/db/sqlalchemy/init.py -> build/lib/nova_billing/db/sqlalchemy
    running build_scripts
    creating build/scripts-2.6
    copying and adjusting bin/nova-billing -> build/scripts-2.6
    changing mode of build/scripts-2.6/nova-billing from 644 to 755
  • exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EMTUfo
  • umask 022
  • cd /root/rpmbuild/BUILD
  • cd nova-billing-0.0.2
  • /bin/rm -rf /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64
  • /usr/bin/python setup.py install -O1 --skip-build --prefix=/usr --root=/root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64
    running install
    running install_lib
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/amqp.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/glance_utils.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/version.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/utils.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/keystone_utils.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/nova_utils.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/vm_states.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy
    copying build/lib/nova_billing/db/sqlalchemy/api.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy
    copying build/lib/nova_billing/db/sqlalchemy/models.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy
    copying build/lib/nova_billing/db/sqlalchemy/session.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy
    copying build/lib/nova_billing/db/sqlalchemy/init.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy
    copying build/lib/nova_billing/db/init.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db
    copying build/lib/nova_billing/init.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    copying build/lib/nova_billing/rest.py -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/amqp.py to amqp.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/glance_utils.py to glance_utils.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/version.py to version.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/utils.py to utils.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/keystone_utils.py to keystone_utils.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/nova_utils.py to nova_utils.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/vm_states.py to vm_states.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy/api.py to api.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy/models.py to models.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy/session.py to session.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/sqlalchemy/init.py to init.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/db/init.py to init.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/init.py to init.pyc
    byte-compiling /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing/rest.py to rest.pyc
    writing byte-compilation script '/tmp/tmpqmbDvL.py'
    /usr/bin/python -O /tmp/tmpqmbDvL.py
    removing /tmp/tmpqmbDvL.py
    running install_egg_info
    running egg_info
    creating nova_billing.egg-info
    writing nova_billing.egg-info/PKG-INFO
    writing top-level names to nova_billing.egg-info/top_level.txt
    writing dependency_links to nova_billing.egg-info/dependency_links.txt
    writing manifest file 'nova_billing.egg-info/SOURCES.txt'
    reading manifest file 'nova_billing.egg-info/SOURCES.txt'
    writing manifest file 'nova_billing.egg-info/SOURCES.txt'
    Copying nova_billing.egg-info to /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages/nova_billing-0.0.2-py2.6.egg-info
    running install_scripts
    creating /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/bin
    copying build/scripts-2.6/nova-billing -> /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/bin
    changing mode of /root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/bin/nova-billing to 755
  • export PYTHONPATH=/root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages
  • PYTHONPATH=/root/rpmbuild/BUILDROOT/nova-billing-0.0.2-1.x86_64/usr/lib/python2.6/site-packages
  • make -C doc html
    make: Entering directory /root/rpmbuild/BUILD/nova-billing-0.0.2/doc' sphinx-build -b html -d build/doctrees source build/html Making output directory... Running Sphinx v0.6.6 loading pickled environment... not found building [html]: targets for 5 source files that are out of date updating environment: 5 added, 0 changed, 0 removed reading sources... [100%] restapi /root/rpmbuild/BUILD/nova-billing-0.0.2/doc/source/devref/index.rst:9: (WARNING/2) toctree references unknown document u'api/autoindex' looking for now-outdated files... none found pickling environment... done checking consistency... /root/rpmbuild/BUILD/nova-billing-0.0.2/doc/source/devref/index.rst:: WARNING: document isn't included in any toctree done preparing documents... done writing output... [ 20%] config Exception occurred: File "/root/rpmbuild/BUILD/nova-billing-0.0.2/doc/source/_themes/bootstrap/layout.html", line 3, in top-level template code {% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css'] + css_files %} UndefinedError: 'css_files' is undefined The full traceback has been saved in /tmp/sphinx-err-54oOzb.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>, or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks! make: *** [html] Error 1 make: Leaving directory/root/rpmbuild/BUILD/nova-billing-0.0.2/doc'
    error: Bad exit status from /var/tmp/rpm-tmp.EMTUfo (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.EMTUfo (%install)

Red Hat Enterprise Linux Server release 6.3 (Santiago)

sphinx-0.9.9-1.el6.x86_64
python-sphinx-0.6.6-2.el6.noarch
python-sphinx10-1.0.8-1.el6.noarch

thanks in advance

@ghost ghost assigned aababilov Feb 5, 2013
@aababilov
Copy link

Well, we don't build documentation packages and therefore do not provide an adequate sphinx package.
python-sphinx10 is horrible: its binary is called sphinx-1.0-build (not sphinx-build).

  1. You can edit the "make" invocation line in the spec:
    make SPHINXBUILD=sphinx-1.0-build -C doc html
  2. You can just turn off documentation as we do by setting "%global with_doc 0". Please use the fresh nova-billing from https://github.com/altai/nova-billing/tree/v1.1.1_trunk

@linuxheadz
Copy link
Author

Hi Alessio,
thanks alot for your answer, now i got another problem :

python-flask-sqlalchemy
python-openstack-client
start-stop-daemon

these packages are missing , i use redhat 6.3 + epel repositories.

@aababilov
Copy link

Hi!

Build dependencies are available at http://altai-downloads.griddynamics.net/altai/v1.1.0/deps/. Please install http://altai-downloads.griddynamics.net/altai/v1.1.0/centos6/altai-release-1.1-v1.1.0.el6.noarch.rpm to use our repositories. You will find python-flask-sqlalchemy and start-stop-daemon here.

python-openstackclient-base (not python-openstack-client) can be built from sources (https://github.com/altai/python-openstackclient-base) or installed from altai-downloads.griddynamics.net/altai/v1.1.0/centos6/python-openstackclient-base-2012.1-v1.1.0.el6.noarch.rpm.

Good luck! Thank you for you interest in nova-billing!

@neumerance
Copy link

Hi there,

I was trying to use nova-billing in fedora 18 , however after doing the rpmbuild stuff , i am not able to start the server using /etc/init.d/nova-billing-os-amqp start, it gives me an error saying , bash: /etc/init.d/nova-billing-os-amqp: No such file or directory, can you please tell me what im going to do?

@neumerance
Copy link

and also, if i try to use yum install nova-billing, it ways "no package nova-billing available"

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

3 participants