Permissions Error[SOLVED]

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
FaderX
Posts: 28
Joined: Sat Mar 01, 2008 12:38 pm

Permissions Error[SOLVED]

Post by FaderX »

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,

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.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

It looks like you're trying to build it natively, not cross-compile for the PSP. Read README.PSP.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

I think jimparis forgot to mention...

you need to put sudo before the make install command

Wally
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

No, I didn't forget.
Look at where it's trying to install.
It's clearly wrong.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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
FaderX
Posts: 28
Joined: Sat Mar 01, 2008 12:38 pm

Post by FaderX »

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
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

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??
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
FaderX
Posts: 28
Joined: Sat Mar 01, 2008 12:38 pm

Post by FaderX »

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: Select all

   ./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. :)
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Code: Select all

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
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

what OS are you using?

Have you made your pspdev folder read write and execute (chmod 777)?
FaderX
Posts: 28
Joined: Sat Mar 01, 2008 12:38 pm

Post by FaderX »

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
Post Reply