Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5544 Vizualizări

Hi,

Seems cannot get all the dependencies to install, I tried manual each dev package, without luck, I follow this guide:

https://www.rosehosting.com/blog/install-odoo-12-on-centos-7/

This is what I get every time I try to compile:

 /bin/ld: /usr/local/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(bytesobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(exceptions.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(floatobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(iterobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(listobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(longobject.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(dictobject.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(memoryobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(methodobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(moduleobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(obmalloc.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(capsule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(rangeobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(setobject.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(sliceobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(structseq.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(tupleobject.o): relocation R_X86_64_32 against symbol `_PyEval_SliceIndex' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(typeobject.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(unicodeobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(unicodectype.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(weakrefobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_warnings.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(bltinmodule.o): relocation R_X86_64_32S against symbol `PyFilter_Type' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(ceval.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(compile.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(codecs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(errors.o): relocation R_X86_64_32S against symbol `PyTraceBack_Type' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(future.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getargs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(import.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(importdl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(marshal.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(modsupport.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(peephole.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pyhash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pylifecycle.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pystate.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pythonrun.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pytime.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(random.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(symtable.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(sysmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(traceback.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pystrtod.o): relocation R_X86_64_32S against symbol `_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(dtoa.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(formatter_unicode.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(fileutils.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(dynload_shlib.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(thread.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getpath.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(gcmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_threadmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(signalmodule.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(posixmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(errnomodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(pwdmodule.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_sre.o): relocation R_X86_64_32S against symbol `_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_codecsmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_weakref.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_functoolsmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_operator.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_collectionsmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(itertoolsmodule.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(atexitmodule.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_stat.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(timemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_localemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_iomodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(iobase.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(fileio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(bytesio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(bufferedio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(textio.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(stringio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(zipimport.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(faulthandler.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(_tracemalloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(hashtable.o): relocation R_X86_64_32 against symbol `PyMem_RawFree' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(symtablemodule.o): relocation R_X86_64_32 against symbol `PyUnicode_FSDecoder' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(xxsubtype.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getbuildinfo.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(acceler.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(grammar1.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(parsetok.o): relocation R_X86_64_32S against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(tokenizer.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(accu.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(boolobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(bytes_methods.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(bytearrayobject.o): relocation R_X86_64_32 against symbol `_PyByteArray_empty_string' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(cellobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(codeobject.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(complexobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(descrobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(enumobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(genobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(fileobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(frameobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(funcobject.o): relocation R_X86_64_32S against symbol `PyCode_Type' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(odictobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(namespaceobject.o): relocation R_X86_64_32S against symbol `_PyNamespace_Type' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(Python-ast.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(ast.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getcopyright.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getplatform.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getversion.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(mystrtoul.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(structmember.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(parser.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: /usr/local/lib/libpython3.5m.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC


    /bin/ld: final link failed: Nonrepresentable section on output


    collect2: error: ld returned 1 exit status


    error: command 'gcc' failed with exit status 1




    ----------------------------------------


  Rolling back uninstall of reportlab


Command "/opt/odoo/odoo12-venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-3_jp7kg5/reportlab/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jb4tnvhx/install-record.txt --single-version-externally-managed --compile --install-headers /opt/odoo/odoo12-venv/include/site/python3.5/reportlab" failed with error code 1 in /tmp/pip-install-3_jp7kg5/reportlab/Hi,

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thanx, I switched to Ubuntu and everything is solved !! If you are lucky please share how you did it, regards !

Imagine profil
Abandonează
Cel mai bun răspuns

I've experienced the same issue and ultimately switched to Debian. Having stated this, the base issue is how to get the install to function with a Python3.6 virtual environment (which I failed at). In any case, the python3.h lib file is not found when compiling.

I will continue to try, there must be a way.

Imagine profil
Abandonează