Problems installing Libmikmod

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

Moderators: cheriff, TyRaNiD

Post Reply
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Problems installing Libmikmod

Post by JesusXP »

Hi guys...

I checked out libmikmod to my home dir /home/jesusxp/(libmikmod), when I try to build normally, I get errors:

Code: Select all

***********************************************
Installing libmikmod into /usr/local/pspdev/psp
cp: cannot create regular file '/usr/local/pspdev/psp/include/mikmod.h': Permission denied
make: *** [install] Error 1
I am using "make -f Makefile.psp clean install && make -f Makefile.psp.example clean all kxploit" to build, but it errors! When I try using "sudo make -f Makefile.psp clean install && make -f Makefile.psp.example clean all kxploit", I cannot build because " make: psp-config: Command not found"

I have edited my .bashrc in both profiles (root and jesusxp) to include:
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"

Am I doing something wrong? I know that this is under the compiling with OSX tutorial, but before I had something similar anyways, and both seem to work.. however my sudo still cannot build the libmikmod..?

What should my .bashrc look like? I am using Ubuntu Linux.. Sorry for the newb question.. I've been getting by with how I previously had my export set up in my bashrc, and all my own makefiles use:

Code: Select all

PSPSDK=/usr/local/pspdev/psp/sdk
include $(PSPSDK)/lib/build.mak
I'd like to change this so that my Makefiles look more like everyone elses... with the env variables & not the path so explicitly stated.. Thank you!!
User avatar
harleyg
Posts: 123
Joined: Wed Oct 05, 2005 6:15 am

Post by harleyg »

cp: cannot create regular file '/usr/local/pspdev/psp/include/mikmod.h': Permission denied
Ensure you have read/write access to the file.
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

UPDATE -- FIXED

Thats all part of the trouble my friend...

I am used to being able to install other parts of the SDK, pspgl, libmad, libpng, zlib, but in this instance, its not working..

I assume it cannot write/create the file in /usr/local/pspdev/psp/include because I need to be root, but when i try to sudo install, it doesnt recognize psp-config

Anyone else have an idea, or rather, an option to try!?
--------------------------------------------------------------------------

Worked... I guess sudo doesnt work, I had to sudo -i and than run it inside the dir ---sorry
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Try "sudo bash" - it will leave you in a terminal at root level. Then you can just make and make install to your heart's delight.
Post Reply