| View previous topic :: View next topic |
| Author |
Message |
someone Idiot
Joined: 13 Sep 2005 Posts: 74
|
Posted: Sun Nov 22, 2009 11:47 am Post subject: Sudo make install pspsdk problem |
|
|
When I do sudo make install I get this output: (it's translated)
Making install in src
make[1]: enter to directory `/home/user/pspsdk/src'
Making install in asfparser
make[2]: enter to directory `/home/user/pspsdk/src/asfparser'
make[3]: enter to directory `/home/user/pspsdk/src/asfparser'
test -z "/usr/local/pspdev/psp/sdk/lib" || /bin/mkdir -p "/usr/local/pspdev/psp/sdk/lib"
/usr/bin/install -c -m 644 libpspasfparser.a '/usr/local/pspdev/psp/sdk/lib'
( cd '/usr/local/pspdev/psp/sdk/lib' && psp-ranlib libpspasfparser.a )
/bin/bash: line 5: psp-ranlib: command not found
make[3]: *** [install-libLIBRARIES] Error 127
make[3]: quit from directory `/home/user/pspsdk/src/asfparser'
make[2]: *** [install-am] Error 2
make[2]: quit from directory `/home/user/pspsdk/src/asfparser'
make[1]: *** [install-recursive] Error 1
make[1]: quit from directory `/home/user/pspsdk/src'
make: *** [install-recursive] Error 1 |
|
| Back to top |
|
 |
m0skit0
Joined: 02 Jun 2009 Posts: 226
|
Posted: Sun Nov 22, 2009 1:50 pm Post subject: |
|
|
http://ps2dev.org/psp/Tools/Toolchain _________________
| The Incredible Bill Gates wrote: | | The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers. |
|
|
| Back to top |
|
 |
someone Idiot
Joined: 13 Sep 2005 Posts: 74
|
Posted: Sun Nov 22, 2009 9:00 pm Post subject: |
|
|
| Before installing pspsdk I installed psptoolchain without problems. I used the lasts svn versions of both. |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sun Nov 22, 2009 11:28 pm Post subject: |
|
|
First isntall the psptoolchain. If it runs without any probles you have the pspsdk.
Did you add the directories in your PATH? _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
someone Idiot
Joined: 13 Sep 2005 Posts: 74
|
Posted: Mon Nov 23, 2009 2:08 am Post subject: |
|
|
| Yes |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Mon Nov 23, 2009 4:37 am Post subject: |
|
|
| If you don't have the file "psp-ranlib" anywhere on your system, the toolchain was not built or installed properly. If you do have "psp-ranlib", then your PATH is not set up correctly to point to it. |
|
| Back to top |
|
 |
someone Idiot
Joined: 13 Sep 2005 Posts: 74
|
Posted: Mon Nov 23, 2009 9:21 am Post subject: |
|
|
In ~/.bashrc at the end of file I have:
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"
psp-ranlib is in /usr/local/pspdev/bin and libpspasfparser.a in /usr/local/pspdev/psp/sdk/lib |
|
| Back to top |
|
 |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Mon Nov 23, 2009 10:53 am Post subject: |
|
|
| sudo doesn't keep your user environment variables though unless you tell it to |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Mon Nov 23, 2009 1:16 pm Post subject: |
|
|
Yeah, thanks for noticing that jsharrad. sudo will clear the PATH and other variables. Try something like:
| Code: | | sudo env "PATH=$PATH" make install |
|
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Mon Nov 23, 2009 6:16 pm Post subject: |
|
|
| Using 'sudo -E' will preserve environment variables. |
|
| Back to top |
|
 |
someone Idiot
Joined: 13 Sep 2005 Posts: 74
|
Posted: Tue Nov 24, 2009 12:21 am Post subject: |
|
|
| With sudo env "PATH=$PATH" make install it worked please change it in the readme :) |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Nov 24, 2009 2:20 am Post subject: |
|
|
| ooPo wrote: | | Using 'sudo -E' will preserve environment variables. | Ubuntu versions prior to Karmic were compiled with SECURE_PATH which overrides the PATH even with -E. On Karmic I think that's fixed, but /etc/sudoers still contains env_reset by default which disables -E. So it's not quite that easy -- the env trick is a more sure-fire way to get it through. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Nov 24, 2009 2:47 am Post subject: |
|
|
| Ahh. I just did a quick test with $PS2DEV, but the path is the important part. :) |
|
| Back to top |
|
 |
Mon Ouïe
Joined: 05 Jul 2009 Posts: 36
|
Posted: Tue Nov 24, 2009 3:11 am Post subject: |
|
|
You could also put your export in the /etc/profile.
According to man sudo, -E work even when there is an env_reset in sudoers :
| Quote: | | The -E (preserve environment) option will override the env_reset option in sudoers(5)). It is only available when either the matching command has the SETENV tag or the setenv option is set in sudoers(5) |
Anyway, nothing forces you to use sudo instead of su. |
|
| Back to top |
|
 |
|