我为自己的无知道歉 - 我对此很新 - 但我已经尝试了一切,并且无法使用RVM安装1.9.2.我相信我已经正确安装了RVM,当我去安装1.9.2时,当ruby尝试编译时,我的make日志中出现以下错误:
ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format which is
not the architecture being linked (x86_64) for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [../../../.ext/x86_64-darwin10.6.0/digest/md5.bundle] Error 1
make: *** [mkmain.sh] Error 1
Run Code Online (Sandbox Code Playgroud)
其他一些信息:我在32位运行OS X,并收到类似的错误 - 用我认为(i36)替换(x86_64).我现在以64位运行.
我已经完成了TinMan要求我做的所有事情,但仍无济于事 - 只想指出我可以安装1.8.7就好了.试图安装1.9.1和1.9.2给出了以下错误消息:
`Installing Ruby from source to: /Users/tl/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...
ruby-1.9.2-p180 - #fetching
ruby-1.9.2-p180 - #downloading ruby-1.9.2-p180, this may take a while depending on your …Run Code Online (Sandbox Code Playgroud) 一般是Android和Java的新手,我正在学习如何进行JSON调用.为此,我正在遵循本指南:http://mobiforge.com/design-development/consuming-json-services-android-apps
这就是让我感到困惑的地方.该教程的作者希望读者调用此API:http://ws.geonames.org/findNearByWeatherJSON? la = 37lng = 122
以这种格式返回JSON对象:
{
"weatherObservation": {
"clouds":"scattered clouds",
"weatherCondition":"n/a",
"observation":"KCFV 090852Z AUTO 06005KT
10SM SCT090 SCT110 24/20 A3000 RMK AO2
SLP148 T02390200 53002",
"windDirection":60,
"ICAO":"KCFV",
"seaLevelPressure":1014.8,
"elevation":225,
"countryCode":"US",
"lng":-95.56666666666666,
"temperature":"23.9",
"dewPoint":"20",
"windSpeed":"05",
"humidity":78,
"stationName":"Coffeyville, Coffeyville
Municipal Airport",
"datetime":"2012-07-09 08:52:00",
"lat":37.083333333333336
}
}
Run Code Online (Sandbox Code Playgroud)
非常简单,除了API不再有效/有限制.为了完成项目,我选择调用此API:http://api.openweathermap.org/data/2.5/weather?la = 37.77&rn = 1222.419
以这种格式返回JSON
{
"coord": {
"lon": 139,
"lat": 35
},
"sys": {
"country": "JP",
"sunrise": 1369769524,
"sunset": 1369821049
},
"weather": …Run Code Online (Sandbox Code Playgroud)