安装 r 里的 igraph 报错

转载来源:http://genek.tv/article/40

1186 0 0

安装 r 里的 igraph 报错:

foreign-graphml.c: In function ‘igraph_write_graph_graphml’:
foreign-graphml.c:1408:46: error: expected ‘)’ before ‘GRAPHML_NAMESPACE_URI’
   ret=fprintf(outstream, "<graphml xmlns=\"" GRAPHML_NAMESPACE_URI "\"\n");
                                              ^
foreign-graphml.c:1412:59: error: expected ‘)’ before ‘GRAPHML_NAMESPACE_URI’
   ret=fprintf(outstream, "         xsi:schemaLocation=\"" GRAPHML_NAMESPACE_URI "\n");
                                                           ^
foreign-graphml.c:1414:38: error: expected ‘)’ before ‘GRAPHML_NAMESPACE_URI’
   ret=fprintf(outstream, "         " GRAPHML_NAMESPACE_URI "/1.0/graphml.xsd\">\n");
                                      ^
/home/genek/miniconda3/lib/R/etc/Makeconf:133: recipe for target ‘foreign-graphml.o‘ failed
make: *** [foreign-graphml.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/home/genek/miniconda3/lib/R/library/igraph’
* restoring previous ‘/home/genek/miniconda3/lib/R/library/igraph’

解决办法

sudo apt-get install libxml2-dev

原文地址:https://www.cnblogs.com/leoking01/p/8360047.html

时间: 2024-08-08 18:15:35

安装 r 里的 igraph 报错的相关文章

关于安装R语言的Rattle报错问题的解决方式

安装R语言的相关内容就不再赘述. 安装Rstudio的地址:https://www.rstudio.com/products/rstudio/download/ 安装rattle,执行的时候 library(rattle)没有问题,但是直接rattle()后没有跳出框,提示报错信息为: Error in method(obj, ...) : Invalid root element: 'requires' 或者压根没有报错信息,这个主要是RGtk2的问题,需要更换一下版本为2.20.31,更换方

CentOS5.6下安装Oracle10G软件 【保留报错经验】

CentOS5.6下安装Oracle10G ******************************************************************************** *目标:在Centos系统下,安装Oracle10g软件 *步骤: *                1.安装包 *                2.域名解析设置及网络配置 *                3.创建用户.组 *                4.配置内核參数.改动环境变量

20170514002Oracle 11g R2安装过程中遇到的报错及解决办法

Oracle 11g R2安装过程中遇到的报错及解决办法 1.提示Check if the DISPLAYvariable is set.    Failed<<<< 解决方案: #xhost +  //切换到root用户输入 #su – Oracle  //切换到oracle用户 $./runInstaller  //执行安装程序 xhost 是用来控制X server访问权限的. 通常当你从hostA登陆到hostB上运行hostB上的应用程序时, 做为应用程序来说,hostA

CentOS5.6下安装Oracle10G软件(包含报错经验)

CentOS5.6下安装Oracle10G ******************************************************************************** *目标:在Centos系统下,安装Oracle10g软件 *步骤: *                1.安装包 *                2.域名解析设置及网络配置 *                3.创建用户.组 *                4.配置内核参数.修改环境变量

laravel安装intervention/image图像处理扩展 报错fileinfo is missing

在安装intervention/image图像处理扩展 报错fileinfo is missing 报错信息如下: \blog>composer require intervention/imageUsing version ^2.3 for intervention/image./composer.json has been updatedLoading composer repositories with package informationUpdating dependencies (i

同时安装Python2与Python3,安装第三方包,老是报错

同时安装Python2与Python3,安装第三方包,老是报错提示Fatal error in launcher: Unable to create process using '"',那可能是环境变量有冲突了. 解决办法: 是在环境变量Path中上下移调整两个"PythonX/Scripts"位置,使之位于前两位(哪个版本常用就靠前): 是使用另一种命令python3 -m pip install requests来安装.

mac系统中搭建apache+mysql+php的开发环境,安装mysql后,登录报错:mac ERROR 1045 (28000): Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: NO)

php新手在mac系统中搭建apache+mysql+php的开发环境(按照这篇博客来操作的:http://my.oschina.net/joanfen/blog/171109?fromerr=xvCsafCe),在安装配置mysql完毕后,登录mysql,报错:mac ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO),折腾很久,终于解决,随手记录下,备忘. 解决方法: 第一步:如

Windows 10 上安装 3D Studio Max 2016 报错的解决办法

在 Windows 10 上安装 3D Stuido Max 2016 报错,无法正常安装,查看日志是 VC 运行时安装错误,经过分析发现在 Windows 10 上已经有这些运行时并且版本比安装包中自带的还要高,所以安装总是失败,分析安装程序配套的 setup.ini 文件,发现里面有运行时安装的配置信息,并且可以忽略错误,因此修改 setup.ini 文件,然后就可以顺利进行安装了,修改后的 setup.ini 文件如所示 #============= VCREDIST Begin ====

Windows Server 2012 R2 安装.NET Framework 3.5报错

简单记录一下,Windows Server 2012 R2 安装.NET Framework 3.5报错,以下是解决方法 加载ISO文件Windows Server 2012 R2,并且在安装的过程中,指定到D:\sources\sxs作为备用路径,再安装,就可以了. 版权声明:本文为博主原创文章,未经博主允许不得转载.