你需要下面的C / c++库从源代码构建flowWorkspace(使用Rtools windows用户)。——libxml2 Linux用户= = = = = = = = = = = = =这些库安装在标准位置,请把他们的“前缀”配置脚本。例如R CMD安装flowWorkspace /——configure-args =”——使用xml = / home / yourname / xml_dir '还要确保这些库可以在运行时通过增加发现R LD_LIBRARY_PATH环境变量。如出口LD_LIBRARY_PATH = / home / yourname / xml_dir:美元LD_LIBRARY_PATH添加这个到你~ /。概要文件可以避免下次这样做。Windows用户= = = = = = = = = = = = =安装libxml2: 1。从http://rglab.github下载预构建二进制。io /双星/ 2。将其解压缩(例如,c: \ libxml2),您应该看到下面的目录结构如i386和x64文件夹| - include |——libxml2 | - - - - - libxml(所有*。h在这里)|自由(我们应该静态图书馆libxml2。)3。设置环境变量LIB_XML2 flowWorkspace为了找到自己的库文件和头文件。你可以通过:*右击“计算机”,选择“属性”*单击“高级系统设置”,选择“高级”选项卡*点击“环境变量”按钮,弹出对话框*单击“新”按钮,进入“LIB_XML2”“变量名”字段,和/道路/ /你/ libxml2(例如,c: / libxml2)在“变量值”字段。记得要用“/”代替“\”目录分隔符。 Instruction for cross-compiling protobuf 2.6.0 for windows (external protobuf library is not required for linux-like OS becuase it is now bundled in the package) 1. install cross-compiling tool chain on linux 2. download the source 2. first install protobuf on local linux (so that 'protoc' command is available for cross compiling later on 3. the run configure script for win64: configure --host=x86_64-w64-mingw32 --prefix=/your_path/protobuf/x64 --enable-shared=no --with-protoc=protoc LDFLAGS='-static-libgcc' 4. then run make and make install 5. for win32: configure --host=i686-w64-mingw32 --prefix=/your_path/protobuf/i386 --enable-shared=no --with-protoc=protoc LDFLAGS='-static-libgcc' Alternatively, pre-built pb binary can be downloaded from http://rglab.github.io/binaries/ Once built, set up the environment variable LIB_PROTOBUF similarly. You can download Rtools at http://www.murdoch-sutherland.com/Rtools/ which provides the resources for building R and R packages. You should add to the Path variable the paths to the various components of Rtools. Please read the "Windows Toolset" appendix at http://cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset for more details.