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 

pksh under MACOS X 10.3

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



Joined: 27 May 2004
Posts: 2

PostPosted: Thu May 27, 2004 4:00 am    Post subject: pksh under MACOS X 10.3 Reply with quote

Need help to compile pksh under Mac OSX. The Dev-Tools are installed
and the readline.h and the other componets are in the include directory.
After i type make into my console it give me an error:

/usr/bin/gcc common.o pukklink.o pksh.o -o pksh -lreadline -lcurses -lncurses -L/usr/local/lib -I/usr/local/include -I/usr/include
ld: can't locate file for: -lreadline
make: *** [pksh] Error 1

What is wrong?

Need i the binary of readline?

Need answers!

Thanx
Back to top
View user's profile Send private message
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Thu May 27, 2004 4:11 am    Post subject: Reply with quote

Yes you need binary.
-lreadline means that the library called readline should be linked along with other objects. Find the library readline (or compile it) and edit the makefile. Insert the -Ldirectory/to/the/library just before -lreadline.
Back to top
View user's profile Send private message
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Thu May 27, 2004 4:24 am    Post subject: Reply with quote

readline is a gnu package. If you need to rebuild it from source, the most recent tarball is at http://ftp.gnu.org/pub/gnu/readline/readline-4.3.tar.gz but I do not know if any tweaks are needed for the ps2dev environment. The home page is at http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html

There are probably ps2dev binaries around somewhere...
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu May 27, 2004 4:55 am    Post subject: Reply with quote

Unless you need pksh for something specific, there are other clients you could use. I hear ps2client is nice. :)

( http://www.oopo.net/consoledev )
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Thu May 27, 2004 6:55 am    Post subject: Reply with quote

ooPo: you are good at self promoting, I need to buy your book ;)

MainframeOSX: as ooPo has said you need to let the compiler know where libreadline.a is.usually it is installed in /usr/local/lib, atleast here on my powerbook. ( and that is in the -L path in the Makefile ).
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Thu May 27, 2004 7:18 am    Post subject: Reply with quote

mharris wrote:
readline is a gnu package. If you need to rebuild it from source, the most recent tarball is at http://ftp.gnu.org/pub/gnu/readline/readline-4.3.tar.gz but I do not know if any tweaks are needed for the ps2dev environment. The home page is at http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html

There are probably ps2dev binaries around somewhere...
OK, so I'm brain-dead from lack of sleep; you need the lib for OSX, not ps2dev (erm, where's the keyboard...)

Like bd said, you should have it somewhere like /usr/local/lib -- try 'locate libreadline' at a shell prompt. It should find a .a file and some .so files. If they're not there, you'll need to build from source or get a binary package from somewhere.
Back to top
View user's profile Send private message AIM Address
calvin



Joined: 02 Apr 2004
Posts: 6
Location: Detroit, MI, USA

PostPosted: Wed Jun 02, 2004 12:26 am    Post subject: Reply with quote

On OS X, you can also use the Fink pre-compiled packages.

http://fink.sourceforge.net/

They default to being in /sw/{lib,include}, so for the linking stage, you'd have "-L/sw/lib" as part of your command line along with the "-lreadline"
(translates to look in /sw/lib for libreadline.a).

This is what I did for the compiler chain I built back in October. (Taking a page from ooPo's self-promotion):

http://ps2dev.nextgened.com/ps2dev/downloads/mac/macosx.2.8-gcc331%2BIOP-EE-gcc323%2Bpksh.tar.gz

As you can guess from the name, my compile of pksh is in there as well.

However, I've since also included ps2client in my toolbox, and it is quite nice. I still bounce back and forth quite a bit, though. (For no particular reason - they both work and I use which ever comes to mind first. I have ps2client in several of my scripts though).

As soon as I get the SDL port done, I'll re-vamp the Macintosh tool line again to update it with the complete compiler, pksh, ps2client, PS2SDK, and SDL setup. Right now it only includes the compilers and pksh, IIRC.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
MainframeOSX



Joined: 27 May 2004
Posts: 2

PostPosted: Tue Jun 08, 2004 5:27 am    Post subject: Thanx Reply with quote

Thanx to all where have give my an answers! It work's fine on MacOS X.
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Tue Jun 08, 2004 6:57 pm    Post subject: Reply with quote

Ofcourse it works :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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