Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation script fails #72

Closed
SignalSpectre opened this issue Jul 16, 2020 · 8 comments
Closed

Installation script fails #72

SignalSpectre opened this issue Jul 16, 2020 · 8 comments

Comments

@SignalSpectre
Copy link

I'm trying to install the toolchain on Windows Subsystem for Linux but I get these errors:

libtool: link: only absolute run-paths are allowed
make[3]: *** [Makefile:928: libbfd.la] Error 1
make[2]: *** [Makefile:942: all-recursive] Error 1
make[1]: *** [Makefile:1088: all-recursive-am] Error 2
make: *** [Makefile:1644: all-bfd] Error 2
../scripts/001-binutils-2.14.sh: Failed.

I really don't know how I can fix these (I tried searching the correct makefile but failed miserably…).
This happen to me every time even on different computers with a fresh installation of WSL: how can I solve it?

@AKuHAK
Copy link
Contributor

AKuHAK commented Jul 17, 2020

try
sudo apt-get -y install texinfo bison flex
If this solves your problem probably this dependencies should be checked before.

@SignalSpectre
Copy link
Author

Thanks for helping me.
I tried to install bison and flex (texinfo was already installed) but sadly nothing changed: I get the same errors as before (I have some less warning tough).
Could it be that I'm missing some other dependecies?

@Jay-Jay-OPL
Copy link

Just wondering? In case it makes a difference, what versions (? --version) of these dependencies should we make sure we have?

@AKuHAK
Copy link
Contributor

AKuHAK commented Jul 26, 2020

@SignalSpectre it seems that you have some spaces or special characters in some path. This can be your PATH, (for example your username), PS2DEV, or something similar. Please ensure that your Windows username contains only Latin chars without spaces, and that you didn't change PS2DEV path into something with spaces or non-Latin chars, and that WSL username is also only Latin, and that your PC name is also only Latin.

@SignalSpectre
Copy link
Author

Both my Windows and WSL usernames are using only latin characters with no spaces and so is the PS2DEV path.
In the end I managed to install the toolchain (as well as the other components of the development environment) using the ps2dev script as root, could it be a permission problem? (I know it doesn't seem to be so but I'm sure I don't have spaces or non latin characters in both the PS2DEV path and the username).

@AKuHAK
Copy link
Contributor

AKuHAK commented Jul 27, 2020

@SignalSpectre It looks like permission problem, I just thought that you already tried to install it as root. I added a possible solution for this problem into Readme:

export PS2DEV=/usr/local/ps2dev
sudo mkdir -p $PS2DEV
sudo chown -R $USER: $PS2DEV

It is also possible that git clone was made with root privileges, or any middle command by accident was made with root. In such cases, it is very difficult to track down where is "root". If you wish you can completely reinstall PS2DEV with user privileges with the provided solution.

@AKuHAK
Copy link
Contributor

AKuHAK commented Jan 26, 2021

@rickgaiser @fjtrujy @SignalSpectre this issue can be closed - it was produced due to a permission denied problem which now is covered in Readme.

@rickgaiser
Copy link
Member

Thank you for following up on this @AKuHAK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants