I’m built Paraview from source with osmesa on a Linux cluster that has no graphics card. I had MPI enabled. After building and installing with make install the directory install/bin/ does not have pvbatch or pvpython, it has paraview and pvserver. What are the correct flags to generate them?
I enabled PARAVIEW_USE_PYTHON and it complained about not finding some python libraries, so I installed my own python by following the instructions here:
This built python3.6, and I passed the directories to Paraview. Now I’m getting the following errors:
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_Hash'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GetBuffer'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_Repr'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_InitializeEx'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_ValueError'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_AsLong'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_GetProgramName'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyThreadState_Swap'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBool_Type'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GetAttr'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyDict_GetItemString'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyImport_AddModule'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_KeyError'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_Py_TrueStruct'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_And'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyTuple_Pack'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_GetLength'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `Py_ReprLeave'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PySys_SetObject'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyFile_WriteString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_Py_HashPointer'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_Str'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GetAttrString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyModule_Type'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyMem_Free'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyObject_GenericSetAttr'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_Restore'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyType_IsSubtype'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyModule_GetDict'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Power'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyRun_SimpleStringFlags'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Index'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_InternFromString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyTuple_New'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Divmod'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_GetSize'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_KeyboardInterrupt'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_Py_NoneStruct'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_AttributeError'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Float'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Add'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyDict_SetItemString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_FromFormat'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyList_Append'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyType_Type'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBytes_FromStringAndSize'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyByteArray_Type'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Absolute'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyDict_Next'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_SetObject'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_PyObject_New'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Long'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyType_GenericAlloc'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBuffer_Release'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GetIter'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_Format'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_CallFunction'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyFloat_FromDouble'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyFloat_AsDouble'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_Main'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_Concat'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_Finalize'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_DecodeUTF8'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_OverflowError'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_FromUnsignedLongLong'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `Py_BuildValue'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_ExceptionMatches'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyMem_RawFree'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyCFunction_NewEx'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyList_New'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_FromString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_Repeat'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBytes_Size'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_Check'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_TrueDivide'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_GetPythonHome'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_FloorDivide'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_Clear'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBuffer_FillInfo'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyRun_StringFlags'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyDict_GetItem'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Multiply'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyModule_GetName'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Lshift'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_EncodeLocale'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyDict_New'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_SetString'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_SetProgramName'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_NotImplementedError'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyArg_ParseTuple'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_AsUTF8'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBuffer_FillContiguousStrides'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PySys_GetObject'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_AsUnsignedLongLong'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Xor'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBytes_AsString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GC_Del'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PySys_SetArgvEx'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Rshift'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_Free'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_DecodeLocale'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBaseObject_Type'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GetItem'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyExc_TypeError'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyType_Ready'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyEval_CallObjectWithKeywords'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_GetItem'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Invert'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_ClearWeakRefs'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_PyUnicode_Ready'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_AsLongLong'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GC_UnTrack'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_Size'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_SetItem'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Remainder'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_Py_FalseStruct'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `Py_ReprEnter'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_FromLong'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_FromLongLong'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyObject_CallMethod'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Or'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_PyObject_GC_New'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_IsTrue'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_AsUnsignedLong'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_AsEncodedString'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Negative'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_Occurred'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_ReadChar'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GenericGetAttr'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_Fetch'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_HashNotImplemented'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PySequence_Contains'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `Py_AtExit'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_PyType_Lookup'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyDict_Size'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyFloat_Type'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyCallable_Check'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `Py_FrozenFlag'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyArg_Parse'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `Py_Exit'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyLong_FromUnsignedLong'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyArg_UnpackTuple'
../../../lib/libvtkPythonInterpreter-pv5.6.so.1: undefined reference to `PyList_Insert'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_RichCompare'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_AsUTF8AndSize'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Positive'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyObject_GC_Track'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_Print'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_Concat'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyErr_GivenExceptionMatches'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `Py_IsInitialized'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyNumber_Subtract'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_AsUTF8String'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyUnicode_FromStringAndSize'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `_PyByteArray_empty_string'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBytes_AsStringAndSize'
../../../lib/libvtkWrappingPython36Core-pv5.6.so.1: undefined reference to `PyBool_FromLong'