我在Linux Mint(平台i686-pc-linux-gnu)上有R 3.4.1,但同样的问题发生在以前版本的R和Windows上。当我尝试使用igraph
安装install.packages()
时,会发生以下错误:
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");
^
/usr/lib/R/etc/Makeconf:159: recipe for target 'foreign-graphml.o' failed
make: *** [foreign-graphml.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/home/ninja/R/i686-pc-linux-gnu-library/3.4/igraph’
Warning in install.packages :
installation of package ‘igraph’ had non-zero exit status
我也尝试从github安装,使用这些内容:
install_github("igraph/rigraph")
第二个选项很好用,但安装igraph 1.1.0
。我需要的是1.1.2,我将使用install.packages()
获得的版本。
还有其他选择吗?
答案 0 :(得分:4)
只是google-ed一个解决方案,帮助我解决了这个问题。
<StackLayout (tap)="select(param)">
<Label text="{{description}}" textWrap="true" marginTop="40px" marginBottom="40px">
</Label>
</StackLayout>
在运行DECLARE
l_lat VARCHAR2(100);
l_lng VARCHAR2(100);
l_postcode VARCHAR2(8) := :P2_POSTCODE;
BEGIN
brian.GEOCODE_GM_XML (l_postcode, l_lat, l_lng);
INSERT INTO RESTAURANTS_IMAGES_VIEW (DISTANCE)
VALUES
(
SELECT SDO_GEOM.SDO_DISTANCE
(a.location,
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(l_lat, l_lng, null), null, null), 0.005) distance
FROM RESTAURANTS_IMAGES_VIEW a
);
END;
答案 1 :(得分:0)
似乎libxml不是最新版本。 对于centos,运行
yum install libxml2-devel
然后
install.packages('igraph')
它对我有用。