Skip to Content
Menu
This question has been flagged
4 Replies
11232 Views

Is there a correct procedure avialable for installing Odoo v8 on cPanel Centos 6.5 x86_64?

I have already installed Python 2.7.8 but getting problems with:

The install ends with:

Reading https://pypi.python.org/simple/python-ldap/
Best match: python-ldap 2.4.16
Downloading https://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.4.16.tar.gz#md5=75549bad7eaaf4949f6adf80334f0acc
Processing python-ldap-2.4.16.tar.gz
Writing /tmp/easy_install-Hn90WT/python-ldap-2.4.16/setup.cfg
Running python-ldap-2.4.16/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Hn90WT/python-ldap-2.4.16/egg-dist-tmp-zGLfV2
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args:
extra_objects:
include_dirs: /opt/openldap/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap/lib64 /usr/lib
libs: ldap_r
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command '/opt/centos/devtoolset-1.1/root/usr/bin/gcc' failed with exit status 1

 

Avatar
Discard
Best Answer

You need to make sure your Python installation (and additional modules) don't conflict with CPanel in any way.

If you have root-level SSH access then you can install from the command line.

I've created a step-by-step installation guide you might find useful:

http://odootricks.wordpress.com/2014/09/30/installing-odoo-8-on-centos-6-with-virtual-python-install/

 

Avatar
Discard

Thank you so much for this tutorial. I am running odoo under WHM/Cpanel CenOS x64. Cheers!

Best Answer

in this video he made them both


https://www.youtube.com/watch?v=kd4u1STpMf4

Avatar
Discard
Best Answer

You need the header files (here, "lber.h" as shown in the stack trace "Modules/errors.h:8:18: fatal error: lber.h: No such file or directory") to compile this python module.

On centOS, your package manager should be yum. You can try:

sudo yum install openldap-devel

Avatar
Discard
Related Posts Replies Views Activity
3
Dec 22
9952
5
Apr 24
39350
6
Apr 24
36751
3
Mar 24
9220
2
Jul 19
765