Sudo make install pspsdk problem
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
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
First isntall the psptoolchain. If it runs without any probles you have the pspsdk.
Did you add the directories in your PATH?
Did you add the directories in your PATH?
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
Yeah, thanks for noticing that jsharrad. sudo will clear the PATH and other variables. Try something like:
Code: Select all
sudo env "PATH=$PATH" make install
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.ooPo wrote:Using 'sudo -E' will preserve environment variables.
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 :
According to man sudo, -E work even when there is an env_reset in sudoers :
Anyway, nothing forces you to use sudo instead of su.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)