无法使用Cygwin安装宝石 - 未定义引用`libiconv'

时间:2017-06-14 18:08:07

标签: ruby gcc cygwin

尝试<!-- SEGMENTOS --> <div padding> <ion-segment [(ngModel)]="accion"> <ion-segment-button value="crear"> Crear zona </ion-segment-button> <ion-segment-button value="modificar"> Modificar zona </ion-segment-button> </ion-segment> </div> <!-- CREAR ZONA --> <ion-card center *ngIf="accion=='crear'"> <ion-card-content> <ion-list> <ion-item> <ion-label floating> Nombre del area: </ion-label> <ion-input type="text" [(ngModel)]="nombreArea"> </ion-input> </ion-item> </ion-list> <div padding> <label>Dispositivo asociado:</label> <ion-list> <ion-item *ngFor="let dispositivo2 of dispositivosAnadir"> <ion-label> {{dispositivo2.name}} </ion-label> <ion-checkbox color="royal" [(ngModel)]="dispositivo2.selected" value="dispositivo2.value"></ion-checkbox> </ion-item> </ion-list> </div> <div padding> <button (click)="marcarTodos()" ion-button icon-left color="royal"> <ion-icon name="checkmark-circle"></ion-icon> Marcar todos </button> <button (click)="desmarcarTodos()" ion-button icon-left color="royal"> <ion-icon name="radio-button-off"></ion-icon> Desmarcar todos </button> </div> <div padding> <button (click)="startShape()" [disabled]="pintando" ion-button icon-left color="royal"> <ion-icon name="brush"></ion-icon> Pintar zona </button> <button (click)="endShape()" [disabled]="!pintando" ion-button icon-left color="royal"> <ion-icon name="flag"></ion-icon> Fin pintar zona </button> <button (click)="cancelShape()" [disabled]="!pintando" ion-button icon-left color="royal"> <ion-icon name="close"></ion-icon> Cancelar </button> </div> </ion-card-content> </ion-card> <!-- MODIFICAR ZONA --> <ion-card center *ngIf="accion=='modificar'"> <ion-card-content> <ion-list> <ion-item> <ion-label>Seleccionar zona: </ion-label> <ion-select [(ngModel)]="zonasSelector.seleccionada" (ionChange)="cambioZonaSeleccionada()"> <ion-option *ngFor="let zona of zonasSelector.array" [value]="zona.value">{{zona.name}}</ion-option> </ion-select> </ion-item> </ion-list> <ion-list> <ion-item *ngFor="let dispositivo of dispositivosModificar"> <ion-label> {{dispositivo.name}} </ion-label> <ion-checkbox color="royal" [(ngModel)]="dispositivo.selected" value="dispositivo.value" [disabled]="zonasSelector.seleccionada == null"></ion-checkbox> </ion-item> </ion-list> <div padding *ngIf="accion=='modificar'"> <button ion-button icon-left (click)="modificarZona()" [disabled]="zonasSelector.seleccionada == null" color="royal"> <ion-icon name="checkmark"></ion-icon> Modificar </button> <button ion-button icon-left (click)="showConfirmDelete()" [disabled]="zonasSelector.seleccionada == null" color="royal"> <ion-icon name="trash"></ion-icon> Eliminar </button> </div> </ion-card-content> </ion-card> 时,我得到以下输出:

gem install awsudo

/home/ctote/.gem/ruby/2.3.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:83:in `apply_patch': Failed to complete patch task; patch(1) or git(1) is required. (RuntimeError) from /home/ctote/.gem/ruby/2.3.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:91:in `block in patch' from /home/ctote/.gem/ruby/2.3.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:89:in `each' from /home/ctote/.gem/ruby/2.3.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:89:in `patch' from /home/ctote/.gem/ruby/2.3.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:151:in `cook' from extconf.rb:365:in `block (2 levels) in process_recipe' from extconf.rb:257:in `block in chdir_for_build' from extconf.rb:256:in `chdir' from extconf.rb:256:in `chdir_for_build' from extconf.rb:364:in `block in process_recipe' from extconf.rb:262:in `tap' from extconf.rb:262:in `process_recipe' from extconf.rb:548:in `<main>' 有:

mkmf.log

但我不确定该怎么做。 我正在使用Cygwin;不知道下一步该做什么。

1 个答案:

答案 0 :(得分:1)

我的建议是运行cygwin-setup.exe /使用apt-cyg安装libiconv-devel

并重新运行bundle install awsudo

只是一个猜测。我相信我在使用原生扩展安装nokogiri时遇到了类似的问题。不幸的是,我现在无法访问系统来查看日志以获取具体细节。 HTH