Choco script installs fine but command fails with message
I just downloaded and successfully run the uru.0.8.4.nupkg chocolatey recipe but when I try to run:
uru admin install 242
it fails with the following message:
[ERROR] uru_rt.exe must be present in a directory on PATH
Other commands seem to work fine.
My environment is Windows 10 Pro, version 1703, OS Build 15063.632
Comments (6)
-
Account Deleted reporter -
Account Deleted reporter Added the uru_rt.exe folder "C:\ProgramData\chocolatey\lib\uru\tools" to system PATH.
c:\>uru admin install 242 [ERROR] must install from same directory as uru_rt.exe c:\>
Finally tried running from the uru_rt.exe folder and got:
C:\ProgramData\chocolatey\lib\uru\tools>uru admin install 242 ---> Installing uru into C:\ProgramData\chocolatey\lib\uru\tools panic: unable to create `uru.bat` script wrapper goroutine 1 [running]: bitbucket.org/jonforums/uru/internal/command.adminInstall(0x10c2c270) C:/Users/Jon/Documents/GoDev/mygo/src/bitbucket.org/jonforums/uru/internal/command/admin_install_windows.go:72 +0x892 bitbucket.org/jonforums/uru/internal/command.(*Router).Dispatch(0x10c0c1c0, 0x10c2c270, 0x10c16088, 0x7) C:/Users/Jon/Documents/GoDev/mygo/src/bitbucket.org/jonforums/uru/internal/command/router.go:101 +0x62 bitbucket.org/jonforums/uru/internal/command.admin(0x10c2c270) C:/Users/Jon/Documents/GoDev/mygo/src/bitbucket.org/jonforums/uru/internal/command/admin.go:37 +0x96 bitbucket.org/jonforums/uru/internal/command.(*Router).Dispatch(0x10c0c1d0, 0x10c2c270, 0x10c16078, 0x5) C:/Users/Jon/Documents/GoDev/mygo/src/bitbucket.org/jonforums/uru/internal/command/router.go:101 +0x62 main.main() C:/Users/Jon/Documents/GoDev/mygo/src/bitbucket.org/jonforums/uru/cmd/uru/main.go:55 +0x34b C:\ProgramData\chocolatey\lib\uru\tools>
-
repo owner Thanks for the details. That does look ugly.
I suspect the problem is you're trying to run
uru admin install 242
when you don't need to. When you install via chocolatey, you shouldn't need to do the uru install dance since my choco install script should set that up for you. You should be able to just start usinguru
and everything just works. For example, register your first ruby withuru
similar touru admin add C:\Apps\rubies\ruby-2.3\bin
etc.Based on your "Other commands seem to work fine" comment from your original post, I suspect everything's OK on your system, but let's double check the current state of your choco uru install. Reply back with a dir listing for your
C:\ProgramData\chocolatey\bin
andC:\ProgramData\chocolatey\lib\uru\tools
dirs and choco version. -
Account Deleted reporter Hey Jon thanks for the follow up.
Do you mean download and install some ruby version I got somewhere else and then register it using uru?
Bellow the info requested:
C:\ProgramData\chocolatey\bin>dir Volume in drive C is OS Volume Serial Number is 208B-8D7E Directory of C:\ProgramData\chocolatey\bin 20/11/2017 13:08 <DIR> . 20/11/2017 13:08 <DIR> .. 30/08/2017 16:14 143.496 choco.exe 30/08/2017 16:14 143.496 chocolatey.exe 30/08/2017 16:14 143.496 cinst.exe 30/08/2017 16:14 143.496 clist.exe 30/08/2017 16:14 143.496 cpack.exe 30/08/2017 16:14 143.496 cpush.exe 30/08/2017 16:14 143.496 cuninst.exe 30/08/2017 16:14 143.496 cup.exe 30/08/2017 16:14 143.496 cver.exe 30/08/2017 16:14 2.283 RefreshEnv.cmd 20/11/2017 13:08 327 uru.bat 20/11/2017 13:08 334 uru.ps1 20/11/2017 12:49 21 _processed.txt 13 File(s) 1.294.429 bytes 2 Dir(s) 409.949.224.960 bytes free C:\ProgramData\chocolatey\bin>
C:\ProgramData\chocolatey\lib\uru\tools>dir Volume in drive C is OS Volume Serial Number is 208B-8D7E Directory of C:\ProgramData\chocolatey\lib\uru\tools 20/11/2017 13:08 <DIR> . 20/11/2017 13:08 <DIR> .. 20/11/2017 13:08 1.968 chocolateyinstall.ps1 20/11/2017 13:08 490 chocolateyuninstall.ps1 27/08/2017 14:09 1.866.752 uru_rt.exe 20/11/2017 13:08 0 uru_rt.exe.ignore 4 File(s) 1.869.210 bytes 2 Dir(s) 409.945.853.952 bytes free C:\ProgramData\chocolatey\lib\uru\tools>
-
repo owner Both chocolatey dirs look to have a good
uru
install.Next step is exactly as you mention.
Download and install a ruby, say from RubyInstaller. Once installed, register that ruby with
uru
via theuru admin add
command. For example, if you installed the ruby toC:\rubies\ruby-2.4
you then register that installed ruby viauru admin add C:\rubies\ruby-2.4\bin
.Once registered, you can use
uru
similar to these examples. -
repo owner - changed status to closed
Resolved.
- Log in to comment
If I try to execute manually from the Command Promt I get an error message.
If I do the same on Git-Bash I get this: