BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 2nd, 2004, 12:04 PM
moorehed moorehed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 192 moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 5 h 12 m 41 sec
Reputation Power: 12
Help installing/compiling IMAP in FreeBSD for use with PHP

well, i dont know a whole lot about FreeBSD in general, so getting PHP to compile with imap support is not proving very simple.

It has worked at one point, but now i can't get it to work. I did a pkg_info and got this:

%pkg_info
XFree86-3.3.6_10 X11R6.3/XFree86 core distribution
aeromail-1.45 AeroMail is a web-based e-mail client written in PHP.
analog-5.03 An extremely fast program for analysing WWW logfiles
apache+mod_ssl-1.3.22+2.8.5_3 The Apache 1.3 webserver with SSL/TLS functionality
apacherestart-1.0 A script to affect how quickly apache restarts
autoreply-1.0 Autoreply for Sendmail
bash-2.05a The GNU Bourne Again Shell
cclient-2001,1 Mark Crispen's C-client mail access routines
cclient-4.7c Mark Crispen's C-client mail access routines
compat3x-i386-4.4.20011011 A convenience package to install the compat3x libraries
expect-5.32.1 A sophisticated scripter based on tcl/tk
freetype-1.3.1_1 A free and portable TrueType font rendering engine
freetype2-2.0.5 A free and portable TrueType font rendering engine
frontpage-5.0 The Apache webserver with MS Frontpage 2002 Extentions
gd-1.8.4_4 A graphics library for fast PNG creation
gettext-0.10.35 GNU gettext package
glib-1.2.10_4 Some useful routines of C programming
imap-uw-2001,1 University of Washington IMAP4rev1/POP2/POP3 mail servers
imap-uw-4.7c University of Washington IMAP4rev1/POP2/POP3 mail servers
inetctl-1.0 The inetctl system utility
javavmwrapper-1.3 Wrapper script for various Java Virtual Machines
jdk-1.1.8 Sun's Java Developers Kit
jpeg-6b_1 IJG's jpeg compression utilities
libtool-1.3.4_2 Generic shared library support script
linux_base-6.1 The base set of packages needed in Linux mode
lynx-ssl-2.8.4.1 A non-graphical, text-based https-enabled World-Wide Web cl
mailctl-1.0 Mail control program for starting, stoping, and restarting
mailmanage-1.0 A command line tool for dealing with everything mail. (VAD
mm-1.1.3 Shared memory library for applications with pre-forked proc
mod_auth_mysql-2.20 Allows users to use MySQL databases for user authentication
mod_perl-1.26 Embeds a Perl interpreter in the Apache server
mod_php4-4.0.6_5 PHP4 module for Apache
mysql-client-3.23.46 Multithreaded SQL database (client)
mysql-server-3.23.46 Multithreaded SQL database (server)
p5-Curses-1.05 Perl5 module for terminal screen handling and optimization
p5-DBI-1.20 The perl5 Database Interface. Required for DBD::* modules
p5-Data-ShowTable-3.3 Perl5 module to pretty-print arrays of data
p5-Expect-1.07 Perl module inspired by the Tcl version of Expect
p5-GD-1.33 A perl5 interface to Gd Graphics Library
p5-GD-Graph-1.33 Graph plotting module for perl5
p5-GD-Graph3d-0.55 Creates 3D charts with GD::Graph and GD
p5-GD-TextUtil-0.80 Text utilities for use with GD drawing package
p5-HTML-Parser-3.25 Perl5 module for parse HTML tag
p5-HTML-Tagset-3.03 Some useful data table in parsing HTML
p5-IO-Stty-0.02 Perl5 module that hacks around IO::File deficiencies
p5-IO-Tty-0.04 Flexible I/O Perl5 module that allows manipulation of pseud
p5-Mysql-modules-1.2216 Perl5 modules for accessing MySQL databases
p5-Net-Daemon-0.36 Perl5 extension for portable daemons
p5-PlRPC-0.2016 Perl module for writing RPC servers and clients
p5-Storable-1.0.13 Persistency for perl data structures
pdksh-5.2.14 The Public Domain Korn Shell
phpMyAdmin-2.1.0 A set of PHP3-scripts to adminstrate MySQL over the WWW.
pine-4.40 PINE(tm) -- a Program for Internet News & Email
pkgconfig-0.8.0 An utility used to retrieve information about installed lib
png-1.2.0_1 Library for manipulating PNG images
proftpd-1.2.4 Highly configurable ftp daemon
qpopper-3.1.b5 Berkeley POP 3 server (now maintained by Qualcomm)
qpopper-4.0.3_1 Berkeley POP 3 server (now maintained by Qualcomm)
quotactl-1.0 Wrapper script for quota commands
samba-2.2.8a A free SMB and CIFS client and server for UNIX
setpass-1.0 A commandline tool for setting a user's password
setquota-0.1 Command line quota tools
settz-1.0 Command line tool for setting the timezone
stunnel-3.21c SSL encryption wrapper for standard network daemons
super-3.14.0 Allow others to run commands as root
tcl-8.2.3_1 Tool Command Language
tcl-8.3.4_3 Tool Command Language
tk-8.2.3 Graphical toolkit for TCL
tk-8.3.4_1 Graphical toolkit for TCL
userctl-1.0 A commandline tool for adding, modifying, and deleting user
userpriv-1.0 A commandline tool for editting user privileges
usertool-1.0 A tool to allow a user to change their shell, full name, an
vadduser-1.0 A nice, dummy proof adduser script
vaddvhost-1.0 Nice, dummy proof script for adding virtual hosts to vhosts
vchmod-1.0 A modified version of chmod
vchown-1.0 A modified version of chown and chgrp
vedituser-1.0 A nice dummy proof edit user script
vfpconfig-1.0 A shell script for playing nice with the Frontpage Extensio
vinstall-1.0 Package Installing Script
vlogman-1.0 Command line tool to manage log files
vpasswd-1.0 A modified passwd binary
vrm-1.0 A modified rm command
vs_perl_modules-1.0 Linked Installer Package for png-1.0.8_1
vuserpriv-1.0 A nice, dummy proof priv (group) editor
xferstats-2.14 Compiles information about file transfers from logfiles
xinetd-2.3.3 Replacement for inetd with better control and logging
xpm-3.4k The X Pixmap library


so it looks like Imap is installed? Yes? No? however it looks like my imap directory (must be specified when compiling php) should look something like /imap-2002b/ or something. However when I do a locate imap i find no directories resembling that. So i'm kindof confused.

I tried downloading the cclient FreeBSD port... when trying to make it i got this:

%make
>> imap-2004.tar.Z doesn't seem to exist in /usr/tmp/usr/ports/distfiles/.
>> Attempting to fetch from ftp://216.25.10.198/distfiles/.
fetch: imap-2004.tar.Z: File unavailable (e.g., file not found, no access)
>> Attempting to fetch from ftp://ftp.cac.washington.edu/imap/./.
Receiving imap-2004.tar.Z (2220333 bytes): 100%
2220333 bytes transferred in 11.6 seconds (186.84 kBps)
===> Extracting for cclient-2004,1
>> Checksum OK for imap-2004.tar.Z.
===> Patching for cclient-2004,1
===> Applying FreeBSD patches for cclient-2004,1
-e: not found
*** Error code 127

Stop in /usr/local/www/vhosts/xxx/htdocs/php43/cclient.
*** Error code 1

Stop in /usr/local/www/vhosts/xxx/htdocs/php43/cclient.
*** Error code 1

Stop in /usr/local/www/vhosts/xxx/htdocs/php43/cclient.
*** Error code 1

Stop in /usr/local/www/vhosts/xxx/htdocs/php43/cclient.
*** Error code 1

this seems like it should not be difficult... i somehow need ot figure out what path to tell php to use for imap... however i dont know how to get this. any help would be appreciated.

Reply With Quote
  #2  
Old July 2nd, 2004, 12:14 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
well, I don't know much about this particular program, but if you want to find something with locate, make sure the db is up to date:

/usr/libexec/locate.updatedb


or you can just use find

find / -name file_or_directory_name -print

-Steven
__________________
I like not this news, bring me some other news! –King Richard, Black Adder

Reply With Quote
  #3  
Old July 2nd, 2004, 01:10 PM
moorehed moorehed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 192 moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 5 h 12 m 41 sec
Reputation Power: 12
thanks. that was helpful. I located my imap. it is /usr/local/imap-2002e/

however when i add that to my configure line for php

'./configure' '--with-mysql' '--with-apxs' '--with-gd' '--with-zlib-dir=/usr/local' --with-jpeg-dir=../jpeg-6b -- with-imap=/usr/local/imap-2002e

it says this:


configure: error: Cannot find imap library (libc-client.a). Please check your IMAP installation.


however libc-client.a is in the imap-2002e/lib directory like it should be... any ideas?

Reply With Quote
  #4  
Old July 2nd, 2004, 01:36 PM
moorehed moorehed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 192 moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level)moorehed User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 5 h 12 m 41 sec
Reputation Power: 12
hmmm i got the configure to work... instead of /usr/local/imap-2002e/ i used /usr/local/imap-2002e/lib which is where the file it was looking for is... the configure worked....

however now i go to do a make and get all sorts of errors...

/bin/sh /usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/imap/ -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/ -DPHP_ATOM_INC -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/include -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/main -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5 -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/Zend -I/usr/local/include -I/usr/local/include/c-client -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/xml/expat -I/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/TSRM -g -O2 -prefer-pic -c /usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c -o ext/imap/php_imap.lo
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c:342: syntax error before `QUOTALIST'
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c: In function `mail_getquota':
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c:351: `qlist' undeclared (first use in this function)
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c:351: (Each undeclared identifier is reported only once
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c:351: for each function it appears in.)
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c: In function `zif_imap_get_quota':
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c:900: `SET_QUOTA' undeclared (first use in this function)
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c: In function `zif_imap_get_quotaroot':
/usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5/ext/imap/php_imap.c:928: `SET_QUOTA' undeclared (first use in this function)
*** Error code 1

Stop in /usr/local/www/vhosts/xxxstudios.com/htdocs/php43/php-4.3.5.
%



i read somewhere that this looks like the headers are a different version than the actual version i have installed or soemthing, but i have no idea how i would correct this.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Help installing/compiling IMAP in FreeBSD for use with PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway