Skip to content

failed install #31

@CouldBeThis

Description

@CouldBeThis
$ curl https://raw.githubusercontent.com/souvikinator/lsx/master/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100  1980  100  1980    0     0   2379      0 --:--:-- --:--:-- --:--:--  2379
Downloading required scripts...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100   528  100   528    0     0    932      0 --:--:-- --:--:-- --:--:--   932
can't load package: package github.com/souvikinator/lsx@latest: cannot find package "github.com/souvikinator/lsx@latest" in any of:
	/usr/lib/go-1.10/src/github.com/souvikinator/lsx@latest (from $GOROOT)
	/home/shared/applications/go/src/github.com/souvikinator/lsx@latest (from $GOPATH)
ERROR: Installation failed!

Maybe I found the problem but not sure. I see in install.sh:

ZSHRC="$HOME/.zshrc"
ZSH_DIR="$HOME/.oh-my-zsh"
ZSH_FUNC_DIR="$ZSH_DIR/functions"

I don't keep my .zshrc or .oh-my-zsh in those locations; I keep them in a subdirectory of ~. I tried downloading the install.sh, hardcoding the first 2 variable and running it but got the same result so maybe it's not the point of failure.

I see that the file ~/.config/lsx/lsx.sh is present but beyond that I can't follow what is supposed to be happening so not sure what's the problem.

By the way I am not sure if this is helpful but as to the zsh files, the way I changed it from default is by setting the $ZDOTDIR environment variable in .zshenv. (Info on SE) As far as I found (I didn't look too hard) it wasn't possible to actually charge the name of the .zshrc file, which I would have preferred because it's sort of stupid to have a hidden file in a hidden directory. If that were possible and someone had done it then the below wouldn't work.

At the top of the $ZDOTDIR/.zshrc file, the oh my zsh installer added:

export ZSH="$ZDOTDIR/.oh-my-zsh"

So as per the above if I was writing this I would probably use:

ZSHRC="$ZDOTDIR/.zshrc"
ZSH_DIR="$ZSH"

but you should definitely check that with someone who knows what of they speak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions