zoukankan      html  css  js  c++  java
  • Matrix computations in C

    meschach配置使用

    meschach12.b 安装

    • download meschach12.b from Meschach
    • uzip or tar mesch*.zip or mesch*.tar
    • cd mesch12b
    • ./configure
    • make basic
    • mkdir /usr/local/include/meschach (or whatever you wish)
    • cp *.h meschach.a /usr/local/include/meschach
    • complier:

      gcc -g demo.c -I/usr/local/include/meschach/ /usr/local/include/meschach/meschach.a -o demo

    meschach12.b 安装问题

    解压 meschach12.b 后,运行 sudo ./configure 出现如下错误:

    • /bin/sh^M : 损坏的解释器:没有那个文件或目录
    解决方法:
    (1) 脚本文件保存时使用了 DOC 格式,用 DOS2UNIX 转换为 UNIX 格,可使用 vim 打开,使用 :set ff=unix 转换。该问题常出现在 Windows 下编辑的脚本文件。
    (2) sed -i 's/\r$//' server.sh
    
    • 直接运行 sudo ./configure 出现如下错误: configure error no acceptable cc found in $path
    解决方法:
    sudo env CC=/usr/bin/gcc ./configure
    
    • 配置过程中,第 1697 行,报错如下: ./configure: 1697: ./confiigure: Syntax error: "(" excepted (expectinf "fi")
    解决方法:
    ./configure 文件添加如下所示:
    
        ...
        1696 rm -rf conftest*
        1697 cat >> confdef.h << \EOF
        1698 extern int test (int i, double x);
        1699 EOF
        ... 
    
  • 相关阅读:
    【代码沉淀】
    【整理总结】目录
    Windows service installer with InstallShield LE
    (The application/json Media Type for JavaScript Object Notation (JSON))RFC4627-JSON格式定义
    Microsoft .NET Framework 4 安装 1603错误的解决
    SQL SERVER 无法正常连接的那些事
    【整理总结】我的装机软件以及说明
    Wcf服务测试自带工具
    Postgresql 远程连接配置
    Caliburn.Micro
  • 原文地址:https://www.cnblogs.com/openxyz/p/6616173.html
Copyright © 2011-2022 走看看