- 论坛徽章:
- 0
|
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Normal
0
7.8 磅
0
2
false
false
false
EN-US
ZH-CN
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-font-kerning:1.0pt;}
Got the
following msg while trying to build python2.6 on Debian (It drives me crazy
that Debian still doesn’t provide python2.6, though python3.0 has long been
available):
Failed to find the necessary bits to
build these modules:
_bsddb _hashlib _sqlite3
_ssl _tkinter bsddb185
bz2 dbm gdbm
sunaudiodev zlib
To find the necessary bits, look in
setup.py in detect_modules() for the module's name.
Googled it and seems we can just ignore it.
So I typed “make install”. Yes, it worked for now. But we are still using
python2.5 by just type “python -V” because the default installation place for
python2.6 is “/usr/local/” not “/usr”, so we need type “sudo ln -f
/usr/local/bin/python /usr/bin/python” to make “/usr/bin/python” hard-linked to
python2.6
The first time I have to down-grade a
package, from libstdc++6 to libstdc++5. This command “sudo aptitude install
libstdc++5” doesn’t work:
Setting up python-pkg-resources
(0.6c8-4) ...
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1891, in
main()
File "/usr/bin/pycentral", line 1885, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 1239, in run
runtimes = get_installed_runtimes()
File "/usr/bin/pycentral", line 210, in
get_installed_runtimes
default_version = pyversions.default_version(version_only=True)
File "/usr/share/pycentral-data/pyversions.py", line 163,
in default_version
raise ValueError, "/usr/bin/python does not match the python
default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not
match the python default version. It must be reset to point to python2.5
Apparently Debian doesn’t support python2.6
by default. What if I manually “sudo vim /usr/share/python/debian_defaults” and
change the default-version? It works!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21990/showart_2139228.html |
|