I am trying to compile python2.7 in SLED SP2 but it always failed with messages:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _tkinter bsddb185
dl imageop linuxaudiodev
ossaudiodev sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_curses_panel
Since my another software highly depend how well the python it compiled, it always failed with messages:
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
scons: *** [objs/Linux/x86_64/gcc-4.6/Release/lib/libDesmond.so] Error 1
So I am just wondering how should I compile my python 2.7 correctly?
thank you for kind helps. But I don’t know how to add the build target from web interface… I am sorry I am not famililar with osc in SUSE.
Or, do you have any idea how to solve the issue claimed during the configuration so that I can compile it from source code?
[CODE]Failed to find the necessary bits to build these modules:
_bsddb bsddb185 dl
imageop linuxaudiodev ossaudiodev
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module’s name.
Failed to build these modules:
_curses_panel [/CODE]
Probably I don’t need those modules, but when I skipped the warning and invoke this compiled python for compiling my other softwares, it always have the same issues which claimed:
Python-2.7.3/./Modules/posixmodule.c:7432: warning: the use of tmpnam_r' is dangerous, better use mkstemp’
Stride.o: In function ss_from_stride(DrawMolecule*)': Stride.C:(.text+0x41): warning: the use of tempnam’ is dangerous, better use `mkstemp’
collect2: ld returned 1 exit status
So, this problem should comes from the issue when I compiling Python.