2012-03-24 15 views
23

Il mio sistema operativo è Windows 7 e stavo per collegare il mio database MySQL localhost con il database condiviso Heroku, in un punto del tempo, ho ottenuto il Errore nel file libmysql.dll mancante, quindi ho cercato e scaricato il file dll e l'ho salvato nella directory ruby ​​/ bin. Ancora quando stavo per connettermi, questa volta mostra l'errore ruby.exe non è riconosciuto come comando interno o esterno, ecco come appare l'errore."ruby.exe non è riconosciuto come comando interno o esterno" in windows 7

Invio schema

'"ruby.exe"' is not recognized as an internal or external command,TA: --:--:-- 
operable program or batch file. 
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:07 
operable program or batch file. 
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:04 
operable program or batch file. 
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:02 
operable program or batch file. 
'"ruby.exe"' is not recognized as an internal or external command,TA: 00:00:01 
operable program or batch file. 

schema: 100% | =============================== =========== | Ora: 00:00:06 '"ruby.exe"' non è riconosciuto come comando interno o esterno, programma operativo o file batch.

C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/lib/vendor/okj 
son.rb:82:in `valparse': unexpected nil (OkJson::ParserError) 
    from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/vendor/okjson.rb:64:in `textparse' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/vendor/okjson.rb:43:in `decode' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/taps/operation.rb:419:in `push_indexes' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/taps/operation.rb:408:in `block in run' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/taps/operation.rb:203:in `call' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/taps/operation.rb:203:in `catch_errors' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/taps/operation.rb:405:in `run' 
from C:/Program Files/Heroku/ruby/lib/ruby/gems/1.9.1/gems/taps-0.3.23/l 
ib/taps/cli.rb:171:in `clientxfer' 
from C:/Users/JOE ARPUTHAN/.heroku/client/lib/heroku/command/db.rb:194:i 
n `taps_client' 
from C:/Users/JOE ARPUTHAN/.heroku/client/lib/heroku/command/db.rb:35:in 
`push' 
from C:/Users/JOE ARPUTHAN/.heroku/client/lib/heroku/command.rb:129:in ` 
run' 
from C:/Program Files/Heroku/heroku:27:in `<main>' 
+1

Risposta Linux: ruby ​​non è nel tuo '$ PATH'. Penso che sia '% PATH%' in Windows. – Reactormonk

+0

Assicurati di selezionare la risposta di Boris corretta se ha funzionato per te, e forse lo fai anche per le altre tue domande. –

+0

Vorrei poter raddoppiare più questo! : D –

risposta

48

Non hai percorso s' il ruby.exe nella variabile PATH.

in Windows 7 è possibile impostare da Start menu -> tasto destro del mouse My computer -> ultima opzione a sinistra (credo che fosse advanced settings) -> Variabili d'ambiente -> in system variables sottomenu trovare Path doppio clic su di esso e aggiungere; quindi il percorso della cartella bin della tua installazione di ruby. Questo dovrebbe risolverlo (dovrai riavviare tutti i prompt di comando che hai lanciato).

+4

che ha funzionato per me, grazie a Ton tazz e boris [set path =% path%; "c: \ Programmi \ Heroku \ ruby ​​\ bin"] mettendo questo nel prompt dei comandi risolto, grazie ancora – joar

+0

E come sempre, prova a riavviare il sistema. Ha funzionato per me. – TheFrost

+0

@TheFrost Per me è sufficiente avviare un nuovo terminale senza riavviare l'intero sistema –

Problemi correlati