zoukankan      html  css  js  c++  java
  • 关于 Linux上面 安装nodejs ccap模块 实现图形验证码的一些事情

     npm install ccap (new version, need node 0.12.x and 4.x.x and 6.x.x, on linux need gcc v4.8+)

    要注意上版本的要求

    然后才有下面-------------------------------------------------------------------------------------------------------

    如果是在mac上面:

    1.npm install cnpm -g --registry=https://registry.npm.taobao.org

    2.cnpm install node-gyp -g

    3.cnpm install ccap

    如果是在linux上面:

    如果是在windows上面:

    参考下,我也没去实验

    https://cnodejs.org/topic/505080cb5aa28e09430d89b0

    Python升级方案

    [root@localhost ~]# cd /usr/local/src

    [root@localhost ~]# wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
    [root@localhost ~]# tar xvf Python-2.7.5.tgz
    [root@localhost ~]# cd Python-2.7.5
    [root@localhost ~]# ./configure
    [root@localhost ~]# make 
    [root@localhost ~]# make install
    [root@localhost ~]# ln -s /usr/local/bin/python2.7 /usr/bin/python
    [root@localhost ~]# python -V
     
     

    gcc 升级方案

    http://www.dwhd.org/20160724_085212.html

    C++11标准在2011年8月份获得一致通过,这是自1998年后C++语言第一次大修订,对C++语言进行了改进和扩充。随后各编译器厂商都各自实现或部分实现了C++中的特性。

    如需查看各编译器对C++11的支持程度,请参看文章:

      本文主要介绍在Linux系统下,如何升级GCC以支持C++11。目前来看GCC是对C++11支持程度最高最多的编译器,但需要GCC4.8及以上版本。

        本文使用操作系统:Centos 6.4 Desktop,64bit;

      原GCC版本:4.4.7;

      目标:升级GCC到4.8.2,以支持C++11。

    1. 获取GCC 4.8.2包:wget http://gcc.skazkaforyou.com/releases/gcc-4.8.2/gcc-4.8.2.tar.gz
    2. 解压缩:tar -xf gcc-4.8.2.tar.gz
    3. 进入到目录gcc-4.8.2,运行:./contrib/download_prerequisites。这个神奇的脚本文件会帮我们下载、配置、安装依赖库,可以节约我们大量的时间和精力。
    4. 建立输出目录并到目录里:      
      mkdir gcc-build-4.8.2
      cd gcc-build-4.8.2

    5. ../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
      --enable-languages表示你要让你的gcc支持那些语言,--disable-multilib不生成编译为其他平台可执行代码的交叉编译器。--disable-checking生成的编译器在编译过程中不做额外检查,也可以使用--enable-checking=xxx来增加一些检查;
    6. 编译:make;注意此步和上一步,比较耗时;
    7. 安装:make  install
    8. 验证:gcc -v;或者g++ -v,如果显示的gcc版本仍是以前的版本,就需要重启系统;或者可以查看gcc的安装位置:which gcc;然后在查看版本 /usr/local/bin/gcc -v,通常gcc都安装在该处位置,如果显示为;
  • 相关阅读:
    当Django模型迁移时,报No migrations to apply 问题时
    django--各个文件的含义
    django--创建项目
    1013. Battle Over Cities (25)
    1011. World Cup Betting (20)
    1009. Product of Polynomials (25)
    1007. Maximum Subsequence Sum (25)
    1006. Sign In and Sign Out (25)
    1008. Elevator (20)
    1004. Counting Leaves (30)
  • 原文地址:https://www.cnblogs.com/x-radish/p/7064703.html
Copyright © 2011-2022 走看看