ps2dev / ps2toolchain

This program will automatically build and install a compiler and other tools used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.
BSD 2-Clause "Simplified" License
239 stars 73 forks source link

Installation script fails #72

Closed SignalSpectre closed 3 years ago

SignalSpectre commented 4 years ago

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 commented 4 years ago

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

SignalSpectre commented 4 years ago

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 commented 4 years ago

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

AKuHAK commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

@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 commented 3 years ago

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

rickgaiser commented 3 years ago

Thank you for following up on this @AKuHAK