编译 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. ubuntu14.04 software-center can not open

    sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install --reinstall software-center

  2. 【bzoj2597】[Wc2007]剪刀石头布 动态加边费用流

    题目描述 在一些一对一游戏的比赛(如下棋.乒乓球和羽毛球的单打)中,我们经常会遇到A胜过B,B胜过C而C又胜过A的有趣情况,不妨形象的称之为剪刀石头布情况.有的时候,无聊的人们会津津乐道于统计有多少这 ...

  3. Redis常见配置redis.conf

    redis的配置文件.相信学过SSH或SSM的读者都知道,配置文件的使用在当下开发已十分普遍,希望大家要熟悉习惯这 种开发方式,废话不多说,来开始我们今天的内容吧. 首先得找到 redis 的配置文件 ...

  4. Codeforces 895.A Pizza Separation

    A. Pizza Separation time limit per test 1 second memory limit per test 256 megabytes input standard ...

  5. bzoj 5055: 膜法师 树状数组+离散

    先枚举每一个数,看它前面有几个比它小,算一下和为sum1,后面有几个比它大,算一下和为sum2,对答案的贡献为A[i]*sum1*sum2. 离散化后,树状数组就可以了. 就是倒着一边,顺着一边,统计 ...

  6. 星球大战 BZOJ 1015

    星球大战 [问题描述] 很久以前,在一个遥远的星系,一个黑暗的帝国靠着它的超级武器统治者整个星系.某一天,凭着一个偶然的机遇,一支反抗军摧毁了帝国的超级武器,并攻下了星系中几乎所有的星球.这些星球通过 ...

  7. Python入门--9--格式化

    字符串格式化符号含义    符   号    说     明      %c    格式化字符及其ASCII码      %s    格式化字符串      %d    格式化整数      %o   ...

  8. 使用Reachability检测网格

    
#pragma mark - 网络连接检查 - (void) currentReach { // 网络检测 Reachability *curReach = [Reachability reacha ...

  9. laravel 查询构造器2

    //查询构造器 public function query() { //获取所有的数据 $student = DB::table('student')->get(); var_dump($stu ...

  10. 2017 ACM/ICPC Asia Regional Urumuqi Online 记录

    比赛题目链接  Urumuqi