编译 Deedle

Deedle 中含有 RProvider。

要编译 Deedle。须要先下载 R。地址:

http://cran.cnr.berkeley.edu/bin/windows/base/

还要在 R 控制台中安装 zoo 包:

install.packages("zoo")

可是。測试时另一个错误:

未能载入文件或程序集“FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。

系统找不到指定的文件。

这是因为在 \tests\Deedle.Tests\bin\Release 文件夹下没有 FSharp.Core.dll

那么,原因何在?

是因为 \tests\Deedle.Tests\Deedle.Tests.fsproj 中

<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

      <Private>False</Private>

    </Reference>



把这个属性改成 True 就能够了。

另外,打开測试项目。发现有很多引用不存在。

再看測试项目,当中有很多引用的 .dll 不存在:

FSharp.Literate

FSharp.CodeFormat

是须要安装 FSharp.Formatting 包。即,在 VS 包控制台中运行:

install-package FSharp.Formatting

还有三个:

FSharp.CompilerBinding

FSharp.Data.DesignTime

FSharp.PowerPack.Metadata

=============================

\Deedle-master\tests\Deedle.Documentation.Tests\Deedle.Documentation.Tests.fsproj

<ItemGroup>

    <Reference Include="FSharp.CodeFormat">

      <HintPath>..\..\packages\FSharp.Formatting.2.0.2\lib\net40\FSharp.CodeFormat.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.CompilerBinding">

      <HintPath>..\..\packages\FSharp.Formatting.2.0.2\lib\net40\FSharp.CompilerBinding.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.Data.DesignTime">

      <HintPath>..\..\bin\FSharp.Data.DesignTime.dll</HintPath>

    </Reference>

    <Reference Include="FSharp.Literate">

      <HintPath>..\..\packages\FSharp.Formatting.2.0.2\lib\net40\FSharp.Literate.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.Markdown">

      <HintPath>..\..\packages\FSharp.Formatting.2.0.2\lib\net40\FSharp.Markdown.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.MetadataFormat">

      <HintPath>..\..\packages\FSharp.Formatting.2.0.2\lib\net40\FSharp.MetadataFormat.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.PowerPack.Metadata">

      <HintPath>..\..\packages\FSharp.Formatting.2.0.2\lib\net40\FSharp.PowerPack.Metadata.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="mscorlib" />

    <Reference Include="nunit.framework">

      <HintPath>..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="RazorEngine">

      <HintPath>..\..\packages\RazorEngine.3.3.0\lib\net40\RazorEngine.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="System" />

    <Reference Include="System.Core" />

    <Reference Include="System.Numerics" />

    <Reference Include="System.Web" />

    <Reference Include="System.Web.Razor">

      <HintPath>..\..\packages\Microsoft.AspNet.Razor.2.0.30506.0\lib\net40\System.Web.Razor.dll</HintPath>

      <Private>True</Private>

    </Reference>

  </ItemGroup>

实际上重点就是三个:FSharp.Formatting、FSharp.CompilerBinding、FSharp.Data。

为什么这三个不放在包里自己主动安装?

改一下路径。也就好了:

<ItemGroup>

    <Reference Include="FSharp.CodeFormat">

      <HintPath>..\..\packages\FSharp.Formatting.2.4.17\lib\net40\FSharp.CodeFormat.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.CompilerBinding">

      <HintPath>..\..\packages\FSharp.CompilerBinding\bin\Debug\FSharp.CompilerBinding.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.Data.DesignTime">

      <HintPath>..\..\packages\FSharp.Data.2.0.8\lib\net40\FSharp.Data.DesignTime.dll</HintPath>

    </Reference>

    <Reference Include="FSharp.Literate">

      <HintPath>..\..\packages\FSharp.Formatting.2.4.17\lib\net40\FSharp.Literate.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.Markdown">

      <HintPath>..\..\packages\FSharp.Formatting.2.4.17\lib\net40\FSharp.Markdown.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.MetadataFormat">

      <HintPath>..\..\packages\FSharp.Formatting.2.4.17\lib\net40\FSharp.MetadataFormat.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="FSharp.PowerPack.Metadata">

      <HintPath>..\..\packages\FSharp.Formatting.2.4.17\lib\net40\FSharp.PowerPack.Metadata.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="mscorlib" />

    <Reference Include="nunit.framework">

      <HintPath>..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="RazorEngine">

      <HintPath>..\..\packages\RazorEngine.3.3.0\lib\net40\RazorEngine.dll</HintPath>

      <Private>True</Private>

    </Reference>

    <Reference Include="System" />

    <Reference Include="System.Core" />

    <Reference Include="System.Numerics" />

    <Reference Include="System.Web" />

    <Reference Include="System.Web.Razor">

      <HintPath>..\..\packages\Microsoft.AspNet.Razor.2.0.30506.0\lib\net40\System.Web.Razor.dll</HintPath>

      <Private>True</Private>

    </Reference>

  </ItemGroup>



另一个问题,即 Documentation.Tests.fs 中有一段不能编译。

Literate.ProcessScriptFile

      ( Path.Combine(sources, file), template, Path.Combine(output, file),

        errorHandler = errorHandler,

        fsharpCompiler = compiler )



应该是 ProcessScriptFile 做过改动。没有后面的两个參数。因此,去掉后面的两个參数就能编译了。

Literate.ProcessScriptFile

      ( Path.Combine(sources, file), template, Path.Combine(output, file))

编译 Deedle的更多相关文章

  1. DotNet 资源大全中文版,内容包括:编译器、压缩、应用框架、应用模板、加密、数据库、反编译、IDE、日志、风格指南等

    DotNet 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列的资源整理.awesome-dotnet 是由 quozd 发起和维护.内容包括:编译器. ...

  2. TODO:macOS编译PHP7.1

    TODO:macOS编译PHP7.1 本文主要介绍在macOS上编译PHP7.1,有兴趣的朋友可以去尝试一下. 1.下载PHP7.1源码,建议到PHP官网下载纯净到源码包php-7.1.0.tar.g ...

  3. Centos6.5下编译安装mysql 5.6

    一:卸载旧版本 使用下面的命令检查是否安装有MySQL Server rpm -qa | grep mysql 有的话通过下面的命令来卸载掉 rpm -e mysql //普通删除模式 rpm -e ...

  4. CENTOS 6.5 平台离线编译安装 PHP5.6.6

    一.下载php源码包 http://cn2.php.net/get/php-5.6.6.tar.gz/from/this/mirror 二.编译 编译之前可能会缺少一些必要的依赖包,加载一个本地yum ...

  5. CENTOS 6.5 平台离线编译安装 Mysql5.6.22

    一.下载源码包 http://cdn.mysql.com/archives/mysql-5.6/mysql-5.6.22.tar.gz 二.准备工作 卸载之前本机自带的MYSQL 安装 cmake,编 ...

  6. Android注解使用之注解编译android-apt如何切换到annotationProcessor

    前言: 自从EventBus 3.x发布之后其通过注解预编译的方式解决了之前通过反射机制所引起的性能效率问题,其中注解预编译所采用的的就是android-apt的方式,不过最近Apt工具的作者宣布了不 ...

  7. Hawk 6. 编译和扩展开发

    Hawk是开源项目,因此任何人都可以为其贡献代码.作者也非常欢迎使用者能够扩展出更有用的插件. 编译 编译需要Visual Stuido,版本建议使用2015, 2010及以上没有经过测试,但应该可以 ...

  8. android studio 使用 jni 编译 opencv 完整实例 之 图像边缘检测!从此在andrid中自由使用 图像匹配、识别、检测

    目录: 1,过程感慨: 2,运行环境: 3,准备工作: 4,编译 .so 5,遇到的关键问题及其解决方法 6,实现效果截图. (原创:转载声明出处:http://www.cnblogs.com/lin ...

  9. 在Windows上编译和调试CoreCLR

    生成CoreCLR - Windows篇 本文的唯一目的就是让你运行Hello World 运行环境 Window 7+ Visual studio 2015 确保C++ 工具已经被安装,默认是不安装 ...

随机推荐

  1. map 插入数据的方式局别

    #include<map> #include<iostream> usingnamespace std; int main() { map <int, int> m ...

  2. 【转】OPC远程访问相关配置信息

    原文:http://blog.gkong.com/kking_25653.ashx 对于远程访问OPC服务器,需要在客户和服务器计算机上都进行DCOM设置,本文提供一些具体配置方法.(by Kevin ...

  3. Windows同步阿里云时间

    Ctrl+R打开cmd命令框 输入:gpedit.msc 计算机配置”—“管理模版”—“系统”—“Windows 时间服务”—“时间提供程序”—“配置 Windows NTP 客户端 双击打开配置 W ...

  4. HLG 2025

    确定大小 Time Limit: 1000 MS Memory Limit: 32768 K Total Submit: 50(15 users) Total Accepted: 12(11 user ...

  5. mac上安装ruby

    (转:http://www.cnblogs.com/daguo/p/4097263.html) 以下代码区域,带有 $ 打头的表示需要在控制台(终端)下面执行(不包括 $ 符号) 步骤0 - 安装系统 ...

  6. 路飞学城详细步骤 part1

    详细步骤 1 添加登录页面 步骤: Header.vue 写一个登录按钮,<router-link to = ' /xx'> 在路由的 index.js中添加这个 新的路由,{'path' ...

  7. PatentTips - Write Combining Buffer for Sequentially Addressed Partial Line Operations

    SUMMARY OF THE INVENTION The present invention pertains to a write combining buffer for use in a mic ...

  8. iOS 设置RGB色的宏

    转自:http://lizhuang.iteye.com/blog/1931768 
//RGB Color macro #define UIColorFromRGB(rgbValue) [UICol ...

  9. 使用Sharesdk实现第三方平台登录(qq,新浪微博)

    首先到sharesdk开放píng台下载demo ,以下要用到的文件来自于 simple里面 第一步:导入官方的jar包    第二步:添加ShareSDK.xml文件并修改相关píng台key  第 ...

  10. P1540 机器翻译(STL 链表)

    题目背景 小晨的电脑上安装了一个机器翻译软件,他经常用这个软件来翻译英语文章. 题目描述 这个翻译软件的原理很简单,它只是从头到尾,依次将每个英文单词用对应的中文含义来替换.对于每个英文单词,软件会先 ...