免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3977 | 回复: 0
打印 上一主题 下一主题

技术日志_3 python 2.6 on Debian [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-04 17:19 |只看该作者 |倒序浏览

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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP