我正在尝试从链接或本地文件夹安装旧版本的xgboost(或任何其他)lib,每次我都会面对此消息
ERROR: compilation failed for package 'xgboost'
* removing 'C:/Program Files/R/R-3.2.5/library/xgboost'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.5/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.5\library" "C:/Users/34F5~1/AppData/Local/Temp/RtmpCMgOWd/downloaded_packages/xgboost_0.4-1.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/34F5~1/AppData/Local/Temp/RtmpCMgOWd/downloaded_packages/xgboost_0.4-1.tar.gz’ had non-zero exit status
然后去
"C:/Program Files (x86)/Git/bin/sh.exe": line 8: g++ -m32: command not found
可能是由Min-GW 64安装程序引起的,因为我看到没有创建DLL的消息?
我看到了这一点,但不知道如何解决它
import React from 'react';
import {Component} from 'react';
import {FETCH_DATA} from '../actions/types';
import MapStore from '../stores/MapStore';
import dispatcher from '../dispatcher';
import * as MapActions from '../actions/index';
export default class App extends Component {
constructor() {
super();
this.state = {
meteorites: MapStore.getAll()
}
// Bind methods to 'App'
this.updateData = this.updateData.bind(this);
}
componentWillMount() {
// fetch initial meteorites on page load
this.fetchData();
// if change event was emitted, re-render component
MapStore.on('change', this.updateData);
}
fetchData() {
// Kick off a fetchData action (api request)
MapActions.fetchData();
}
componentWillUnmount() {
MapStore.removeListener('change', this.updateData);
}
updateData() {
this.setState({
meteorites: MapStore.getAll()
});
}
render() {
//console.log("state", this.state.meteorites);
return (
<div className="app-container">Meteorite Landings</div>
);
}
}