Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

OpenERP 7 Installation CentOS 5.9

Subscribe

Get notified when there's activity on this post

This question has been flagged
installationcentos
2 Replies
8887 Views
Avatar
Noushad

Hi,

I am trying to follow this article for installing OpenERP 7 on CentOS 5.9. However when I type the installation command 'python setup.py install' command. I get the following errors.

What could be wrong? Any idea.

Writing /tmp/easy_install-Pb1fGd/python-ldap-2.4.13/setup.cfg
Running python-ldap-2.4.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Pb1fGd/python-ldap-2.4.13/egg-dist-tmp-WrNqNC
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args: 
extra_objects: 
include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap-RE24/lib /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:18:
/usr/include/sasl/sasl.h:349: warning: function declaration isn't a prototype
Modules/ldapcontrol.c: In function 'encode_assertion_control':
Modules/ldapcontrol.c:352: warning: implicit declaration of function 'ldap_create_assertion_control_value'
Modules/constants.c: In function 'LDAPinit_constants':
Modules/constants.c:155: error: 'LDAP_OPT_DIAGNOSTIC_MESSAGE' undeclared (first use in this function)
Modules/constants.c:155: error: (Each undeclared identifier is reported only once
Modules/constants.c:155: error: for each function it appears in.)
Modules/constants.c:365: error: 'LDAP_CONTROL_RELAX' undeclared (first use in this function)
error: Setup script exited with error: command 'gcc' failed with exit status 1
0
Avatar
Discard
Avatar
Laura Jarvenpaa
Best Answer

"error: Setup script exited with error: command 'gcc' failed with exit status 1"

Seems to be meaning that you are either missing gcc compiler or that it can't do compilation. It also seems that you are missing some python modules (ldap). Are you sure you have installed all required packages? I would recommend you to first check that before you read further my comment. It would be also easier to figure out your problem if you told which instructions you used for installation.

I'm not sure if this is connected to your problem but problem may be also that in CentOS 5.9 the python version is 2.4 and for openERP 7 python requirements seems to be python 2.6 or 2.7 (recommended one is 2.7) for some older openERP also 2.4 is said to be supported. The problem with 2.4 is that it doesn't include as many automatic python modules as 2.6 and 2.7 (many things changed when 2.6 came out if I remember right).

And before you ask: you can't upgrade your python version on CentOS because many essential packages (including yum) are made in python in CentOS so upgrading python version on CentOS will break the OS. So if you want to update your python in CentOS you have to install other python version manually and then be sure that openERP is using this other python version instead of the original one (you can find a lot of info about this with google).

If you have possibility to upgrade your centOS to centOS 6 it would be good because in centOS 6 python version is 2.6 which is supported by openERP.

0
Avatar
Discard
Avatar
Doron Tohar
Best Answer

The installation tries to compile python-ldap and fails. I had to manually install openldap (see their web page for instructions) in order for python-ldap to compile correctly. BTW, the openldap installation requires Berkely DB by default. I installed only the client stuff so I don't have to install Berkley DB.

After that, I run the OpenERP installation again and it failed on compiling psycopg2. To fix that I installed the postgresql devel libs using yum install postgresql-devel.

UPDATE: I just finished the deployment and OpenERP is up and running on CentOS 5.4. I had some more bumps along the way but now everything is running.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Missing packages when installing V11 on CentOS 7 Solved
installation centos
Avatar
Avatar
Avatar
Avatar
4
Aug 20
21489
How to install OpenERP on CentOS Solved
installation centos
Avatar
Avatar
Avatar
Avatar
3
Dec 23
31830
Problem with first installation
installation centos odoo9
Avatar
3
Jan 16
4917
Install Odoo Comunity 18 without 15 days free trial version Solved
installation
Avatar
Avatar
3
Jul 25
4280
Setting up a new odoo 18 server and am unable to install gevent==21.8.0
installation
Avatar
Avatar
Avatar
Avatar
3
Jun 25
6878
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now