forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Permissions Error[SOLVED]

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
FaderX



Joined: 01 Mar 2008
Posts: 28

PostPosted: Wed May 14, 2008 5:08 pm    Post subject: Permissions Error[SOLVED] Reply with quote

I'm trying to install the SDL, SDL_Mixer & SDL_Image, but when i do "make install" it gets to a certain point and won't do it because of a perm error,

it may be because i have a user name call "Every One" but if thats the prob how do i change it to a different one so it'll work,

But i've changed it to EveryOne in the Control panel a while ago but it didn't do a thing...

Here's the error,

Quote:


Every One@waste-of-tin ~
$ cd "D:\cygwin\SDL_mixer"

Every One@waste-of-tin /SDL_mixer
$ make install
Making install in mikmod
make[1]: Entering directory `/SDL_mixer/mikmod'
make[2]: Entering directory `/SDL_mixer/mikmod'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/SDL_mixer/mikmod'
make[1]: Leaving directory `/SDL_mixer/mikmod'
Making install in timidity
make[1]: Entering directory `/SDL_mixer/timidity'
make[2]: Entering directory `/SDL_mixer/timidity'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/SDL_mixer/timidity'
make[1]: Leaving directory `/SDL_mixer/timidity'
Making install in native_midi
make[1]: Entering directory `/SDL_mixer/native_midi'
make[2]: Entering directory `/SDL_mixer/native_midi'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/SDL_mixer/native_midi'
make[1]: Leaving directory `/SDL_mixer/native_midi'
make[1]: Entering directory `/SDL_mixer'
make[2]: Entering directory `/SDL_mixer'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libSDL_mixer.la' '/usr/local/lib/libSDL_mixe
r.la'
/usr/bin/install -c .libs/libSDL_mixer.dll.a /usr/local/lib/libSDL_mixer.dll.a
base_file=`basename ${file}`
dlpath=`/bin/sh 2>&1 -c '. .libs/'${base_file}'i;echo $dlname'`
dldir=/usr/local/lib/`dirname $dlpath`
test -d $dldir || mkdir -p $dldir
/usr/bin/install -c .libs/SDL_mixer.dll $dldir/SDL_mixer.dll
/usr/bin/install -c .libs/libSDL_mixer.lai /usr/local/lib/libSDL_mixer.la
/usr/bin/install -c .libs/libSDL_mixer.a /usr/local/lib/libSDL_mixer.a
ranlib /usr/local/lib/libSDL_mixer.a
chmod 644 /usr/local/lib/libSDL_mixer.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/SDL" || /usr/bin/mkdir -p "/usr/local/include/SDL"
/usr/bin/install -c -m 644 'SDL_mixer.h' '/usr/local/include/SDL/SDL_mixer.h'
/usr/bin/install: cannot create regular file `/usr/local/include/SDL/SDL_mixer.h': Permission denied

make[2]: *** [install-libSDL_mixerincludeHEADERS] Error 1
make[2]: Leaving directory `/SDL_mixer'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/SDL_mixer'
make: *** [install-recursive] Error 1

Every One@waste-of-tin /SDL_mixer
$


Last edited by FaderX on Sat Jun 21, 2008 2:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun May 18, 2008 12:06 pm    Post subject: Reply with quote

It looks like you're trying to build it natively, not cross-compile for the PSP. Read README.PSP.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun May 18, 2008 12:08 pm    Post subject: Reply with quote

I think jimparis forgot to mention...

you need to put sudo before the make install command

Wally
Back to top
View user's profile Send private message AIM Address
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun May 18, 2008 1:16 pm    Post subject: Reply with quote

No, I didn't forget.
Look at where it's trying to install.
It's clearly wrong.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun May 18, 2008 2:37 pm    Post subject: Reply with quote

jimparis wrote:
No, I didn't forget.
Look at where it's trying to install.
It's clearly wrong.


Yes true however if he wanted to install it for that OS.. Sudo :P
Back to top
View user's profile Send private message AIM Address
FaderX



Joined: 01 Mar 2008
Posts: 28

PostPosted: Sun May 18, 2008 4:36 pm    Post subject: Reply with quote

I've tried installing from my desktop (drive C:) and ive tried installing from many other locations on my D drive, mostly in the cygwin paths and some at D's root. still they all don't work.....perm error :( i'll give sudo a go in a min. :)

Edit: im using cygwin btw if you may not have noticed :s lol
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun May 18, 2008 9:03 pm    Post subject: Reply with quote

You don't appear to have the environment variables for PSPDEV, PSPSDK, and PATH set correctly. It's covered in all tutorials on installing the toolchain and libs. Without the envvars set correctly, nothing will install or work correctly.
Back to top
View user's profile Send private message AIM Address
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Sun May 18, 2008 9:57 pm    Post subject: Reply with quote

Uhmm..don't know, but if JF is right, there's a simple way to test:
Win version of pspsdk rely on "psp-config" executable to find out where it is installed from makefiles. So "psp-config" executable has to be in PATH. Don't really remember how thing work on cygwin but i think it's the same, so try setting current dir to somewhere far from your install directory, then issue the "psp-config" command. If it doesn't work, greetings: you found the problem. Otherwise, the problem is somewhere else: if it keep not working after having read and implemented the ten zillions tutorials all around, then consider hiring an exorcist. (BTW: who the hell with a working brain could choose a username with spaces into it???? :)
PS: now i see..it seems to be installed correctly but the installation cannot be accessed again in test phase... does the file "/usr/local/include/SDL/SDL_mixer.h" exist??
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon May 19, 2008 6:23 am    Post subject: Reply with quote

Does nobody pay attention?
This has nothing to do with sudo.
This has nothing to do with environment variables.
This has nothing to do with cygwin.
Read the README.PSP!
The PSP cross compiled SDL, SDL_mixer, SDL_image should NOT get installed into /usr/local/include, and if they are, that means (without a doubt) that you did not enter the ./configure parameters correctly.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon May 19, 2008 10:51 am    Post subject: Reply with quote

The SDL libs are part of psplibraries. Just make sure you have the toolchain working, have the environment variables set, then just run libraries.sh to get them and a bunch of other libs. Don't bother trying to do them individually.
Back to top
View user's profile Send private message AIM Address
FaderX



Joined: 01 Mar 2008
Posts: 28

PostPosted: Mon May 19, 2008 5:21 pm    Post subject: Reply with quote

jimparis wrote:
Does nobody pay attention?
This has nothing to do with sudo.
This has nothing to do with environment variables.
This has nothing to do with cygwin.
Read the README.PSP!
The PSP cross compiled SDL, SDL_mixer, SDL_image should NOT get installed into /usr/local/include, and if they are, that means (without a doubt) that you did not enter the ./configure parameters correctly.


i just typed in

Code:

   ./autogen.sh
   LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
     ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) \
     --disable-music-mp3 --prefix=$(psp-config --psp-prefix) \
     --disable-music-libmikmod --enable-music-mod


then make, then make install

and it still is a perm error.


J.F. wrote:
The SDL libs are part of psplibraries. Just make sure you have the toolchain working, have the environment variables set, then just run libraries.sh to get them and a bunch of other libs. Don't bother trying to do them individually.


idk were the "libraries.sh" is :S lol. i know my toolchain and environment works because it can compile a EBOOT.PBP correctly and runs fine on the PSP. :)
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon May 19, 2008 6:39 pm    Post subject: Reply with quote

Code:
svn co svn://svn.ps2dev.org/psp/trunk/psplibraries
cd psplibraries
./libraries.sh


You can use a GUI based subversion client, of course. That builds the latest version of most of the extra PSP libraries... from zlib to PSPGL to SDL.

Of course, if you're on Windows, then you could always just install Heimdall's latest pre-built toolchain and libs and avoid all this altogether. ;)

http://forums.ps2dev.org/viewtopic.php?t=9812
Back to top
View user's profile Send private message AIM Address
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Mon May 19, 2008 9:55 pm    Post subject: Reply with quote

what OS are you using?

Have you made your pspdev folder read write and execute (chmod 777)?
Back to top
View user's profile Send private message AIM Address
FaderX



Joined: 01 Mar 2008
Posts: 28

PostPosted: Tue May 20, 2008 9:49 pm    Post subject: Reply with quote

windows xp, and all i know that it compiles pbps n stuff, lets say i havent done the psp folder chmod thing, how would i go by doing it? :)


Edit: Done, fixed, thanks alot everyone
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group