Re: upgrade outdated is making me miserable

2009-07-22 Thread Bill Hernandez

On Jul 22, 2009, at 11:33 AM, Eric A. Borisch wrote:


Time machine has saved me from this pain more than once...


I tried Time machine, but some stuff at the OS level would not  
restore...


So far CarbonCopyCloner has not failed me...

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: upgrade outdated is making me miserable

2009-07-21 Thread Bill Hernandez


On Jul 21, 2009, at 12:08 PM, Lenore Horner wrote:

I thought nothing on my list of ports that were outdated was  
anything I had installed with options beyond what where the defaults  
I set (not to use X11 specifically).  I thought upgrade at least  
obeyed the default options.  I knew it didn't obey the hand ones.   
Now I have a ton of xorg stuff installing that I definitely  
absolutely do not want.  Is there any way of undoing this mess other  
than uninstalling macports entirely and then installing the things I  
really want individually.  Can I never do upgrade, but must always  
uninstall and then install port by port?


Thanks,
Lenore


Lenore,

You might want to look at CarbonCopyCloner. Prior to any upgrade clone  
your primary drive. It takes about 15 minutes, its painless.


I recently bought a hardware raid 1 Guardian Maximus from MacSales.com  
and it has worked spectacularly. It comes with two 1 terabyte drives  
running mirrored backup. I partitioned them into seven partitions, and  
backup using CCC which does bootable backups, so at different stages  
during the setup process on OS X Server, I would clone the boot drive  
to the next available partition, and if something got screwed up  
during the next phase of setup, all I had to do was boot from the  
previous partition, CCC clone back to the primary drive, restart and  
press on


I ran into a number of problems setting up Leopard Server, and CCC  
saved me several times. I have since begun doing the same thing on my  
iMac workstation, and am really happy. An upgrade on MacPorts  
qualifies...


PsyncX never worked correctly creating bootable partition backups for  
me. I have also used Synchronize Pro X for some time, and even though  
I use it to backup or synchronize directories, I have not been able to  
get any of them to work as well as CCC for bootable clones.


BTW the Maximus drive can run on one drive if the other one fails for  
any reason, once you replace the bad drive, the good one will mirror  
the new one. Even when I partitioned the drive, I partitioned one, it  
mirrored the other one via hardware. It is awesome, especially it was  
only $325 which was about the same they wanted for lesser quality  
drives at Fry's.


I was at the Apple Store yesterday and they were selling a really  
rinky-dink raid drive in a plastic enclosure for about the same price.  
THe one I got comes in a beautiful metal enclosure.


http://eshop.macsales.com/shop/firewire/usb/raid_1/Gmax

Disclosure : I don't know anyone at MacSales, I have no involvement  
with them, I found the drive on the web, and bought it.


Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Difficulty installing and using PostgreSQL.

2009-07-17 Thread Bill Hernandez


On Jul 15, 2009, at 7:39 PM, Don Fox wrote:



I have been attempting to install and use PostgreSQL without  
success, using MacPorts. I've installed 8.3.7 and 8.4. Installation  
goes without apparent hitch but then postgreSQL server is not able  
to be accessed. I've changed the PATH as per the documentation but  
postgresql is never to be found.


Ive done a number of previous installations via macports without any  
problems. I'm using an old MacPowerBook with 2gigs of memory running  
the current Leopard.


Also, I've attempted the installation using zip files from the  
postgre site and disk imag from PostgreSQL for Mac. Not any luck!


Any suggestions?

Thanks very much,

Don Fox


Don,

Did you try the exact steps I sent you  the other day ? This is short  
set modified for 84...


I have used them many times, and they work. Sometimes during the  
install if things get messed up you can remove the data directory  
(defaultDB) and re-initialize the database and that will get you up  
and running.


These instructions should work for you if you follow them exactly.  
Since you have already installed the database, if you have a backup  
the best course of action would be to start at step ( 8 ).


I DON'T KNOW IF THIS IS A NEW INSTALL, BUT MAKE SURE YOUR DATA IS  
BACKED UP


YOU SHOULD HAVE DONE SOMETHING LIKE :

$ sudo mkdir -p /backups/pgsql/databases/2009.07.14_22.58.33

$ sudo su - postgres -c "/opt/local/lib/postgresql84/bin/pg_dumpall -U  
postgres >> /backups/pgsql/databases/2009.07.14_22.58.33/main_db.sql"


ASSUMING YOU ARE ALL DONE INSTALLING postgresql84

( 1 ) $ sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.postgresql84-server.plist

( 2 ) $ sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb
( 3 ) $ sudo chown postgres:postgres /opt/local/var/db/postgresql84/ 
defaultdb
( 4 ) $ sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb - 
D /opt/local/var/db/postgresql84/defaultdb'
( 5 ) $ /opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/ 
postgresql84-server.wrapper start

( 6 ) $ ps aux | grep postgres

THESE ARE FOR IMMEDIATE START/STOP
[start-cmd ] ---> $ /opt/local/etc/LaunchDaemons/ 
org.macports.postgresql84-server/postgresql84-server.wrapper start ;
[stop-cmd ] ---> $ /opt/local/etc/LaunchDaemons/ 
org.macports.postgresql84-server/postgresql84-server.wrapper stop ;
[restart-cmd] ---> /opt/local/etc/LaunchDaemons/ 
org.macports.postgresql84-server/postgresql84-server.wrapper restart ;


If you still can't get it working try :

( 7 ) $/opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/ 
postgresql84-server.wrapper stop ;



WARNING : MAKE TRIPLE SURE YOU HAVE YOUR DATA BACKED UP BEFORE THE  
NEXT STEP...


( 8 ) $ sudo rm -R /opt/local/var/db/postgresql84/defaultdb

 NOW GO BACK TO STEP ( 1 ) THROUGH ( 6 ) AGAIN

TO SHUTDOWN  :
$ sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.postgresql84-server.plist



TO RELAUNCH
$ sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.postgresql84-server.plist


Good Luck,

Bill Hernandez
Plano, Texas___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Difficulty installing and using PostgreSQL.

2009-07-16 Thread Bill Hernandez


On Jul 16, 2009, at 1:10 AM, Bill Hernandez wrote:

$ sudo su - postgres -c "/opt/local/lib/postgresql83/bin/pg_dumpall - 
U postgres >> /backups/pgsql/databases/2009.07.14_22.58.33/ 
main_db.sql"





Should have been

$ sudo su - postgres -c "/opt/local/lib/postgresql83/bin/pg_dumpall -U  
postgres > /backups/pgsql/databases/2009.07.14_22.58.33/main_db.sql"



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Difficulty installing and using PostgreSQL.

2009-07-15 Thread Bill Hernandez


On Jul 15, 2009, at 7:39 PM, Don Fox wrote:



I have been attempting to install and use PostgreSQL without  
success, using MacPorts. I've installed 8.3.7 and 8.4. Installation  
goes without apparent hitch but then postgreSQL server is not able  
to be accessed. I've changed the PATH as per the documentation but  
postgresql is never to be found.


Ive done a number of previous installations via macports without any  
problems. I'm using an old MacPowerBook with 2gigs of memory running  
the current Leopard.


Also, I've attempted the installation using zip files from the  
postgre site and disk imag from PostgreSQL for Mac. Not any luck!


Any suggestions?

Thanks very much,

Don Fox


I DON'T KNOW IF THISIS A NEW INSTALL, BUT MAKE SURE YOUR DATA IS  
BACKED UP


YOU SHOULD HAVE DONE SOMETHING LIKE :

$ sudo mkdir -p /backups/pgsql/databases/2009.07.14_22.58.33

$ sudo su - postgres -c "/opt/local/lib/postgresql83/bin/pg_dumpall -U  
postgres >> /backups/pgsql/databases/2009.07.14_22.58.33/main_db.sql"



ASSUMING WE ARE ALL DONE INSTALLING postgresql83

( 1 ) [2009.11.07](11:07AM) -> [roscoe] ~  $ sudo launchctl load -w / 
Library/LaunchDaemons/org.macports.postgresql83-server.plist

 ---> Password:

( 2 ) [2009.11.07](12:22PM) -> [roscoe] ~  $ sudo mkdir -p /opt/local/ 
var/db/postgresql83/defaultdb


( 3 ) [2009.11.07](12:23PM) -> [roscoe] ~  $ sudo chown  
postgres:postgres /opt/local/var/db/postgresql83/defaultdb


( 4 ) [2009.11.07](12:23PM) -> [roscoe] ~  $ sudo su postgres -c '/opt/ 
local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/ 
defaultdb'
 ---> The files belonging to this database system will be owned by  
user "postgres".

 ---> This user must also own the server process.


 ---> WARNING: enabling "trust" authentication for local connections
 ---> You can change this by editing pg_hba.conf or using the -A  
option the

 ---> next time you run initdb.

 ---> Success. You can now start the database server using:

/opt/local/lib/postgresql83/bin/postgres -D /opt/local/var/db/ 
postgresql83/defaultdb

 ---> or
/opt/local/lib/postgresql83/bin/pg_ctl -D /opt/local/var/db/ 
postgresql83/defaultdb -l logfile start



Check and see if I have a postgres user ?

( 5 ) [2009.11.07](12:26PM) -> [roscoe] ~  $ dscl . list /users  
UniqueID | sort -k2 -n | grep postgres

 ---> postgres   505

I had forgotten my postgres password, so...

login as system_root (not sudo) which requires the actual system_root  
password, and force change the postgres user password


( 6 ) [2009.11.07](02:50PM) -> [roscoe] ~  $ su - root
 ---> Password:

Assign the new postgres password and don't forget it this time...

( 7 ) [2009.11.07](02:50PM) -> [root] ~  $ dscl . -passwd /Users/ 
postgres 


( 8 ) [2009.11.07](02:50PM) -> [root] ~  $ exit
 ---> logout

Startup PgSQL

( 9 ) [2009.11.07](02:51PM) -> [roscoe] ~  $ /opt/local/etc/ 
LaunchDaemons/org.macports.postgresql83-server/postgresql83- 
server.wrapper start

 ---> Password:
 ---> server starting

( 10 ) [2009.11.07](02:51PM) -> [roscoe] ~  $ ps aux | grep postgres
 ---> roscoe 92842   1.0  0.0   599740384 s001  S+2:52PM
0:00.00 grep postgres
 ---> root 92561   0.0  0.075452720   ??  Ss   12:22PM
0:00.00 /opt/local/bin/daemondo

 ---> --label=postgresql83-server
 ---> --start-cmd /opt/local/etc/LaunchDaemons/ 
org.macports.postgresql83-server/postgresql83-server.wrapper start ;
 ---> --stop-cmd /opt/local/etc/LaunchDaemons/ 
org.macports.postgresql83-server/postgresql83-server.wrapper stop ;
 ---> --restart-cmd /opt/local/etc/LaunchDaemons/ 
org.macports.postgresql83-server/postgresql83-server.wrapper restart ;

 ---> --pid=none
 ---> postgres 92840   0.0  0.188612   2204   ??  SNs   2:51PM
0:00.12 /System/Library/Frameworks/CoreServices.framework/Frameworks/ 
Metadata.framework/Versions/A/Support/mdworker MDSImporterWorker  
com.apple.Spotlight.ImporterWorker.505
 ---> postgres 92837   0.0  0.0   599796460   ??  Ss2:51PM
0:00.00 /sbin/launchd
 ---> postgres 92834   0.0  0.0   608916308   ??  Ss2:51PM
0:00.00 postgres: stats collector process
 ---> postgres 92833   0.0  0.0   612852484   ??  Ss2:51PM
0:00.00 postgres: autovacuum launcher process
 ---> postgres 92832   0.0  0.0   612852424   ??  Ss2:51PM
0:00.00 postgres: wal writer process
 ---> postgres 92831   0.0  0.0   612852468   ??  Ss2:51PM
0:00.00 postgres: writer process
 ---> postgres 92827   0.0  0.0   612852   2036 s001  S 2:51PM
0:00.20 /opt/local/lib/postgresql83/bin/postgres -D /opt/local/var/db/ 
postgresql83/defaultdb


( 11 ) [2009.11.07](02:52PM) -> [roscoe] ~  $


If you still can't get it working try :

( 12 ) [2009.11.07](02:52PM) -> [roscoe] ~  $/opt/local/etc/ 
LaunchDaemons/org.macports.postgresql83-server/postgresql83- 
server.wrapper stop ;


MAKE TRIPLE SURE YOU HAVE YOUR DATA BACKED UP BEFORE THE NEXT STEP...

( 13 ) [2009.11.07](12:22PM) -> [rosco

[Solved]: mysql5-server install - FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

2009-07-10 Thread Bill Hernandez


On Jul 9, 2009, at 6:47 PM, Chris Janton wrote:


On 2009-07-09 , at 13:59 , Bill Hernandez wrote:


TRY THE PRIMARY METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~	 $ sudo -u mysql  
mysql_install_db5

Password:



what happens if you try

sudo -u mysql mysql_install_db5 --basedir=/opt/local/share/mysql5/ 
mysql


also - on my 10.5.x system the mysql username (already there from  
Apple) is


_mysql

note the leading underscore.

8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


Chris,

I had not tried re-installing mysql.server for the last couple of  
weeks, because I was waiting to hear back once it had been fixed, but  
after I got your message I installed macports, apache2, and  
mysql.server and apparently the "help tables" problem has been fixed  
since my last attempt.


This time everything worked, at least so far

As usual, thanks for the great help,

Bill Hernandez
Plano, Texas

[2009.10.07](08:48AM) -> [roscoe] ~  $ sudo -u mysql mysql_install_db5
Password:
 ---> Installing MySQL system tables...
 ---> 090710  9:00:45 [Warning] option 'max_join_size': unsigned  
value 18446744073709551615 adjusted to 4294967295
 ---> 090710  9:00:45 [Warning] option 'max_join_size': unsigned  
value 18446744073709551615 adjusted to 4294967295
 ---> 090710  9:00:45 [Warning] Setting lower_case_table_names=2  
because file system for /opt/local/var/db/mysql5/ is case insensitive

 ---> OK
 ---> Filling help tables...
 ---> 090710  9:00:45 [Warning] option 'max_join_size': unsigned  
value 18446744073709551615 adjusted to 4294967295
 ---> 090710  9:00:45 [Warning] option 'max_join_size': unsigned  
value 18446744073709551615 adjusted to 4294967295
 ---> 090710  9:00:45 [Warning] Setting lower_case_table_names=2  
because file system for /opt/local/var/db/mysql5/ is case insensitive

 ---> OK

 ---> To start mysqld at boot time you have to copy
 ---> support-files/mysql.server to the right place for your system

 ---> PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
 ---> To do so, start the server, then issue the following commands:
 ---> /opt/local/lib/mysql5/bin/mysqladmin -u root password 'new- 
password'
 ---> /opt/local/lib/mysql5/bin/mysqladmin -u root -h eagle.local  
password 'new-password'


 ---> Alternatively you can run:
 ---> /opt/local/lib/mysql5/bin/mysql_secure_installation

 ---> which will also give you the option of removing the test
 ---> databases and anonymous user created by default.  This is
 ---> strongly recommended for production servers.

 ---> See the manual for more instructions.

 ---> You can start the MySQL daemon with:
 ---> cd /opt/local ; /opt/local/lib/mysql5/bin/mysqld_safe &

 ---> You can test the MySQL daemon with mysql-test-run.pl
 ---> cd mysql-test ; perl mysql-test-run.pl

 ---> Please report any problems with the /opt/local/lib/mysql5/bin/ 
mysqlbug script!


 ---> The latest information about MySQL is available on the web at
 ---> http://www.mysql.com
 ---> Support MySQL by buying support/licenses at http://shop.mysql.com

[2009.10.07](09:00AM) -> [roscoe] ~  $___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mysql5-server install - FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

2009-07-09 Thread Bill Hernandez
DOES ANYBODY HAVE A CLUE HOW TO GET THIS TO INSTALL ? [2009.22.06] 
(07:48AM)


In setting up a brand new machine:

I followed exactly : http://trac.macports.org/wiki/howto/MAMP

Step 1: Turn off Apple's "Personal Web Sharing"
---> This went well (it wasn't on)...

Step 2: Install Apache
$ sudo port install apache2
---> This went well...

Step 3: Install MySQL
$ sudo port install mysql5-server
---> This did not go well...

[2009.22.06](07:48AM) -> [roscoe] ~   $ sudo port install mysql5-server
---> Fetching mysql5
---> Attempting to fetch mysql-5.0.83.tar.gz from 
http://mysql.orst.edu/Downloads/MySQL-5.0
---> Attempting to fetch mysql-5.0.83.tar.gz from 
http://mysql.he.net/Downloads/MySQL-5.0/
---> Verifying checksum(s) for mysql5
---> Extracting mysql5
---> Applying patches to mysql5
---> Configuring mysql5
---> Building mysql5
---> Staging mysql5 into destroot
---> Installing mysql5 @5.0.83_0
---> Activating mysql5 @5.0.83_0
---> Cleaning mysql5
---> Fetching mysql5-server
---> Verifying checksum(s) for mysql5-server
---> Extracting mysql5-server
---> Configuring mysql5-server
---> Building mysql5-server
---> Staging mysql5-server into destroot
---> Creating launchd control script
###
# A startup item has been generated that will aid in
# starting mysql5-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist

###
---> Installing mysql5-server @5.0.83_0
**
* In order to setup the database, you might want to run
* sudo -u mysql mysql_install_db5
* if this is a new install
**
---> Activating mysql5-server @5.0.83_0
---> Cleaning mysql5-server

[2009.22.06](07:55AM) -> [roscoe] ~   $


TRY THE PRIMARY METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~   $ sudo -u mysql mysql_install_db5
Password:

FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'


TRY THE ALTERNATE METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~   $ sudo mysql_install_db5

FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'

[2009.22.06](08:01AM) -> [roscoe] ~   $

Any ideas ?
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mysql5-server install - FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

2009-06-23 Thread Bill Hernandez
Several days ago I posted this message but received no response, Does  
anybody know who the mySQL maintainer might be ?


I really would like to get this installed if possible.

Any ideas ?

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mysql5-server install - FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

2009-06-22 Thread Bill Hernandez

Not sure if this made it through, sorry if it is a repeat...

For some reason I got a message : Your membership in the mailing list  
macports-users has been disabled
due to excessive bounces The last bounce received from you was dated  
14-Jun-2009


Anyway, In setting up a brand new machine:

I followed exactly : http://trac.macports.org/wiki/howto/MAMP

Step 1: Turn off Apple's "Personal Web Sharing"
---> This went well (it wasn't on)...

Step 2: Install Apache
$ sudo port install apache2
---> This went well...

Step 3: Install MySQL
$ sudo port install mysql5-server
---> This did not go well...

[2009.22.06](07:48AM) -> [roscoe] ~   $ sudo port install mysql5-server
---> Fetching mysql5
---> Attempting to fetch mysql-5.0.83.tar.gz from 
http://mysql.orst.edu/Downloads/MySQL-5.0
---> Attempting to fetch mysql-5.0.83.tar.gz from 
http://mysql.he.net/Downloads/MySQL-5.0/
---> Verifying checksum(s) for mysql5
---> Extracting mysql5
---> Applying patches to mysql5
---> Configuring mysql5
---> Building mysql5
---> Staging mysql5 into destroot
---> Installing mysql5 @5.0.83_0
---> Activating mysql5 @5.0.83_0
---> Cleaning mysql5
---> Fetching mysql5-server
---> Verifying checksum(s) for mysql5-server
---> Extracting mysql5-server
---> Configuring mysql5-server
---> Building mysql5-server
---> Staging mysql5-server into destroot
---> Creating launchd control script
###
# A startup item has been generated that will aid in
# starting mysql5-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist

###
---> Installing mysql5-server @5.0.83_0
**
* In order to setup the database, you might want to run
* sudo -u mysql mysql_install_db5
* if this is a new install
**
---> Activating mysql5-server @5.0.83_0
---> Cleaning mysql5-server

[2009.22.06](07:55AM) -> [roscoe] ~   $


TRY THE PRIMARY METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~   $ sudo -u mysql mysql_install_db5
Password:

FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'


TRY THE ALTERNATE METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~   $ sudo mysql_install_db5

FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'

[2009.22.06](08:01AM) -> [roscoe] ~   $

Any ideas ?
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mysql5-server install - FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

2009-06-22 Thread Bill Hernandez

In setting up a brand new machine:

I followed exactly : http://trac.macports.org/wiki/howto/MAMP

Step 1: Turn off Apple's "Personal Web Sharing"
---> This went well (it wasn't on)...

Step 2: Install Apache
$ sudo port install apache2
---> This went well...

Step 3: Install MySQL
$ sudo port install mysql5-server
---> This did not go well...

[2009.22.06](07:48AM) -> [roscoe] ~   $ sudo port install mysql5-server
---> Fetching mysql5
---> Attempting to fetch mysql-5.0.83.tar.gz from 
http://mysql.orst.edu/Downloads/MySQL-5.0
---> Attempting to fetch mysql-5.0.83.tar.gz from 
http://mysql.he.net/Downloads/MySQL-5.0/
---> Verifying checksum(s) for mysql5
---> Extracting mysql5
---> Applying patches to mysql5
---> Configuring mysql5
---> Building mysql5
---> Staging mysql5 into destroot
---> Installing mysql5 @5.0.83_0
---> Activating mysql5 @5.0.83_0
---> Cleaning mysql5
---> Fetching mysql5-server
---> Verifying checksum(s) for mysql5-server
---> Extracting mysql5-server
---> Configuring mysql5-server
---> Building mysql5-server
---> Staging mysql5-server into destroot
---> Creating launchd control script
###
# A startup item has been generated that will aid in
# starting mysql5-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist

###
---> Installing mysql5-server @5.0.83_0
**
* In order to setup the database, you might want to run
* sudo -u mysql mysql_install_db5
* if this is a new install
**
---> Activating mysql5-server @5.0.83_0
---> Cleaning mysql5-server

[2009.22.06](07:55AM) -> [roscoe] ~   $


TRY THE PRIMARY METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~   $ sudo -u mysql mysql_install_db5
Password:

FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'


TRY THE ALTERNATE METHOD :
[2009.22.06](07:59AM) -> [roscoe] ~   $ sudo mysql_install_db5

FATAL ERROR: Could not find fill_help_tables.sql inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'

[2009.22.06](08:01AM) -> [roscoe] ~   $

Any ideas ?
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: sudo port install trac +mysql +postgres (install errors)

2009-04-14 Thread Bill Hernandez


On Apr 15, 2009, at 12:34 AM, Bryan Blackburn wrote:

After some time, py26-genshi installed fine on my 10.4.11 ppc  
machine, so it

doesn't appear to be a general 2.6+10.4 issue.

Does the following break in the same way?

$ python2.6 -c 'import doctest'

If so then it seems like there may be something weird going on with  
the

_random.so file; the output of the following may also be interesting:

$ otool -L /opt/local/Library/Frameworks/Python.framework/Versions/ 
2.6/lib/python2.6/lib-dynload/_random.so


For both 10.4 and 10.5 mine are linked only with libgcc_s and  
libSystem.


Bryan,

Are you running OS X 10.4 or OS X Server 10.4
---
TIGER_SERVER (OS X Server 10.4.11)
---
[2009.15.04](12:48AM) -> [tiger_server] ~ $ python2.6 -c 'import  
doctest'

^C
^Z
[1]+  Stopped python2.6 -c 'import doctest'

The prompt never returned above, so I had to break out

[2009.15.04](12:50AM) -> [tiger_server] ~ $ port installed | grep py
 python25 @2.5.4_2+darwin_8+macosx (active)
 python26 @2.6.1_2 (active)
 python_select @0.2.1_0+darwin_8 (active)

[2009.15.04](12:53AM) -> [tiger_server] ~ $ otool -L /opt/local/ 
Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib- 
dynload/_random.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/lib-dynload/_random.so:
   /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current  
version 92.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
current version 88.1.12)

[2009.15.04](01:08AM) -> [tiger_server] ~ $

---
LEOPARD_WORKSTATION (OS X 10.5.6)
---

[2009.15.04](12:49AM) -> [leopard_workstation] ~ $ python2.6 -c  
'import doctest'


[2009.15.04](12:49AM) -> [leopard_workstation] ~ $ otool -L /opt/local/ 
Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib- 
dynload/_random.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/lib-dynload/_random.so:
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current  
version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current  
version 111.1.3)


[2009.15.04](12:50AM) -> [leopard_workstation] ~ $ port installed |  
grep py

 mod_python25 @3.3.1_2 (active)
 py25-bsddb @2.5.4_0 (active)
 py25-genshi @0.5_0
 py25-genshi @0.5.1_0 (active)
 py25-hashlib @2.5.4_0 (active)
 py25-mx-base @3.1.2_0 (active)
 py25-mysql @1.2.2_0+mysql5 (active)
 py25-pgsql @2.5.1_1
 py25-pgsql @2.5.1_2 (active)
 py25-pygments @1.0_0 (active)
 py25-setuptools @0.6c9_0 (active)
 py25-sqlite3 @2.5.4_0 (active)
 py25-zlib @2.5.4_0 (active)
 py26-genshi @0.5.1_0 (active)
 py26-mx-base @3.1.2_0 (active)
 py26-mysql @1.2.2_0+mysql5 (active)
 py26-pgsql @2.5.1_0 (active)
 py26-pygments @1.0_0 (active)
 py26-setuptools @0.6c9_0 (active)
 python25 @2.5.4_0+darwin_9+macosx
 python25 @2.5.4_2+darwin_9+macosx (active)
 python26 @2.6.1_2 (active)
 python_select @0.2.1_0+darwin_9 (active)
 subversion-python25bindings @1.6.0_1
 subversion-python25bindings @1.6.1_0 (active)
 subversion-python26bindings @1.6.1_0 (active)
[2009.15.04](01:16AM) -> [leopard_workstation] ~ $


Does any of that help ?

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: sudo port install trac +mysql +postgres (install errors)

2009-04-14 Thread Bill Hernandez


On Apr 13, 2009, at 10:10 PM, Bryan Blackburn wrote:

Dang, nothing more specific about what is going on.  It looks  
similar to


<http://www.mail-archive.com/numpy-discuss...@scipy.org/msg15015.html>

but unfortunately no resolution that might help in this case.  Could  
be some

odd interaction between python 2.6 and Mac OS X 10.4 (since I had no
problems with py26-genshi on 10.5); other than making sure you have  
Xcode

2.5 for building, I'm not sure what else to try.

Anyone else reading this successful in installing py26-genshi on 10.4?

Bryan



Can you suggest anyone else I could try to contact, that might know  
what all the error messages mean ?


Afer trying to get trac working for a couple of weeks, I am about to  
give up trying to install it on Tiger, there's no software worth this  
much effort. This is way too much pain...


Thanks for trying to help me.

Bill Hernandez
Plano, Texas___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


python26 install failure (was : sudo port install trac +mysql +postgres (install errors))

2009-04-14 Thread Bill Hernandez
I have been trying to get trac installed for about two weeks now on my  
Tiger Server and cannot get past some py26-genshi install problems...


Trac, along with python26, etc. installed fine on my Leopard  
WorkStation, but refuse to install on my OS X Tiger Server due to the  
py26-genshi install problem.


The original thread was, but the gist is included below :

sudo port install trac +mysql +postgres (install errors)


Bill Hernandez
Plano, Texas

On Apr 12, 2009, at 8:37 PM, Bryan Blackburn wrote:


Maybe try cleaning py26-genshi first, then the debug install again?


$ sudo port clean --work py26-genshi
$ sudo port -d install py26-genshi

Bryan



Bryan,

The debug log below shows the install failed again. The server is  
running the very latest version of Tiger with xCode 2.5


Any Ideas ?

Bill Hernandez
Plano, Texas

[2009.13.04](09:11AM) -> [roscoe] ~ $ sudo port clean --work py26-genshi
--->  Cleaning py26-genshi

[2009.13.04](09:12AM) -> [roscoe] ~ $ sudo port -d install py26-genshi

DEBUG: Found port in 
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-genshi
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/python/py26-genshi

DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/_resources/port1.0/group/ 
python26-1.0.tcl

DEBUG: not using configure, so not adding the default universal variant
DEBUG: Requested variant powerpc is not provided by port py26-genshi.
DEBUG: Requested variant darwin is not provided by port py26-genshi.
DEBUG: Requested variant macosx is not provided by port py26-genshi.
DEBUG: Found port in 
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/lang/python26

DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl

DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port python26.
DEBUG: Requested variant macosx is not provided by port python26.
DEBUG: Executing variant darwin provides darwin
DEBUG: Searching for dependency: python26
DEBUG: Found Dependency: receipt exists for python26
DEBUG: Executing org.macports.main (py26-genshi)
--->  Fetching py26-genshi
DEBUG: Executing org.macports.fetch (py26-genshi)
--->  Verifying checksum(s) for py26-genshi
DEBUG: Executing org.macports.checksum (py26-genshi)
--->  Checksumming Genshi-0.5.1.tar.gz
DEBUG: Correct (md5) checksum for Genshi-0.5.1.tar.gz
DEBUG: Correct (sha1) checksum for Genshi-0.5.1.tar.gz
DEBUG: Correct (rmd160) checksum for Genshi-0.5.1.tar.gz
--->  Extracting py26-genshi
DEBUG: Executing org.macports.extract (py26-genshi)
--->  Extracting Genshi-0.5.1.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/ 
distfiles/python/Genshi-0.5.1.tar.gz

DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_python_py26-genshi/work" && gzip -dc /opt/ 
local/var/macports/distfiles/python/Genshi-0.5.1.tar.gz | /usr/bin/ 
gnutar --no-same-owner -xf -'

DEBUG: Executing org.macports.patch (py26-genshi)
--->  Configuring py26-genshi
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (py26-genshi)
--->  Building py26-genshi
DEBUG: Executing org.macports.build (py26-genshi)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_python_py26-genshi/work/Genshi-0.5.1" && / 
opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ 
python2.6 setup.py --no-user-cfg build'

Traceback (most recent call last):
 File "setup.py", line 18, in 
   import doctest
 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/doctest.py", line 99, in 

   import unittest, difflib, pdb, tempfile
 File "/opt/local/Library/Frameworks/Python.framewor

Re: sudo port install trac +mysql +postgres (install errors)

2009-04-13 Thread Bill Hernandez


On Apr 12, 2009, at 8:37 PM, Bryan Blackburn wrote:



It got hung up here, and would go no further.


I may have not waited long enough the first time.

That's really weird, I have no idea why it would just hang at that  
point.

It should have just picked up where it left off.  Maybe try cleaning
py26-genshi first, then the debug install again?

$ sudo port clean --work py26-genshi
$ sudo port -d install py26-genshi

Bryan



Bryan,

The debug log below shows the install failed again.

Any Ideas ?

Bill Hernandez
Plano, Texas

[2009.13.04](09:11AM) -> [roscoe] ~ $ sudo port clean --work py26-genshi
--->  Cleaning py26-genshi

[2009.13.04](09:12AM) -> [roscoe] ~ $ sudo port -d install py26-genshi

DEBUG: Found port in 
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-genshi
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/python/py26-genshi

DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/_resources/port1.0/group/ 
python26-1.0.tcl

DEBUG: not using configure, so not adding the default universal variant
DEBUG: Requested variant powerpc is not provided by port py26-genshi.
DEBUG: Requested variant darwin is not provided by port py26-genshi.
DEBUG: Requested variant macosx is not provided by port py26-genshi.
DEBUG: Found port in 
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/lang/python26

DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl

DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port python26.
DEBUG: Requested variant macosx is not provided by port python26.
DEBUG: Executing variant darwin provides darwin
DEBUG: Searching for dependency: python26
DEBUG: Found Dependency: receipt exists for python26
DEBUG: Executing org.macports.main (py26-genshi)
--->  Fetching py26-genshi
DEBUG: Executing org.macports.fetch (py26-genshi)
--->  Verifying checksum(s) for py26-genshi
DEBUG: Executing org.macports.checksum (py26-genshi)
--->  Checksumming Genshi-0.5.1.tar.gz
DEBUG: Correct (md5) checksum for Genshi-0.5.1.tar.gz
DEBUG: Correct (sha1) checksum for Genshi-0.5.1.tar.gz
DEBUG: Correct (rmd160) checksum for Genshi-0.5.1.tar.gz
--->  Extracting py26-genshi
DEBUG: Executing org.macports.extract (py26-genshi)
--->  Extracting Genshi-0.5.1.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/ 
distfiles/python/Genshi-0.5.1.tar.gz

DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_python_py26-genshi/work" && gzip -dc /opt/ 
local/var/macports/distfiles/python/Genshi-0.5.1.tar.gz | /usr/bin/ 
gnutar --no-same-owner -xf -'

DEBUG: Executing org.macports.patch (py26-genshi)
--->  Configuring py26-genshi
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (py26-genshi)
--->  Building py26-genshi
DEBUG: Executing org.macports.build (py26-genshi)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_python_py26-genshi/work/Genshi-0.5.1" && / 
opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ 
python2.6 setup.py --no-user-cfg build'

Traceback (most recent call last):
  File "setup.py", line 18, in 
import doctest
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/doctest.py", line 99, in 

import unittest, difflib, pdb, tempfile
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/tempfile.py", line 34, in 

from random import Random as _Random
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/random.py", line 871, in 

_inst = Random()
  File "/opt/local/Library/Frameworks/Pyth

Re: sudo port install trac +mysql +postgres (install errors)

2009-04-13 Thread Bill Hernandez

On Apr 12, 2009, at 8:44 PM, Bryan Blackburn wrote:

This is an issue with the cyrus-sasl2 port; some software doesn't  
build
cleanly when an earlier version is available, hence this needs the  
older
version deactivated or uninstalled prior to getting the latest  
version.  I

usually just force uninstall the old one then install the new one:

$ sudo port -f uninstall cyrus-sasl2
$ sudo port install cyrus-sasl2


Bryan,

Worked like a charm...

[2009.13.04](08:48AM) -> [roscoe] ~ $ sudo port -f uninstall cyrus-sasl2
   Password:
   --->  Unable to uninstall cyrus-sasl2 2.1.21_0+kerberos, the  
following ports depend on it:

   --->  openldap
   --->  subversion-python25bindings
   --->  subversion
   Warning: Uninstall forced.  Proceeding despite dependencies.
   --->  Deactivating cyrus-sasl2 @2.1.21_0+kerberos
   --->  Uninstalling cyrus-sasl2 @2.1.21_0+kerberos

[2009.13.04](08:48AM) -> [roscoe] ~ $ sudo port install cyrus-sasl2
   --->  Configuring cyrus-sasl2
   --->  Building cyrus-sasl2
   --->  Staging cyrus-sasl2 into destroot
   --->  Installing cyrus-sasl2 @2.1.22_0+kerberos
   --->  Activating cyrus-sasl2 @2.1.22_0+kerberos
   --->  Cleaning cyrus-sasl2

[2009.13.04](08:49AM) -> [roscoe] ~ $ port outdated
   No installed ports are outdated.

Looks like life is swell once again...

Thanks very much for the help...

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: sudo port install trac +mysql +postgres (install errors)

2009-04-12 Thread Bill Hernandez

Bryan,

The earlier results, in my previous message were from my Tiger Server.

When I tried to install trac on the server last night, it installed  
python26.


I installed trac on my iMac about a week ago, and it installed  
python25.  Today when I checked 'outdated' it did not show trac even  
though it does not have python26. It appears that even though trac is  
now installing python26, $ 'port outdated' does not find trac on my  
iMac workstation as needing upgrading ?


At about the same time I also tried to install trac on the Tiger  
Server, and the installer was not successful installing trac, but it  
did get python25 installed.


On my Server, now trac has successfully installed both pythons 25 and  
26, and no trac. Any suggestions ?


Maybe I should try to uninstall python25 to see if MaPorts squaks ?


These are from my iMac Leopard Workstation. I tried you suggestion  
using 'sudo port upgrade outdated' but the installer did not seem to  
like that idea ?


$ port installed(the results are at the bottom of the page)
$ port outdated
$ sudo port upgrade outdated

which failed with an error...

[2009.12.04](04:52PM) -> [roscoe] ~ $ port outdated
The following installed ports are outdated:
cyrus-sasl22.1.21_0 < 2.1.22_0

[2009.12.04](04:52PM) -> [roscoe] ~ $ sudo port upgrade outdated
Password:
--->  Configuring cyrus-sasl2
Error: cyrus-sasl2 will not build when another version is active.
Error: Please deactivate or uninstall cyrus-sasl2, and then install
Error: the new version with `sudo port install cyrus-sasl2`.
Error: Target org.macports.configure returned: cyrus-sasl2 upgrade  
failed


ERROR: Unable to upgrade port: 1




[2009.12.04](04:51PM) -> [roscoe] ~ $ port installed
The following ports are currently installed:
  apache2 @2.2.11_0+darwin_9 (active)
  apr @1.3.3_1 (active)
  apr-util @1.3.4_1 (active)
  autoconf @2.63_0 (active)
  autoconf213 @2.13_1 (active)
  automake @1.10.2_0 (active)
  bison @2.4.1_0 (active)
  bzip2 @1.0.5_2 (active)
  clearsilver @0.10.5_0 (active)
  ctags @5.7_0 (active)
  curl @7.19.4_0 (active)
  cyrus-sasl2 @2.1.21_0+kerberos (active)
  db44 @4.4.20_1 (active)
  db46 @4.6.21_5 (active)
  db47 @4.7.25_1 (active)
  expat @2.0.1_0 (active)
  flex @2.5.35_0 (active)
  fontconfig @2.6.0_2+macosx (active)
  freetype @2.3.9_0+macosx (active)
  gawk @3.1.6_0 (active)
  gd2 @2.0.35_4 (active)
  gettext @0.17_4 (active)
  gmake @3.81_0 (active)
  gperf @3.0.4_0 (active)
  help2man @1.36.4_1 (active)
  jpeg @6b_3 (active)
  libiconv @1.12_2 (active)
  libmcrypt @2.5.8_1 (active)
  libpng @1.2.35_0 (active)
  libtool @2.2.6a_0 (active)
  libxml2 @2.7.3_0 (active)
  libxslt @1.1.24_2 (active)
  m4 @1.4.12_1 (active)
  mhash @0.9.9.9_0 (active)
  mod_python25 @3.3.1_2 (active)
  mysql5 @5.0.77_0+server (active)
  ncurses @5.7_0 (active)
  ncursesw @5.7_0 (active)
  neon @0.28.4_0 (active)
  openldap @2.3.35_1 (active)
  openssl @0.9.8k_0 (active)
  ossp-uuid @1.6.2_0 (active)
  p5-locale-gettext @1.05_0 (active)
  p5-macosx-file @0.71_0 (active)
  pcre @7.8_1 (active)
  perl5.8 @5.8.9_2+db (active)
  php5 @5.2.9_0+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)

  pkgconfig @0.23_1 (active)
  postgresql83 @8.3.7_0 (active)
  postgresql83-doc @8.3.7_0 (active)
  postgresql83-server @8.3.7_0 (active)
  py25-bsddb @2.5.4_0 (active)
  py25-genshi @0.5_0 (active)
  py25-hashlib @2.5.4_0 (active)
  py25-mx-base @3.1.2_0 (active)
  py25-mysql @1.2.2_0+mysql5 (active)
  py25-pgsql @2.5.1_1 (active)
  py25-pygments @1.0_0 (active)
  py25-setuptools @0.6c9_0 (active)
  py25-sqlite3 @2.5.4_0 (active)
  py25-zlib @2.5.4_0 (active)
  python25 @2.5.4_0+darwin_9+macosx (active)
  python_select @0.2.1_0+darwin_9 (active)
  readline @6.0.000_1 (active)
  rpl @1.4.0_0 (active)
  serf @0.3.0_0 (active)
  sqlite3 @3.6.11_0 (active)
  subversion @1.6.0_1+mod_dav_svn (active)
  subversion-python25bindings @1.6.0_1 (active)
  tidy @20051026_0 (active)
  tiff @3.8.2_3+macosx (active)
  trac @0.11.4_0+mysql+postgres (active)
  xorg-bigreqsproto @1.0.2_0 (active)
  xorg-inputproto @1.5.0_0 (active)
  xorg-kbproto @1.0.3_0 (active)
  xorg-libX11 @1.2_0 (active)
  xorg-libXau @1.0.4_0 (active)
  xorg-libXdmcp @1.0.2_0 (active)
  xorg-xcmiscproto @1.1.2_0 (active)
  xorg-xextproto @7.0.5_0 (active)
  xorg-xf86bigfontproto @1.1.2_0 (active)
  xorg-xproto @7.0.15_0 (active)
  xorg-xtrans @1.2.3_0 (active)
  xpm @3.5.7_0 (active)
  zlib @1.2.3_2 (active)


[2009.12.04](04:53PM) -> [roscoe] ~ $

On Apr 12, 2009, at 3:54 PM, Bryan Blackburn wrote:


On Sun, Apr 12, 2009 at 10:19:54AM -0500, Bill Hernandez said:
I tried installing trac on my Tiger Server and got the errors  
below, so I

ran items ( 1 ) thru ( 5 ) and tried again...

( 1 ) $ sudo port selfupdate
( 2 ) $ sudo port upgrade all


Note that 1.8 is going to break 'port upgrade all' as it'll

Re: sudo port install trac +mysql +postgres (install errors)

2009-04-12 Thread Bill Hernandez

Bryan,

[2009.12.04](04:34PM) -> [roscoe] ~ $ sudo port -d install py26-genshi
Password:
DEBUG: Found port in 
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-genshi
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/python/py26-genshi

DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/_resources/port1.0/group/ 
python26-1.0.tcl

DEBUG: not using configure, so not adding the default universal variant
DEBUG: Requested variant powerpc is not provided by port py26-genshi.
DEBUG: Requested variant darwin is not provided by port py26-genshi.
DEBUG: Requested variant macosx is not provided by port py26-genshi.
DEBUG: Found port in 
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/lang/python26

DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl

DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port python26.
DEBUG: Requested variant macosx is not provided by port python26.
DEBUG: Executing variant darwin provides darwin
DEBUG: Searching for dependency: python26
DEBUG: Found Dependency: receipt exists for python26
DEBUG: Executing org.macports.main (py26-genshi)
DEBUG: Skipping completed org.macports.fetch (py26-genshi)
DEBUG: Skipping completed org.macports.checksum (py26-genshi)
DEBUG: Skipping completed org.macports.extract (py26-genshi)
DEBUG: Skipping completed org.macports.patch (py26-genshi)
DEBUG: Skipping completed org.macports.configure (py26-genshi)
--->  Building py26-genshi
DEBUG: Executing org.macports.build (py26-genshi)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_python_py26-genshi/work/Genshi-0.5.1" && / 
opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ 
python2.6 setup.py --no-user-cfg build'


It got hung up here, and would go no further.

Bill Hernandez


On Apr 12, 2009, at 3:54 PM, Bryan Blackburn wrote:


On Sun, Apr 12, 2009 at 10:19:54AM -0500, Bill Hernandez said:
I tried installing trac on my Tiger Server and got the errors  
below, so I

ran items ( 1 ) thru ( 5 ) and tried again...

( 1 ) $ sudo port selfupdate
( 2 ) $ sudo port upgrade all


Note that 1.8 is going to break 'port upgrade all' as it'll complain  
about
uninstalled ports; use 'port upgrade outdated' instead.  Using  
outdated will

be more efficient too.

[...]

--->  Building py26-genshi
Error: Target org.macports.build returned: shell command " cd "/opt/
local/var/macports/build/_opt_local_var_macports_sources_rsync
.macports.org_release_ports_python_py26-genshi/work/Genshi-0.5.1"  
&& /
opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ 
python2.6

setup.py --no-user-cfg build " returned error 1


Can you run with debug to see where it was when it hit the error?

$ sudo port -d install py26-genshi

Bryan

[...]

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


sudo port install trac +mysql +postgres (install errors)

2009-04-12 Thread Bill Hernandez
I tried installing trac on my Tiger Server and got the errors below,  
so I ran items ( 1 ) thru ( 5 ) and tried again...


( 1 ) $ sudo port selfupdate
( 2 ) $ sudo port upgrade all
( 3 ) $ sudo port uninstall inactive

After the first time it failed to install the next three commands.   
Items ( 5 ) and ( 6 ) were part of the python26 install messages


( 4 ) $ sudo port install python_select
Password:
	Skipping org.macports.activate (python_select +darwin_8) since this  
port is already active

--->  Cleaning python_select

( 5 ) $ sudo python_select python26
Selecting version "python26" for python

( 6 ) $ sudo port install trac +mysql +postgres

AND STILL GOT THESE ERRORS ?

Any Ideas ?

Bill Hernandez
Plano, Texas

Warning: MySQL support is currently experimental. That means it works  
for some people, but several issues remain, in particular regarding  
the use of unicode and the key length in the repository cache.

See http://trac.edgewall.org/wiki/MySqlDb for more detailed information.
--->  Building py26-genshi
Error: Target org.macports.build returned: shell command " cd "/opt/ 
local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_python_py26-genshi/work/Genshi-0.5.1" && / 
opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ 
python2.6 setup.py --no-user-cfg build " returned error 1

Command output: Traceback (most recent call last):
  File "setup.py", line 18, in 
import doctest
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/doctest.py", line 99, in 

import unittest, difflib, pdb, tempfile
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/tempfile.py", line 34, in 

from random import Random as _Random
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/random.py", line 871, in 

_inst = Random()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/random.py", line 96, in __init__

self.seed(x)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
lib/python2.6/random.py", line 115, in seed

super(Random, self).seed(a)
SystemError: error return without exception set

Error: The following dependencies failed to build: py26-genshi py26-mx- 
base py26-mysql py26-setuptools py26-pgsql py26-pygments subversion- 
python26bindings

Error: Status 1 encountered during processing.

[2009.11.04](09:31PM) -> [roscoe] ~ $

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: subversion books ?

2009-03-31 Thread Bill Hernandez


On Mar 31, 2009, at 8:13 PM, Ben Greenfield wrote:

Talking about subversion is borderline topic but probably 95% of the  
people on the list are interested in the topic so it seems fine.
Plugging books would be right on edge of the line, and I would say  
is trending towards bad taste.


I owe nothing whatsoever to the vendor. I don't even know their names.  
They carry a huge selection of strictly programming and technical  
books, the largest I have ever seen in one location. Since this is a  
technical group, my goal was to pass on to the group a great place I  
had found, a place that perhaps they could benefit from.


I have received great benefit from this forum, particularly the people  
that give so much of their time to less experienced people like  
myself, and have given little, or nothing in return.


I saw this as a gesture to help the group, not to help any vendor.  If  
you took it other than the way it was intended, I sincerely apologize.


Most of the time I tend to repeat myself, ramble, make typos, usually  
because I type fast and poorly, and don't proof read to boot. It is  
later when I see the message as it returns,that I usually spot some  
huge grammar error. At that point I wish I could recall the message,  
but it's too late. It was not a well worded message, and I sent it, I  
looked for the recall button, but couldn't find it.


The follow-up recommending a vendor to purchase the  books I thought  
was over the top.



It was however, sincerely meant as gesture of thanks. Sorry, you read  
something into it, that it was not...


Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: subversion books ?

2009-03-31 Thread Bill Hernandez

On Mar 31, 2009, at 6:32 AM, Ryan Schmidt wrote:


On Mar 30, 2009, at 19:26, Bill Hernandez wrote:

After trying to get subversion to work remotely via apache webdav  
and having dismal luck and many questions over the weekend, I went  
down to the local nerdbooks.com and bought three books this  
afternoon. They all had different aspects that I liked as I browsed  
through them, so instead of buying one as planned, I came home with  
three. But that's OK I'll read one and use the other two for  
reference.


They (nerdbooks.com) do mostly all web based sales, but luckily  
they have a warehouse in Richardson, TX  (Dallas area).


I don't know how their prices compare, but they do technical books  
only, and they have the most incredible selection.


I posted the book info here in case this is helpful to others

The Pragmatic Programmers
Pragmatic Version Control using Subversion
ISBN : 0-9776166-5-7
Price : $34.95
Discount Price : $20.97

Bruce Perens Open Source Series
Subversion Version Control
ISBN : 978-0-13-185518-2
Price : $44.99
Discount Price : $26.54

O'Reilly
Version Control with Subversion
ISBN : 978-0-596-51033-6
Price : $39.99
Discount Price : $25.99


I've seen the Pragmatic book recommended many times on the  
Subversion Users list. And the O'Reilly book is of course the one  
that is written by the authors of Subversion and is available free  
online at http://svnbook.org/


You may also want to pass your recommendations on to the Subversion  
Users list.



Ryan,

I was a little concerned about mentioning nerdbooks.com for fear that  
it would get me in trouble. I understand that promoting any business  
on a forum is not good thing, because it can get out of hand and after  
a while people will try to push all kinds of businesses, but I've been  
buying from nerdbooks for a couple of years, they have always been  
great to work with, their service and pricing has always been great.


I thought that by listing the prices, any members of the forum who saw  
the info might benefit from their great prices.


Last night I read the first 43 pages of 'Pragmatic Version Control  
using Subversion, and the book is awesome. So far it has explained  
part of the BIG picture very well. I can't wait to finish it...


The first 43 pages have already explained some of my basic questions,  
some of which I have listed below. With any luck this book, and the  
other two should help to answer a lot of my questions below...


For those of us who are not computer science majors all this stuff is  
mostly foreign (buzzwords). When I tried getting involved with svn I  
found mostly tutorials and information on how to setup a basic local  
svn repository and use the commands, but nothing that really explained  
the big picture, such as :


( 1 ) what components are required (clients, daemons, or servers, gui  
interface, directories, data, etc) :

   ( a ) on the local machines ?
   ( b ) on the server ?
   ( c ) where do they, or where should they each get installed  
(preferred locations) ?
   ( d ) what permissions do they need to in order to protect the  
data from intrusion, and

   ( e ) still be accessible to the users, and
   ( f ) also accessible to the daemons/servers/clients ?
   ( g ) which method is best suited to remote repositories :
  ( 1 ) WebDav, or
  ( 2 ) something else ('svnserve' which I read about  
yesterday as an alternative to WebDav) ?
   ( h ) how relatively secure can an average person make this  
stuff without knowing about unix jails, etc ?
   ( i ) how risky is doing this without being a unix security  
master guru ?


( 2 ) what's the difference between the :
   ( a ) trunk,
   ( b ) branches,
   ( c ) tags, etc. and
   ( d ) when do you use, or transition from one to another ?
   ( e ) what do they really mean ?
   ( f ) some of the articles mentioned a trunk, others never did ?
   ( g ) some articles mentioned import, add, create, and other  
commands, but the overall strategy of how to design a successful  
environment was not something I found ?
   ( i ) after trying to create a remote repository using a gui  
client, and later

 using bash $ 'svnadmin create 
https://my-domain/path/2/my-repository'
 over the weekend, I finally found one article mentioning  
that svnadmin
 cannot be used to create a remote repository, from which  
I surmised,
 that you have to issue that command on the remote  
server, either

 physically or perhaps via ssh.

( 3 ) what about checkout, merging, sandbox, workspace. I assume  
(workspace == sandbox), etc.


( a ) must checkout location be the workspace (one workspace) ?
   ( 1 ) i.e. one physical folder where you check  
everything in/out of,
   ( 2 ) so that the svn software (daemon/ser

Re: clearsilver install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bill Hernandez


On Mar 30, 2009, at 9:29 PM, Bryan Blackburn wrote:


On Mon, Mar 30, 2009 at 06:33:57PM -0500, Bill Hernandez said:


[2009.30.03](06:22PM) -> [bhernandez] ~ $ which python
/opt/local/bin/python

( 1 ) trac installed : postgresql82 @8.2.12_0 (active)

   and I already had :  postgresql83 @8.3.6_0 (active)


Note that this is because py25-pgsql currently depends on just  
postgresql82
and doesn't have any variants to select other pgsql versions; I just  
edit it

locally to prefer 8.3 and install.



Bryan,

Thanks, I modified the portfile py25-pgsql at

/opt/local/var/macports/sources/rsync.macports.org/release/ports/ 
python/py25-pgsql/Portfile


replaced postgresql82 with postgresql83 in two places

[2009.31.03](12:22AM) -> [roscoe] ~ $ sudo port deactivate py25-pgsql

[2009.31.03](12:22AM) -> [roscoe] ~ $ sudo port uninstall -f py25-pgsql

[2009.31.03](12:23AM) -> [roscoe] ~ $ sudo port configure py25-pgsql

[2009.31.03](12:23AM) -> [roscoe] ~ $ sudo port build py25-pgsql

[2009.31.03](12:24AM) -> [roscoe] ~ $ sudo port install -fv py25-pgsql

[2009.31.03](12:25AM) -> [roscoe] ~ $ sudo port deactivate postgresql82

[2009.31.03](12:25AM) -> [roscoe] ~ $ sudo port uninstall -f  
postgresql82


[2009.31.03](12:26AM) -> [roscoe] ~ $ sudo port clean  postgresql82

Everything seems to have gone OK, I didn't see any errors

Thanks again...

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bill Hernandez


Bill Hernandez wrote:

[2009.30.03](06:46PM) -> [roscoe] ~ $ sudo port install mod_python25
Password:

--->  Activating mod_python25 @3.3.1_1

ERROR: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.

[2009.30.03](06:48PM) -> [roscoe] ~ $


On Mar 30, 2009, at 7:16 PM, Rainer Müller wrote:


I fixed this error for mod_python25 yesterday.
Try:
 sudo port sync
 sudo port uninstall mod_python25
 sudo port install mod_python25



Rainer,

Thanks for trying to help.

[2009.30.03](07:29PM) -> [roscoe] ~ $ sudo port sync
Password:

[2009.30.03](07:30PM) -> [roscoe] ~ $ sudo port uninstall mod_python25
--->  Deactivating mod_python25 @3.3.1_1
--->  Uninstalling mod_python25 @3.3.1_1

[2009.30.03](07:30PM) -> [roscoe] ~ $ sudo port clean mod_python25
--->  Cleaning mod_python25

[2009.30.03](07:30PM) -> [roscoe] ~ $ sudo port install mod_python25
--->  Fetching mod_python25
--->  Verifying checksum(s) for mod_python25
--->  Extracting mod_python25
--->  Applying patches to mod_python25
--->  Configuring mod_python25
--->  Building mod_python25
--->  Staging mod_python25 into destroot
Warning: mod_python25 requests to install files outside the common  
directory structure!

--->  Installing mod_python25 @3.3.1_2

# to enable mod_python add
#  LoadModule python_module modules/mod_python.so
# to your apache2 config file:
#  /opt/local/apache2/conf/httpd.conf

--->  Activating mod_python25 @3.3.1_2

Error: Target org.macports.activate returned: Image error: /opt/local/ 
apache2/modules/mod_python.so already exists and does not belong to a  
registered port.  Unable to activate port mod_python25.

Error: Status 1 encountered during processing.

[2009.30.03](07:31PM) -> [roscoe] ~ $


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


subversion books ?

2009-03-30 Thread Bill Hernandez


After trying to get subversion to work remotely via apache webdav and  
having dismal luck and many questions over the weekend, I went down to  
the local nerdbooks.com and bought three books this afternoon. They  
all had different aspects that I liked as I browsed through them, so  
instead of buying one as planned, I came home with three. But that's  
OK I'll read one and use the other two for reference.


They (nerdbooks.com) do mostly all web based sales, but luckily they  
have a warehouse in Richardson, TX  (Dallas area).


I don't know how their prices compare, but they do technical books  
only, and they have the most incredible selection.


I posted the book info here in case this is helpful to others

The Pragmatic Programmers
Pragmatic Version Control using Subversion
ISBN : 0-9776166-5-7
Price : $34.95
Discount Price : $20.97

Bruce Perens Open Source Series
Subversion Version Control
ISBN : 978-0-13-185518-2
Price : $44.99
Discount Price : $26.54

O'Reilly
Version Control with Subversion
ISBN : 978-0-596-51033-6
Price : $39.99
Discount Price : $25.99

Thanks to all those that help...

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bill Hernandez


[2009.30.03](06:46PM) -> [roscoe] ~ $ sudo port install mod_python25
Password:

--->  Activating mod_python25 @3.3.1_1

ERROR: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.

[2009.30.03](06:48PM) -> [roscoe] ~ $


I got the same error when I installed clearsilver a few minutes ago.

I am wondering what  I am missing now ?

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


clearsilver install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bill Hernandez


[2009.30.03](06:22PM) -> [bhernandez] ~ $ which python
/opt/local/bin/python

( 1 ) trac installed : postgresql82 @8.2.12_0 (active)

and I already had :  postgresql83 @8.3.6_0 (active)

( 2 ) Will this cause a problem ?

[2009.30.03](06:23PM) -> [roscoe] ~ $ sudo port install clearsilver
Password:
--->  Fetching clearsilver
--->  Attempting to fetch clearsilver-0.10.5.tar.gz from 
http://www.clearsilver.net/downloads
--->  Verifying checksum(s) for clearsilver
--->  Extracting clearsilver
--->  Applying patches to clearsilver
--->  Configuring clearsilver
--->  Building clearsilver
--->  Staging clearsilver into destroot
--->  Installing clearsilver @0.10.5_0
--->  Activating clearsilver @0.10.5_0

( 3 ) ERROR: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.


[2009.30.03](06:27PM) -> [roscoe] ~ $ port installed
The following ports are currently installed:
  apache2 @2.2.11_0+darwin_9 (active)
  apr @1.3.3_1 (active)
  apr-util @1.3.4_1 (active)
  autoconf @2.63_0 (active)
  autoconf213 @2.13_1 (active)
  automake @1.10.2_0 (active)
  bison @2.4.1_0 (active)
  bzip2 @1.0.5_2 (active)
  clearsilver @0.10.5_0 (active)
  curl @7.19.3_0 (active)
  cyrus-sasl2 @2.1.21_0+kerberos (active)
  db44 @4.4.20_1 (active)
  db46 @4.6.21_4 (active)
  db47 @4.7.25_1 (active)
  expat @2.0.1_0 (active)
  fontconfig @2.6.0_2+macosx (active)
  freetype @2.3.8_0+macosx (active)
  gawk @3.1.6_0 (active)
  gd2 @2.0.35_4 (active)
  gettext @0.17_4 (active)
  gmake @3.81_0 (active)
  gperf @3.0.4_0 (active)
  help2man @1.36.4_1 (active)
  jpeg @6b_3 (active)
  libiconv @1.12_2 (active)
  libmcrypt @2.5.8_1 (active)
  libpng @1.2.35_0 (active)
  libtool @2.2.6a_0 (active)
  libxml2 @2.7.3_0 (active)
  libxslt @1.1.24_2 (active)
  m4 @1.4.12_1 (active)
  mhash @0.9.9.9_0 (active)
  mysql5 @5.0.77_0+server (active)
  ncurses @5.7_0 (active)
  ncursesw @5.7_0 (active)
  neon @0.28.3_0 (active)
  openldap @2.3.35_1 (active)
  openssl @0.9.8j_0 (active)
  ossp-uuid @1.6.2_0 (active)
  p5-locale-gettext @1.05_0 (active)
  p5-macosx-file @0.71_0 (active)
  pcre @7.8_1 (active)
  perl5.8 @5.8.9_2+db (active)
  php5 @5.2.9_0+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)

  pkgconfig @0.23_1 (active)
  postgresql82 @8.2.12_0 (active)
  postgresql83 @8.3.6_0 (active)
  postgresql83-doc @8.3.6_0 (active)
  postgresql83-server @8.3.6_0 (active)
  py25-bsddb @2.5.4_0 (active)
  py25-genshi @0.5_0 (active)
  py25-hashlib @2.5.4_0 (active)
  py25-mx-base @3.1.1_0 (active)
  py25-mysql @1.2.2_0+mysql5 (active)
  py25-pgsql @2.5.1_1 (active)
  py25-pygments @1.0_0 (active)
  py25-setuptools @0.6c9_0 (active)
  py25-sqlite3 @2.5.4_0 (active)
  py25-zlib @2.5.4_0 (active)
  python25 @2.5.4_0+darwin_9+macosx (active)
  python_select @0.2.1_0+darwin_9 (active)
  readline @6.0.000_1 (active)
  rpl @1.4.0_0 (active)
  serf @0.3.0_0 (active)
  sqlite3 @3.6.11_0 (active)
  subversion @1.5.6_0 (active)
  subversion-python25bindings @1.5.6_0 (active)
  tidy @20051026_0 (active)
  tiff @3.8.2_2+darwin_9+macosx (active)
  trac @0.11.3_0+mysql+postgres (active)
  xorg-bigreqsproto @1.0.2_0 (active)
  xorg-inputproto @1.5.0_0 (active)
  xorg-kbproto @1.0.3_0 (active)
  xorg-libX11 @1.2_0 (active)
  xorg-libXau @1.0.4_0 (active)
  xorg-libXdmcp @1.0.2_0 (active)
  xorg-xcmiscproto @1.1.2_0 (active)
  xorg-xextproto @7.0.5_0 (active)
  xorg-xf86bigfontproto @1.1.2_0 (active)
  xorg-xproto @7.0.14_1 (active)
  xorg-xtrans @1.2.3_0 (active)
  xpm @3.5.7_0 (active)
  zlib @1.2.3_2 (active)

[2009.30.03](06:27PM) -> [roscoe] ~ $

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error Installing : subversion +bash_completion +mac_os_x_server_mod_dav_svn

2009-03-28 Thread Bill Hernandez

I found :
[MacPorts] #18522: subversion 1.5.5 configure error on OSX 10.5

Comment(by dl...@…):

You are building with +mac_os_x_server_mod_dav_svn
That variant is unsupported.

I recommend cleaning subversion and building again without
+mac_os_x_server_mod_dav_svn:

port clean --all subversion
port -dv install subversion


I tried and got it to build.

If '+mac_os_x_server_mod_dav_svn' variant is unsupported, why does it  
show up when you do a $ port info subversion



[2009.28.03](01:08PM) -> [roscoe] ~ $ port info subversion
subversion @1.6.0, Revision 1 (devel)
Variants:bash_completion, darwin_7, disable_keychain,  
mac_os_x_server_mod_dav_svn, mod_dav_svn, no_bdb,

   no_neon, tools, unicode_path



Also, if you are installing on an 'OS X Server 10.4', don't you need  
'+mac_os_x_server_mod_dav_svn' for WebDav to work ?


I installed MacPorts subversion on the 'OS X Server 10.4', as  
recommended :


From my workstation, I just tried creating a new repository on the  
server at 'https://www.example.com:8443/svn/repository' and keep getting

and get the following error :

Description : Repository moved permanently to 'https://www.deep-blue-sky.com:8443/projects/' 
; please relocate

Suggestion : The operation could not be completed.

Technical Information
=

 Error : V4Error
 Exception : ZSVNException

Causal Information
==

Description : Repository moved permanently to 'https://www.deep-blue-sky.com:8443/projects/' 
; please relocate

Status : 175011
  File : subversion/libsvn_ra_neon/util.c, 549

Any Ideas ?


Bill Hernandez
Plano, Texas


On Mar 28, 2009, at 2:07 PM, Bill Hernandez wrote:

I tried to accessing subversion on a machine running OS X SERVER  
10.4.x (latest 10.4 version) and ran into a couple of errors related  
to something called 'neon'.


( 1 ) I had installed 'CornerStone svn client' yesterday tried on my  
workstation.

( 2 ) Setup a repository on my local machine, which worked fine.
( 3 ) Modified the apache2 virtual host conf file to allow WebDav  
over SSL on port 8443

( 3 ) Tried to create the repository using the client, using :

'https://www.example.com:8443/svn/repository'

as the path, but kept running into an error, so today I looked at  
the server and did a $which svn, and to my surprise found there  
wasn't any.


On the Leopard machine that I am using, just for grins, I also tried :

[2009.28.03](01:40PM) -> [roscoe] ~ $ which svn
/usr/bin/svn

and sure enough, it finally became clear why I couldn't access the  
server using the client. Cornerstone worked fine with a repository  
on my local machine, but not on the server. I didn't realize OS X  
Server 10.4 didn't have subversion installed, silly me.


Anyway, MacPorts to the rescue, I tried installing subversion using  :

$ sudo port install -v subversion +bash_completion 
+mac_os_x_server_mod_dav_svn


below, but ran into a couple of errors during the install.

Any ideas ?

Bill Hernandez
Plano, Texas

[2009.28.03](01:08PM) -> [roscoe] ~ $ sudo port selfupdate
Password:

[2009.28.03](01:08PM) -> [roscoe] ~ $ port installed apache2
The following ports are currently installed:
apache2 @2.2.10_0 (active)


MacPorts base version 1.700 installed
Downloaded MacPorts base version 1.700

The MacPorts installation is not outdated so it was not updated
[2009.28.03](01:08PM) -> [roscoe] ~ $ port info subversion
subversion @1.6.0, Revision 1 (devel)
Variants:bash_completion, darwin_7, disable_keychain,  
mac_os_x_server_mod_dav_svn, mod_dav_svn, no_bdb,

   no_neon, tools, unicode_path

Subversion is a version control system designed to be as similar to  
cvs(1) as possible, while fixing many

outstanding problems with cvs(1).
Homepage:http://subversion.tigris.org/

Library Dependencies: expat, neon, apr, apr-util, db46, sqlite3,  
gettext, libiconv, serf, cyrus-sasl2

Platforms:darwin
Maintainers:  dl...@geeklair.net

[2009.28.03](01:09PM) -> [roscoe] ~ $ sudo port install -v  
subversion +bash_completion+mac_os_x_server_mod_dav_svn


--->  Fetching bash-completion
--->  Attempting to fetch bash-completion-20060301.tar.bz2 from 
http://distfiles.macports.org/bash-completion
--->  Verifying checksum(s) for bash-completion
--->  Extracting bash-completion
--->  Configuring bash-completion
--->  Building bash-completion
--->  Staging bash-completion into destroot
--->  Installing bash-completion @20060301_1
To use bash_completion, add the following lines at the end of  
your .bash_profile:


  if [ -f /opt/local/etc/bash_completion ]; then
  . /opt/local/etc/bash_completion
  fi

--->  Activating bash-completion @20060301_1
--->  Cleaning bash-completion
--->  Fetching neon
--->  Attempting to fetch neon-0.28.3.tar.gz from 
http://distfiles.macpo

Error Installing : subversion +bash_completion +mac_os_x_server_mod_dav_svn

2009-03-28 Thread Bill Hernandez
I tried to accessing subversion on a machine running OS X SERVER  
10.4.x (latest 10.4 version) and ran into a couple of errors related  
to something called 'neon'.


( 1 ) I had installed 'CornerStone svn client' yesterday tried on my  
workstation.

( 2 ) Setup a repository on my local machine, which worked fine.
( 3 ) Modified the apache2 virtual host conf file to allow WebDav over  
SSL on port 8443

( 3 ) Tried to create the repository using the client, using :

'https://www.example.com:8443/svn/repository'

as the path, but kept running into an error, so today I looked at the  
server and did a $which svn, and to my surprise found there wasn't any.


On the Leopard machine that I am using, just for grins, I also tried :

[2009.28.03](01:40PM) -> [roscoe] ~ $ which svn
/usr/bin/svn

and sure enough, it finally became clear why I couldn't access the  
server using the client. Cornerstone worked fine with a repository on  
my local machine, but not on the server. I didn't realize OS X Server  
10.4 didn't have subversion installed, silly me.


Anyway, MacPorts to the rescue, I tried installing subversion using  :

$ sudo port install -v subversion +bash_completion 
+mac_os_x_server_mod_dav_svn


below, but ran into a couple of errors during the install.

Any ideas ?

Bill Hernandez
Plano, Texas

[2009.28.03](01:08PM) -> [roscoe] ~ $ sudo port selfupdate
Password:

[2009.28.03](01:08PM) -> [roscoe] ~ $ port installed apache2
The following ports are currently installed:
  apache2 @2.2.10_0 (active)


MacPorts base version 1.700 installed
Downloaded MacPorts base version 1.700

The MacPorts installation is not outdated so it was not updated
[2009.28.03](01:08PM) -> [roscoe] ~ $ port info subversion
subversion @1.6.0, Revision 1 (devel)
Variants:bash_completion, darwin_7, disable_keychain,  
mac_os_x_server_mod_dav_svn, mod_dav_svn, no_bdb,

 no_neon, tools, unicode_path

Subversion is a version control system designed to be as similar to  
cvs(1) as possible, while fixing many

outstanding problems with cvs(1).
Homepage:http://subversion.tigris.org/

Library Dependencies: expat, neon, apr, apr-util, db46, sqlite3,  
gettext, libiconv, serf, cyrus-sasl2

Platforms:darwin
Maintainers:  dl...@geeklair.net

[2009.28.03](01:09PM) -> [roscoe] ~ $ sudo port install -v subversion  
+bash_completion+mac_os_x_server_mod_dav_svn


--->  Fetching bash-completion
--->  Attempting to fetch bash-completion-20060301.tar.bz2 from 
http://distfiles.macports.org/bash-completion
--->  Verifying checksum(s) for bash-completion
--->  Extracting bash-completion
--->  Configuring bash-completion
--->  Building bash-completion
--->  Staging bash-completion into destroot
--->  Installing bash-completion @20060301_1
To use bash_completion, add the following lines at the end of  
your .bash_profile:


if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi

--->  Activating bash-completion @20060301_1
--->  Cleaning bash-completion
--->  Fetching neon
--->  Attempting to fetch neon-0.28.3.tar.gz from 
http://distfiles.macports.org/neon
--->  Verifying checksum(s) for neon
--->  Extracting neon
--->  Configuring neon
--->  Building neon
--->  Staging neon into destroot
--->  Installing neon @0.28.3_1
--->  Activating neon @0.28.3_1
--->  Cleaning neon
--->  Fetching serf
--->  Attempting to fetch serf-0.3.0.tar.bz2 from 
http://serf.googlecode.com/files/
--->  Verifying checksum(s) for serf
--->  Extracting serf
--->  Configuring serf
--->  Building serf
--->  Staging serf into destroot
--->  Installing serf @0.3.0_0
--->  Activating serf @0.3.0_0
--->  Cleaning serf
--->  Fetching subversion
--->  Attempting to fetch subversion-1.6.0.tar.bz2 from 
http://subversion.tigris.org/downloads/
--->  Verifying checksum(s) for subversion
--->  Extracting subversion
--->  Applying patches to subversion
--->  Configuring subversion

ERROR: Target org.macports.configure returned: configure failure:  
shell command " cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_devel_subversion/work/subversion-1.6.0"  
&& ./configure --prefix=/opt/local --with-berkeley-db=yes --with-neon=/ 
opt/local --with-apr=/opt/local/bin/apr-1-config --with-apr-util=/opt/ 
local/bin/apu-1-config --mandir=\${prefix}/share/man --disable-neon- 
version-check --with-serf=/opt/local --with-sasl=/opt/local --with- 
apxs=/opt/apache2/bin/apxs --disable-mod-activation " returned error 1
Command output: configure: Apache Portable Runtime Utility (APRUTIL)  
library configuration


checking for APR-util... yes
checking APR-UTIL version... 1.3.4
checking for pkg-config... /opt/local/bin/pkg-config
configure: checking neon library
checking neo

Re: runpsync triggers error - Can't locate MacOSX/File.pm [solved]

2009-03-25 Thread Bill Hernandez
Thanks to Rainer Müller for helping me get perl, psync and runsync  
fixed.


I included the steps so it will hopefully help others.


On Mar 25, 2009, at 5:16 PM, Bill Hernandez wrote:


I just found these.

http://developers.slashdot.org/article.pl?sid=09/02/18/1435227

http://www.theregister.co.uk/2009/02/16/apple_update_perl_breakage/

http://bulknews.typepad.com/blog/2009/02/mac-os-x-security-update-2009001-breaks-perl-cpan.html




On Mar 25, 2009, at 1:23 PM, Bill Hernandez wrote:

I've been seeing some errors during startup in the system log for  
sometime now, so the other day I decided to do an archive/install  
of the operating system.


I still have the same system log errors during startup, but  
everything seems to be working well.


I've been using runpsync for a long time and all of the sudden it  
is not working as shown below:


[2009.25.03](11:15AM) -> [roscoe] ~ $ sudo /usr/local/bin/runpsync  
0 -d 0 '/' '/Volumes/Backup_24'

Password



Looks like your psync is using /usr/bin/perl instead of
/opt/local/bin/perl.


WHEN I do a search for 'File.pm', I seem to find a bunch of them. Not
quite sure what has happened ?


$ port provides
/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-thread-multi-2level/ 
MacOSX/File.pm
/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-thread-multi-2level/ 
MacOSX/File.pm

is provided by: p5-macosx-file

You probably don't have p5-macosx-file installed?

Rainer

Bill Hernandez wrote:

Any other suggestions ?


You need to run psync using /opt/local/bin/perl, it seems to be using
/usr/bin/perl currently. The system provided perl will not use modules
installed by MacPorts.

Rainer

Bill Hernandez wrote:


I normally do everything associated with MacPorts via the Terminal,
but the other day I updated all the ports installed using
PortAuthority, and it installed perl

I changed :

FROM :  #!/usr/bin/perl
TO :#!/opt/local/bin/perl

In both /usr/bin/runpsync, and /usr/bin/psync


I assume you meant /usr/local/bin here?


in psync I also changed :

FROM :  # eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
TO :   eval '/opt/local/bin/perl  -S $0 ${1+"$@"}'


Looks good.


[2009.25.03](04:30PM) -> [roscoe] ~ $ sudo /usr/local/bin/runpsync 0 -
d 0 '/' '/Volumes/Backup_5'
Password:
Backup begun Wed Mar 25 16:31:16 2009
Can't locate DB_File.pm in @INC (@INC contains:
/opt/local/lib/perl5/5.8.9/darwin-2level
/opt/local/lib/perl5/5.8.9
/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level
/opt/local/lib/perl5/site_perl/5.8.9
/opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level
/opt/local/lib/perl5/vendor_perl/5.8.9
/opt/local/lib/perl5/vendor_perl/5.8.8
/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level
/opt/local/lib/perl5/vendor_perl .) at
/usr/local/bin/psync line 13.

BEGIN failed--compilation aborted at /usr/local/bin/psync line 13.
Backup completed: Wed Mar 25 16:31:16 2009[2009.25.03](04:31PM) ->
[roscoe] ~ $


Looks like http://trac.macports.org/ticket/18111

You need perl5.8 +db to get DB_File.pm. To add the variant to perl5.8
which you already have installed, run:
 sudo port -fn upgrade perl5.8 +db


I just found :

http://developers.slashdot.org/article.pl?sid=09/02/18/1435227

http://www.theregister.co.uk/2009/02/16/apple_update_perl_breakage/


As you are using Perl from MacPorts, bugs in the system version do not
affect you in this case.

Rainer

On Mar 25, 2009, at 5:33 PM, Rainer Müller wrote:


You need perl5.8 +db to get DB_File.pm. To add the variant to perl5.8
which you already have installed, run:
sudo port -fn upgrade perl5.8 +db


Rainer,

Thanks a million...

My backup is working great...

Best Regards,

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: runpsync triggers error - Can't locate MacOSX/File.pm

2009-03-25 Thread Bill Hernandez

I just found these.

http://developers.slashdot.org/article.pl?sid=09/02/18/1435227

http://www.theregister.co.uk/2009/02/16/apple_update_perl_breakage/

http://bulknews.typepad.com/blog/2009/02/mac-os-x-security-update-2009001-breaks-perl-cpan.html




On Mar 25, 2009, at 1:23 PM, Bill Hernandez wrote:

I've been seeing some errors during startup in the system log for  
sometime now, so the other day I decided to do an archive/install of  
the operating system.


I still have the same system log errors during startup, but  
everything seems to be working well.


I've been using runpsync for a long time and all of the sudden it is  
not working as shown below:


[2009.25.03](11:15AM) -> [roscoe] ~ $ sudo /usr/local/bin/runpsync 0  
-d 0 '/' '/Volumes/Backup_24'

Password:


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


runpsync triggers error - Can't locate MacOSX/File.pm

2009-03-25 Thread Bill Hernandez
I've been seeing some errors during startup in the system log for  
sometime now, so the other day I decided to do an archive/install of  
the operating system.


I still have the same system log errors during startup, but everything  
seems to be working well.


I've been using runpsync for a long time and all of the sudden it is  
not working as shown below:


[2009.25.03](11:15AM) -> [roscoe] ~ $ sudo /usr/local/bin/runpsync 0 - 
d 0 '/' '/Volumes/Backup_24'

Password:

Backup begun Wed Mar 25 11:16:18 2009

Can't locate MacOSX/File.pm in @INC (@INC contains:

/System/Library/Perl/5.8.8/darwin-thread-multi-2level
/System/Library/Perl/5.8.8
/Library/Perl/5.8.8/darwin-thread-multi-2level
/Library/Perl/5.8.8
/Library/Perl
/Network/Library/Perl/5.8.8/darwin-thread-multi-2level
/Network/Library/Perl/5.8.8
/Network/Library/Perl
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.8
/Library/Perl/5.8.6
/Library/Perl/5.8.1 .) at /usr/local/bin/psync line 14.

BEGIN failed--compilation aborted at /usr/local/bin/psync line 14.
Backup completed: Wed Mar 25 11:16:19 2009[2009.25.03](11:16AM) ->  
[roscoe] ~ $



WHEN I do a search for 'File.pm', I seem to find a bunch of them. Not  
quite sure what has happened ?


FILES FOUND :

/opt/local/lib/perl5/5.8.9/darwin-2level/IO/File.pm
/opt/local/lib/perl5/5.8.9/Digest/file.pm
/opt/local/lib/perl5/5.8.9/Tie/File.pm
/opt/local/var/macports/software/perl5.8/5.8.8_3+darwin_9/opt/local/ 
lib/perl5/5.8.8/darwin-2level/IO/File.pm
/opt/local/var/macports/software/perl5.8/5.8.8_3+darwin_9/opt/local/ 
lib/perl5/5.8.8/Digest/file.pm
/opt/local/var/macports/software/perl5.8/5.8.8_3+darwin_9/opt/local/ 
lib/perl5/5.8.8/Tie/File.pm
/opt/local/var/macports/software/perl5.8/5.8.9_2/opt/local/lib/ 
perl5/5.8.9/darwin-2level/IO/File.pm
/opt/local/var/macports/software/perl5.8/5.8.9_2/opt/local/lib/ 
perl5/5.8.9/Digest/file.pm
/opt/local/var/macports/software/perl5.8/5.8.9_2/opt/local/lib/ 
perl5/5.8.9/Tie/File.pm

/System/Library/Perl/5.8.8/darwin-thread-multi-2level/IO/File.pm
/System/Library/Perl/5.8.8/Digest/file.pm
/System/Library/Perl/5.8.8/Tie/File.pm
/System/Library/Perl/Extras/5.8.8/Archive/Tar/File.pm
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/DBD/File.pm
/System/Library/Perl/Extras/5.8.8/LWP/Protocol/file.pm
/System/Library/Perl/Extras/5.8.8/Path/Class/File.pm
/System/Library/Perl/Extras/5.8.8/Regexp/Common/URI/file.pm
/System/Library/Perl/Extras/5.8.8/URI/file.pm

Any ideas ?

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


man pages plus {with cached sample code}

2009-03-02 Thread Bill Hernandez
   pgsql.txt
pidof.txt
port.txt
printf.txt
PS1.txt
psql.txt
rand.txt
read.txt
reboot.txt
redirection.txt
repl.txt
rm.txt
rmdir.txt
rpl.txt
rs.txt
security.txt
sed.txt
seq.txt
sh.txt
sort.txt
ssh.txt
str_repeat.txt
stty.txt
su.txt
sudo.txt
tar.txt
tee.txt
termcap.txt
test.txt
    touch.txt
tr.txt
uname.txt
wc.txt
wget.txt
xargs.txt

Best Regards,

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: apache2 location

2009-02-26 Thread Bill Hernandez

On Feb 26, 2009, at 3:16 AM, Ryan Schmidt wrote:

"port contents foo" always tells you what files are installed by  
port foo so that is a good way to learn.



I wish I would have noticed that command when I started. Live and  
learn. I did learn a lot by traversing /opt/local


Thanks to everybody that contributed to this thread for taking the  
time to give great insights.


Very little of my time is actually spent on unix, and I feel proud of  
all that I've learned and taught myself since OS X came out. I can  
still remember when I opened the Terminal for the first time.  Several  
years have passed, and by now I've written several fairly elaborate  
shell scripts.  Anyway, just about the time I think I am getting the  
grasp of it all, I visit this group and find out how little I really  
know.


Thanks again to all who contribute to this project, and to those who  
patiently explain, and teach...


Best Regards,

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: apache2 location

2009-02-25 Thread Bill Hernandez


On Feb 25, 2009, at 12:13 AM, Bradley Giesbrecht wrote:

So we would add /usr/local/apache/bin:/usr/local/mysql/bin:/usr/ 
local/pgsql/bin:/usr/local/php/bin:etc

to our environment path?

And when apache, mysql or pgsql data out grow your disks you would  
move all your bin, data and etc to another volume and change your  
paths and startup parameters so they could find the new location for  
configs?


Data often needs to move. Binaries and configs hardly ever.

I think Scott sees an inconsistency and an error with the macports  
apache2 install. That's hard to deny.


Why not just park everything at /. No distribution I know of  
including apple will over write /apache2 and /mysql. Ok, now I'm  
kidding. Oh, maybe not.


ls /opt/local | cat
apache2
bin
etc
include
lib
libexec
man
sbin
share
sql-bench
var

Doesn't apache2 and sql-bench just look odd. Maybe we should give  
them a bunch of company.


I think of /opt/local/ as the root or macports.


Brad,

Good point...

I don't have huge amounts of data, so I have not run into that  
problem, but it's a good point nevertheless.


Matter of fact, all your points make great sense. I just like going  
to /opt/local/apache2 and finding everything related to apache in one  
spot.


I remember when I did one of my first installs and began trying to  
track down the logfiles to mysql and pgsql. It took me some time to  
locate them due to what I considered to be some inconsistencies. Now  
that I have done this a few times, it doesn't matter where the stuff  
lives. It is obvious that I was only considering the convenience, and  
not the practicality.


/opt/local/var/db/mysql5/hostname.local.err
/opt/local/var/log/postgresql83/postgres.log

Apache on the other hand was very easy to locate.

/opt/local/apache2/logs/access_log
/opt/local/apache2/logs/error_log
/opt/local/apache2/logs/mod_rewrite.log

Now that I more or less know where things live, it doesn't matter, but  
in the beginning it was not easy tracking down  all the logs and conf  
files. I should have taken a unix course, darn...


Periodically I will do a clean install of the operating system, and  
all the applications. I take that opportunity to do a clean install of  
all the ports I need.


I've done this several times now, on multiple computers, so I  
eventually wrote a shell script that backs up the databases, all the  
config files, etc. The script install what I need, and initializes the  
databases, creates all the symlinks, and a bunch of little cleanup  
stuff. I seem to have worked out all the little kinks, because the  
last three or four times everything has gone very well. BUT in the  
beginning it was a pain figuring out where all this stuff lived.


So if you guys think its better to correct the layout to fit in with  
the rest of the ports, I will be very happy, and make any adjustments  
to my script.


[2009.26.02](12:55AM) -> [roscoe] ~ $ port installed
The following ports are currently installed:
 apache2 @2.2.9_1+darwin_9 (active)
 apr @1.3.2_0+darwin_9 (active)
 apr-util @1.3.2_0 (active)
 bison @2.3_2 (active)
 bzip2 @1.0.5_1 (active)
 curl @7.18.2_0 (active)
 cyrus-sasl2 @2.1.21_0+kerberos (active)
 db44 @4.4.20_1 (active)
 db46 @4.6.21_1 (active)
 expat @2.0.1_0 (active)
 fontconfig @2.6.0_0+macosx (active)
 freetype @2.3.7_3+macosx (active)
 gawk @3.1.6_0 (active)
 gd2 @2.0.35_1 (active)
 gettext @0.17_3 (active)
 gmake @3.81_0 (active)
 gperf @3.0.3_0 (active)
 jpeg @6b_2 (active)
 libiconv @1.12_0 (active)
 libmcrypt @2.5.8_0 (active)
 libpng @1.2.29_0 (active)
 libtool @1.5.26_0 (active)
 libxml2 @2.6.32_1 (active)
 libxslt @1.1.23_0 (active)
 m4 @1.4.11_0 (active)
 mhash @0.9.9_0 (active)
 mysql5 @5.0.51a_0+server (active)
 ncurses @5.6_0 (active)
 ncursesw @5.6_1 (active)
 openldap @2.3.35_0 (active)
 openssl @0.9.8h_0 (active)
 ossp-uuid @1.6.1_0 (active)
 pcre @7.7_0 (active)
 perl5.8 @5.8.8_3+darwin_9 (active)
 php5 @5.2.6_1+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)

 pkgconfig @0.23_0 (active)
 postgresql83 @8.3.3_0 (active)
 postgresql83-doc @8.3.3_0 (active)
 postgresql83-server @8.3.3_0 (active)
 readline @5.2.012_1 (active)
 rpl @1.4.0_0 (active)
 sqlite3 @3.5.9_0 (active)
 tidy @20051026_0 (active)
 tiff @3.8.2_2+darwin_9+macosx (active)
 zlib @1.2.3_1 (active)
[2009.26.02](12:55AM) -> [roscoe] ~ $

Best Regards,

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: apache2 location

2009-02-24 Thread Bill Hernandez

On Feb 24, 2009, at 7:03 PM, Scott Haneda wrote:


On Feb 24, 2009, at 3:31 PM, Chris Janton wrote:

On 2009-02-24 , at 15:35 , Scott Haneda wrote:

My feeling is, the sooner the better, there are already a handful  
of blogs out there, which instructions and hard paths in their  
instructions pointing to the current location.  The sooner we put  
it where MacPorts recommends, the better the long term usability  
is going to be.


how about leaving it where it has been for years? I suspect many  
people who use the port have become "attached" to the current  
location, including me.



Scott,

Please don't change it.

I wish mysql, pgsql, php were setup in individual directories like  
apache2.


That was one of the niceties of installing them individually in /usr/ 
local


/usr/local/apache
/usr/local/mysql
/usr/local/pgsql
/usr/local/php

It may not work as well with shared resources, etc. but there is  
something really nice about going to one folder and finding everything  
you need for one application. symlinks can address any difficulties.


Thanks for the efforts...

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: comparing a possibly altered file with the original

2009-02-18 Thread Bill Hernandez


On Feb 18, 2009, at 2:31 PM, David Epstein wrote:



I have done a very small amount of editing of some configuration  
files in
/opt/local, and I suddenly realize that I should have been keeping a  
record,
because upgrading the port will delete my customizations. A specific  
file I
have changed is texmf.cnf in the teTex package, but I probably only  
deleted

one or two comment characters.

What is the simplest way to compare the version of the file that I  
now have
in /opt/local with the version of the file that  I originally  
downloaded on
installation? I want a method that is safe, with no danger of  
overwriting my

current setup.


Take a look at BBEdit it makes backups of every change you make to  
text files, also look at Time Machine


Sample of BBEdit AUTOMATIC backups (I only show the content of one  
day's worth). You don't have to anything BBEdit does it all  
automatically.


Each of the backup directories at the bottom has similar contents :

2008-11-05
add (2008-11-05 21-55-41-116).php
bh_class_pagination_demo (2008-11-05 21-29-58-065).php
bh_class_pdo_demo (2008-11-05 21-30-17-282).php
date_test_page (2008-11-05 21-38-44-232).php
dir_index (2008-11-05 21-47-36-814).php
dir_index (2008-11-05 21-47-53-914).php
error (2008-11-05 21-30-10-209).php
finish (2008-11-05 21-29-53-090).php
generator (2008-11-05 22-16-11-751).php
generator (2008-11-05 22-16-24-839).php
generator (2008-11-05 22-18-39-419).php
generator (2008-11-05 22-18-55-251).php
heredoc_images (2008-11-05 21-53-55-977).php
heredoc_sample (2008-11-05 21-53-29-429).php
heredoc_sample_00 (2008-11-05 21-54-24-175).php
heredoc_sample_01 (2008-11-05 21-54-37-754).php
heredoc_sample_02 (2008-11-05 21-54-50-915).php
heredoc_sample_03 (2008-11-05 21-55-01-179).php
highlight_code (2008-11-05 21-51-38-988).php
highlight_code (2008-11-05 21-52-38-814).php
index (2008-11-05 21-29-47-601).php
index (2008-11-05 22-01-13-156).php
insert (2008-11-05 21-55-59-661).php
insert (2008-11-05 21-59-54-025).php
insert (2008-11-05 22-01-25-078).php
insert (2008-11-05 22-11-21-878).php
math_round_up (2008-11-05 21-48-12-295).php
mysql_test (2008-11-05 21-37-56-645).php
read_dir (2008-11-05 21-32-48-476).php
read_dir (2008-11-05 21-33-26-950).php
read_dir (2008-11-05 21-35-19-395).php
read_directory (2008-11-05 21-35-08-288).php
recursive_dir (2008-11-05 21-48-41-480).php
recursive_dir (2008-11-05 21-50-55-762).php
serialize_test_page (2008-11-05 21-39-57-473).php
serialize_test_page (2008-11-05 21-40-43-666).php
serialize_test_page (2008-11-05 21-41-50-131).php
serialize_test_page (2008-11-05 21-43-15-133).php
serialize_test_page (2008-11-05 21-45-49-724).php
serialize_test_page (2008-11-05 21-46-36-540).php
setup (2008-11-05 22-04-33-729).php
show_table (2008-11-05 21-35-37-073).php
show_table (2008-11-05 21-36-10-220).php
stack_and_queue_demo (2008-11-05 21-37-00-603).php
test_page (2008-11-05 21-47-07-202).php

2008-11-19
2008-11-06
2008-11-07
2008-11-08
2008-11-09
2008-11-10
2008-11-11
2008-11-12
2008-11-13
2008-11-14
2008-11-15
2008-11-16
2008-11-17
2008-11-18
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with Apache2 starting up

2009-01-28 Thread Bill Hernandez


On Jan 27, 2009, at 10:14 PM, Jeff Stubbs wrote:


Greetings,

I've used MP to build an Apache2/MySQL/PHP5 server for spouse's  
employer last November. Since startup then, everything has worked  
fine. However, late yesterday afternoon, I got a call that the sites  
weren't accessible. Since I was a work, I told them just to restart  
the machine. Machine restarted fine, but Apache2 didn't start up on  
boot. SSH'd in and ran 'top', no httpd processes were running.  
Launchctl showed that the plist file was already loaded. Using the  
apachectl command (MP's, not Apples), the server started up. Just  
for kicks, this evening I restarted the machine, Apache2 wasn't  
heard from, but will start from the command line. Anyone one  
experiencing the same problem?


I left one line out in the previous message, so I fixed it and re-sent  
it. The script actually does a lot more, but in extracting the part  
that might be helpful to you I left out one line, defining $divider.


I've been experiencing the same problem for several months now on two  
out of three machines. The one still working correctly is a G4 running  
Tiger, the two not working are an iMac G5 Intel, and a PowerBook Pro  
17 Intel ( both running the latest Leopard). I've tried re-installing,  
and still have the problem, so finally I just wrote the shell script.


Here's what I run everytime I reboot :

Best Regards,

Bill Hernandez
Plano, Texas


#!/bin/bash

# +-+-+-+-+-+- 
+-+-+

# [2007.22.08](10:43AM) -> [roscoe] ~
# $ bh_startup
# +-+-+-+-+-+- 
+-+-+


function pause(){
read -p "$*"
}

echo "This script will start (apache, mysql, pgsql)..."
echo
echo "Please enter your admin password..."
sudo echo

sudo /opt/local/apache2/bin/apachectl start

sleep 5
# pause 'Press any key to continue…'

sudo /opt/local/lib/mysql5/bin/mysqld_safe --user=mysql &

sleep 5
# pause 'Press any key to continue…'

PGSQL_DIRNAME="postgresql83"
sudo chown -R postgres:admin /opt/local/var/db/${PGSQL_DIRNAME}
sudo chown -R postgres:admin /opt/local/lib/${PGSQL_DIRNAME}

sudo su - postgres -c "/opt/local/lib/${PGSQL_DIRNAME}/bin/pg_ctl -D / 
opt/local/var/db/${PGSQL_DIRNAME}/data -l logfile start"


sleep 5

divider 
= 
"---"

echo "Check Apache..."
echo
echo "\$ ps aux | grep httpd"
echo $divider
ps aux | grep httpd
echo $divider
echo "Check PgSQL..."
echo
echo "\$ ps aux | grep postgres | sed 's/ *$//g'"
echo $divider
ps aux | grep postgres | sed 's/ *$//g'
echo $divider
echo "Check MySQL..."
echo
echo "\$ ps aux | grep mysql"
echo $divider
ps aux | grep mysql
echo $divider

exit

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Problems with Apache2 starting up

2009-01-28 Thread Bill Hernandez


On Jan 27, 2009, at 10:14 PM, Jeff Stubbs wrote:


Greetings,

I've used MP to build an Apache2/MySQL/PHP5 server for spouse's  
employer last November. Since startup then, everything has worked  
fine. However, late yesterday afternoon, I got a call that the sites  
weren't accessible. Since I was a work, I told them just to restart  
the machine. Machine restarted fine, but Apache2 didn't start up on  
boot. SSH'd in and ran 'top', no httpd processes were running.  
Launchctl showed that the plist file was already loaded. Using the  
apachectl command (MP's, not Apples), the server started up. Just  
for kicks, this evening I restarted the machine, Apache2 wasn't  
heard from, but will start from the command line. Anyone one  
experiencing the same problem?


I've been experiencing the same problem for several months now on two  
out of three machines. The one still working correctly is a G4 running  
Tiger, the two not working are an iMac G5 Intel, and a PowerBook Pro  
17 Intel ( both running the latest Leopard). I've tried re-installing,  
and still have the problem, so finally I just wrote the shell script.


Here's what I run everytime I reboot :

Best Regards,

Bill Hernandez
Plano, Texas



#!/bin/bash

# +-+-+-+-+-+- 
+-+-+

# [2007.22.08](10:43AM) -> [roscoe] ~
# $ apache_startup
# +-+-+-+-+-+- 
+-+-+


function pause(){
read -p "$*"
}

echo "This script will start (apache, mysql, pgsql)..."
echo
echo "Please enter your admin password..."
sudo echo

sudo /opt/local/apache2/bin/apachectl start

sleep 5
# pause 'Press any key to continue…'

sudo /opt/local/lib/mysql5/bin/mysqld_safe --user=mysql &

sleep 5
# pause 'Press any key to continue…'

PGSQL_DIRNAME="postgresql83"
sudo chown -R postgres:admin /opt/local/var/db/${PGSQL_DIRNAME}
sudo chown -R postgres:admin /opt/local/lib/${PGSQL_DIRNAME}

sudo su - postgres -c "/opt/local/lib/${PGSQL_DIRNAME}/bin/pg_ctl -D / 
opt/local/var/db/${PGSQL_DIRNAME}/data -l logfile start"


sleep 5

echo "Check Apache..."
echo
echo "\$ ps aux | grep httpd"
echo $divider
ps aux | grep httpd
echo $divider
echo "Check PgSQL..."
echo
echo "\$ ps aux | grep postgres | sed 's/ *$//g'"
echo $divider
ps aux | grep postgres | sed 's/ *$//g'
echo $divider
echo "Check MySQL..."
echo
echo "\$ ps aux | grep mysql"
echo $divider
ps aux | grep mysql
echo $divider

exit



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mod_authn_dbm.so and dbmmanage are not playing well together, causing [500] Internal Server Error

2008-12-24 Thread Bill Hernandez

Problem with mod_authn_dbm.so

I have been using the standard flat file created by htpasswd, but  
tried to switch to mod_authn_dbm.so , So I went to http://httpd.apache.org/docs/2.0/programs/dbmmanage.html 
 and followed the plan...


Using the dbmmanage that MacPorts installed with apache2, I created  
some user password records.


dbmmanage does not have a way to specify AuthDBMType, so I created the  
records and then tried to figure out what type of records dbmmanage  
was actually generating by trying the five AuthDBMType(s) below, but  
none of them worked.


-
The log showed after the last restart :
-
[Wed Dec 24 21:15:47 2008] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9  
OpenSSL/0.9.7l DAV/2 PHP/5.2.6 configured -- resuming normal operations


/www/etc/dbmpasswd: unexpected file type or format

[Wed Dec 24 21:16:02 2008] [error] [client ::1] (120022)APR does not  
understand this error code: could not open dbm (type DB) auth file: / 
www/etc/dbmpasswd

-
The permissions are set the same as ones for the standard flat file.
-
Displaying the records at the terminal :
-
$ path="/www/etc/dbmpasswd" ; dbmmanage $path view
---> shows all the user password records

-
The virtual host file contains
-

AllowOverride None
Order Allow,Deny
Allow from 127.0.0.1
Allow from localhost
Satisfy All

AuthType basic
AuthName "private area"
AuthBasicProvider dbm
AuthDBMType default

# I tried all five of the AuthDBMType(s) below
# [500] INTERNAL SERVER ERROR

# AuthDBMType default
# AuthDBMType DB
# AuthDBMType GDBM
# AuthDBMType NDBM
# AuthDBMType SDBM

AuthDBMUserFile /www/etc/dbmpasswd
Require valid-user


These are the modules that deal with auth that are installed

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
# LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so

Any ideas what else to try ?
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


freetype - Status 1 encountered during processing

2008-12-10 Thread Bill Hernandez

Support,

[2008.10.12](11:17PM) -> [roscoe] ~ $ sudo port install -v freetype
--->  Fetching freetype
--->  Attempting to fetch patch-detect.mk.diff from 
http://svn.macports.org/repository/macports/distfiles/freetype
--->  Attempting to fetch patch-detect.mk.diff from 
http://svn.macports.org/repository/macports/distfiles/general/
--->  Attempting to fetch patch-detect.mk.diff from 
http://svn.macports.org/repository/macports/downloads/freetype
Error: Target org.macports.fetch returned: fetch failed
Error: Status 1 encountered during processing.
[2008.10.12](11:17PM) -> [roscoe] ~ $


I tried PortAuthority and got this :
--->  Fetching freetype
--->  patch-detect.mk.diff doesn't seem to exist in /opt/local/var/ 
macports/distfiles/freetype

--->  Attempting to fetch patch-detect.mk.diff from 
http://svn.macports.org/repository/macports/distfiles/freetype
--->  Attempting to fetch patch-detect.mk.diff from 
http://svn.macports.org/repository/macports/distfiles/general/
--->  Attempting to fetch patch-detect.mk.diff from 
http://svn.macports.org/repository/macports/downloads/freetype
Warning: the following items did not execute (for freetype):  
org.macports.activate org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build org.macports.destroot org.macports.install


Any ideas ?

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Getting Started

2008-09-08 Thread Bill Hernandez
>> On Sep 8, 2008, at 12:44 PM, Ryan Schmidt wrote:
>>
>>> On Sep 8, 2008, at 11:46 AM, Bill Hernandez wrote:
>>>
>>>> [2008.08.09](11:43AM) -> [roscoe] ~ $ man port
>>>> No manual entry for port
>>>>
>>>> [2008.08.09](11:43AM) -> [roscoe] ~ $
>>>
>>> Then your MANPATH is not set up correctly.


Opening the Terminal, and issuing :

$ echo 'export MANPATH="$MANPATH:/opt/local/share/man"' >>  
~/.bash_profile

solved the '$ man port' problem

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Getting Started

2008-09-06 Thread Bill Hernandez
ditional functionalities to some of the ports.

Whatever you do, don't give up on MacPorts, it is an awesome, and  
successful effort by some amazingly talented, and dedicated people to  
help the rest of us ordinary mortals...

I added a couple of small shell scripts below for you, they may be  
overkill for you now, but at least you'll have them for later...

Best of luck,

Bill Hernandez
Plano, Texas

# --+-+-+-+-+-+- 
+-+-+-+-+
# Here's a small shell script that will help you get variant info :
# --+-+-+-+-+-+- 
+-+-+-+-+

#!/bin/bash
#Author - Bill Hernandez (Plano, Texas)
# ScriptName -  bh_port_variants v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)
#
# make sure you save this in your shell search path
# make sure you set the permissions so that the owner is executable
# something like chmod 700 /path/to/bin/folder/bh_port_longdesc
# This assumes you have BBEdit as a Text Editor, if you don't have it 
www.barebones.com 
  has a free version that is almost as powerful
# if you call it without passing it a port name, it will you give you  
info on Apache
# port variants Apache2

divider 
='-'

# --+-+-+-+-+-+- 
+-+-+-+-+
# BEGIN CODE HERE
# --+-+-+-+-+-+- 
+-+-+-+-+
if [ $# -lt 1 ]; then
fsubj=apache2 ;
else
fsubj=$1 ;
fi
apath=/Applications/BBEdit.app ;
output_file=/tmp/${fsubj}_port_long_desc.txt ;

debug_mode=true

today="[`date +%Y.%d.%m`](`date +%I:%M%p`)"
filepath=$0
dirpath=`dirname $filepath`
script=$(basename $filepath)
os_info=`uname -a`
os=$(uname -a | awk '{print $1 " " $3}')
domain=$(uname -a | awk '{print $2}')
username=$(id -u -n)

if [ $debug_mode == true ]; then
echo $divider > $output_file ;
echo "( 1 )" "called : $script $@" >> $output_file
echo $divider >> $output_file ;
echo "( 2 )" $today >> $output_file
echo "( 3 )" "\$username : ${username}" >> $output_file
echo "( 4 )" "\$filepath : " $filepath >> $output_file
echo "( 5 )" "\$dirpath : " $dirpath >> $output_file
echo "( 6 )" "\$script : " $script >> $output_file
echo "( 7 )" "\$os : " $os >> $output_file
echo "( 8 )" "\$domain : " $domain >> $output_file
echo "( 9 )" "\$os_info : " $os_info >> $output_file
echo $divider >> $output_file ;
fi

port variants $fsubj >> $output_file ;
echo $divider >> $output_file ;
port info long_description:$fsubj >> $output_file ;
open -a $apath $output_file

# --+-+-+-+-+-+- 
+-+-+-+-+
# Here's a small shell script that will help the long description for  
a given port :
# It may be overkill for now
# --+-+-+-+-+-+- 
+-+-+-+-+

#!/bin/bash
#Author - Bill Hernandez (Plano, Texas)
# ScriptName - bh_port_ldesc --> bh_port_longdesc v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)
#
# make sure you save this in your shell search path
# make sure you set the permissions so that the owner is executable
# something like chmod 700 /path/to/bin/folder/bh_port_longdesc
# This assumes you have BBEdit as a Text Editor, if you don't have it 
www.barebones.com 
  has a free version that is almost as powerful
# if you call it without passing it a port name, it will you give you  
info on Apache

if [ $# -lt 1 ]; then
fsubj=apache ; apath=/Applications/BBEdit.app ; fpath=/tmp/$ 
{fsubj}_port_long_desc.txt ; port info long_description:$fsubj >>  
$fpath ; open -a $apath $fpath
else
fsubj=$1 ; apath=/Applications/BBEdit.app ; fpath=/tmp/$ 
{fsubj}_port_long_desc.txt ; port info long_description:$fsubj >>  
$fpath ; open -a $apath $fpath
fi

# --+-+-+-+-+-+- 
+-+-+-+-+
# This is far from complete, but it will give you some idea
# --+-+-+-+-+-+- 
+-+-+-+-+

#!/bin/bash

# ScriptName : bh_port_install_part_01
# Version: 1.0.0
# Author : Bill Hernandez
# Updated: Wednesday, April 16, 2008 (10:18 AM)

bh_port_install_part_01


# SEE : bh_port_install_all
# SEE : port_installed_2007_08_19.txt

# SEE 

PHP 5.2.6 is creating SQLite 2.1 data files, which are unreadable by SQLite 3

2008-07-16 Thread Bill Hernandez
sult_object->fieldName($i);   // retrieve 
each  
field
$s .= "".$field_name."";
}
$s .= "";

// Execute the query and retrieve all rows as an associated array
$result_array = $db->arrayQuery("SELECT * FROM $tablename",  
SQLITE_ASSOC);
foreach($result_array as $key => $array)
{
$s .= "";
foreach($array as $k => $v)
{
$s .= "".$v."";
}
$s .= "";
}
$s .= "";
echo $s ;

unset($db); // all done, destroy database object

// +-+-+-+-+-+
// open, or create new database (object interface)
// +-+-+-+-+-+
$db = new SQLiteDatabase($filepath);
$sql = "SELECT name FROM sqlite_master WHERE type = 'table' LIMIT 1";
$result_object = $db->unbufferedQuery($sql);
$no_of_fields = $result_object->numFields();// fetch the number of  
fields
$s = "" ;
$s .= "" ;
$s .= "[$filename] tables\n";
$s .= "";

$s .= "";
for ($i = 0; $i < $no_of_fields; $i++)
{
 $field_name = $result_object->fieldName($i);   // retrieve 
each  
field
$s .= "".$field_name."";
}
$s .= "";

$sql = "SELECT name FROM sqlite_master WHERE type = 'table'";
$result_array = $db->arrayQuery($sql, SQLITE_ASSOC);
foreach($result_array as $key => $array)
{
$s .= "";
foreach($array as $k => $v)
{
$s .= "".$v."";
}
$s .= "";
}
$s .= "";
echo $s ;

unset($db); // all done, destroy database object

// +-+-+-+-+-+
// open, or create new database (object interface)
// +-+-+-+-+-+
$tablename= "customers" ;
$db = new SQLiteDatabase($filepath);
$result_object = $db->unbufferedQuery("SELECT * FROM $tablename LIMIT  
1");
$no_of_fields = $result_object->numFields();// fetch the number of  
fields
echo "" ;
echo "[$tablename] field names\n";
$i = 0;
while ($i < $no_of_fields)
{
 $field_name = $result_object->fieldName($i++); // retrieve 
each  
field
 echo $field_name."\n";
}
unset($db); // all done, destroy database object

?>

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install php5 fails on Leopard 10.5.4

2008-07-11 Thread Bill Hernandez
Ken,

Here's a couple of shell scripts that might help you at least get an  
idea (REMOVE ANY LINES YOU DON'T NEED)...

#!/bin/bash
# FILENAME : bh_port_server_start

sudo launchctl load -w /Library/LaunchDaemons/org.macports.slapd.plist
sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.postgresql83-server.plist

sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist



#!/bin/bash
# FILENAME : bh_port_server_stop

sudo launchctl unload -w /Library/LaunchDaemons/org.macports.slapd.plist
sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.postgresql83-server.plist

sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist
sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.apache2.plist



On Jul 11, 2008, at 1:09 AM, Ken Tozier wrote:

>> /opt/local/apache2/conf/httpd.conf
>> should show the three items below :
>>
>> LoadModule php5_module modules/libphp5.so
>>
>> Include conf/mod_php.conf
>>
>> DocumentRoot "/Web/path/to/your/www"
>


Ken,

You will need to create the httpd.conf from a copy of either :
( a ) one you already have such as '/Library/WebServer/Documents/
httpd.conf', or
( b ) duplicate the one in the '/opt/local/apache2/conf/original/'
folder :

You are probably better of with ( b ) and compare the contents to what
exists in ( a )
-
These are the steps, but first read the explanation below :
-
( 1 ) $ curr_dir=pwd
( 2 ) $ sudo cp /opt/local/apache2/conf/original/httpd.conf /opt/local/
apache2/conf/httpd.conf
( 3 ) $ cd /opt/local/apache2/modules
( 4 ) $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
( 5 ) $ cd $curr_dir

The instructions at the end of the PHP install show something similar
to the comments below

NOTES FROM THE PHP INSTALL
# +-+-+-+-+-+-
+-+-+-+-+
# If this is your first install, you might want to do :
# cd /opt/local/apache2/modules
# sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
# Password:
# ---> [activating module `php5' in /opt/local/apache2/conf/httpd.conf]
# +-+-+-+-+-+-
+-+-+-+-+

-
Explanation of the steps above
-
( 1 ) save the current directory to a variable
( 2 ) this step is used if you don't have an existing httpd.conf, i.e.
this is your first install, not an upgrade of the port
( 3 ) this puts you in the correct directory to execute the next command
( 4 ) The command on line ( 4 )  will automatically add 'LoadModule
php5_module modules/libphp5.so' to the httpd.conf.
I believe it also adds 'Include conf/mod_php.conf', if not you
can add that manually towards the bottom of httpd.conf
( 5 ) restore the current dir

When you open httpd.conf you can set DocumentRoot "/Web/path/to/your/
www" to the same path that the default apple installation sets, that
way you won't have to move any of your html documents if you so desire.

i.e. DocumentRoot /Library/WebServer/Documents/

If you wish you can also compare the httpd.conf in '/Library/WebServer/
Documents/' to the new one you copied in step ( 2 ) above and see what
small changes you need to make.

Whatever you do, don't give up. I was incredibly frustrated when I
first started working with MacPorts because I didn't understand the
hierarchy, but am extremely glad that I stuck with it.

Don't hesitate to ask for help. There are some really knowledgeable
people on this forum that will pitch in to help...

Good Luck,

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install php5 fails on Leopard 10.5.4

2008-07-11 Thread Bill Hernandez
On Jul 11, 2008, at 1:09 AM, Ken Tozier wrote:

>> /opt/local/apache2/conf/httpd.conf
>> should show the three items below :
>>
>> LoadModule php5_module modules/libphp5.so
>>
>> Include conf/mod_php.conf
>>
>> DocumentRoot "/Web/path/to/your/www"
>


Ken,

You will need to create the httpd.conf from a copy of either :
( a ) one you already have such as '/Library/WebServer/Documents/ 
httpd.conf', or
( b ) duplicate the one in the '/opt/local/apache2/conf/original/'  
folder :

You are probably better of with ( b ) and compare the contents to what  
exists in ( a )
-
These are the steps, but first read the explanation below :
-
( 1 ) $ curr_dir=pwd
( 2 ) $ sudo cp /opt/local/apache2/conf/original/httpd.conf /opt/local/ 
apache2/conf/httpd.conf
( 3 ) $ cd /opt/local/apache2/modules
( 4 ) $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
( 5 ) $ cd $curr_dir

The instructions at the end of the PHP install show something similar  
to the comments below

NOTES FROM THE PHP INSTALL
# +-+-+-+-+-+- 
+-+-+-+-+
# If this is your first install, you might want to do :
# cd /opt/local/apache2/modules
# sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
# Password:
# ---> [activating module `php5' in /opt/local/apache2/conf/httpd.conf]
# +-+-+-+-+-+- 
+-+-+-+-+

-
Explanation of the steps above
-
( 1 ) save the current directory to a variable
( 2 ) this step is used if you don't have an existing httpd.conf, i.e.  
this is your first install, not an upgrade of the port
( 3 ) this puts you in the correct directory to execute the next command
( 4 ) The command on line ( 4 )  will automatically add 'LoadModule  
php5_module modules/libphp5.so' to the httpd.conf.
I believe it also adds 'Include conf/mod_php.conf', if not you  
can add that manually towards the bottom of httpd.conf
( 5 ) restore the current dir

When you open httpd.conf you can set DocumentRoot "/Web/path/to/your/ 
www" to the same path that the default apple installation sets, that  
way you won't have to move any of your html documents if you so desire.

i.e. DocumentRoot /Library/WebServer/Documents/

If you wish you can also compare the httpd.conf in '/Library/WebServer/ 
Documents/' to the new one you copied in step ( 2 ) above and see what  
small changes you need to make.

Whatever you do, don't give up. I was incredibly frustrated when I  
first started working with MacPorts because I didn't understand the  
hierarchy, but am extremely glad that I stuck with it.

Don't hesitate to ask for help. There are some really knowledgeable  
people on this forum that will pitch in to help...

Good Luck,

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Calls to imagettftext cause fatal error in php ( SOLVED )

2008-07-10 Thread Bill Hernandez
FINALLY got the problem solved :

I posted a new email outlining the steps required to fix the problem,  
and posted a corrected working demo of captcha image verification...

SEE : Step by step Instructions to fix MacPorts 'freetype' problem

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install php5 fails on Leopard 10.5.4

2008-07-10 Thread Bill Hernandez

On Jul 10, 2008, at 7:35 PM, [EMAIL PROTECTED] wrote:

> but MacPorts seems to blaze it's own trail regarding file layout/ 
> install locations so how do I get Apache to use my newly compiled PHP?


This may help...

$sudo find /opt/local -name whatever_you_are_looking_for

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install php5 fails on Leopard 10.5.4

2008-07-10 Thread Bill Hernandez

On Jul 10, 2008, at 7:35 PM, [EMAIL PROTECTED] wrote:

> I know how to activate the default Leopard PHP by opening the / 
> private/etc/apache2/httpd.conf file and uncommenting
>
> #LoadModule php5_modulelibexec/apache2/libphp5.so
>
> but MacPorts seems to blaze it's own trail regarding file layout/ 
> install locations so how do I get Apache to use my newly compiled PHP?


make sure you are running phpinfo.php within the DocumentRoot (check  
httpd.conf)

-
APACHE
-
/opt/local/apache2/conf/httpd.conf
should show the three items below :

LoadModule php5_module modules/libphp5.so

Include conf/mod_php.conf

DocumentRoot "/Web/path/to/your/www"
-
PHP
-
Check the path exists :
/opt/local/apache2/modules/libphp5.so

$ open /opt/local/apache2/modules/

if you don't find this you might have to re-install php, but first try :
$ sudo find /opt/local -name libphp5.so

-
Check the path exists :
/opt/local/apache2/conf/mod_php.conf

$ open /opt/local/apache2/conf/

if you don't have it you might have to do :
$ sudo cp /opt/local/apache2/conf/extras-conf/mod_php.conf /opt/local/ 
apache2/conf/mod_php.conf
-
Check the path exists :
/opt/local/etc/php.ini

if you don't have it you might have to do :
$ sudo cp /opt/local/etc/php.ini-recommended /opt/local/etc/php.ini
-
MYSQL
-
Check the path exists :
/opt/local/etc/my.cnf

$ open /opt/local/etc/

if you don't have it you might have to do :
$ sudo cp /opt/local/share/mysql5/mysql/my-medium.cnf /opt/local/etc/ 
my.cnf
-
When you find { httpd.conf, mod_php.conf, php.ini, my.cnf } take a  
look at the changes you'll need to make. If you need any help, let me  
know...

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Step by step Instructions to fix MacPorts 'freetype' problem

2008-07-09 Thread Bill Hernandez
Ryan and Chris Janton posted a couple of messages that started me down  
the right path to fix 'freetype' so after a couple of days of working  
on this I thought I would post step by step instructions, along with a  
corrected really good demo of the captcha image verification. The  
original one I posted had some logic flaws that I did not find until I  
got 'freetype' fixed.

Anyway its all here, it now works great for me. Hope it's helpful to  
somedy else...

Bill Hernandez
Plano, Texas

This shows the STEP BY STEP METHOD to fix the MacPorts 'freetype'  
problem.
The 'freetype' fix allows the PHP command 'imagettftext' to work  
correctly without going bonkers, and generating the myriad of errors,  
including the one below :

The process has forked and you cannot use this CoreFoundation  
functionality safely. You MUST exec().
Break on  
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
 
() to debug.


THIS FIXES THE PROBLEM :


I use BBEdit as my editor of choice, so adjust this to reflect your  
editor :


( 1 ) SHUTDOWN APACHE

$ sudo /opt/local/apache2/bin/apachectl stop


( 2 ) MAKE SURE APACHE HAS SHUTDOWN, there should only be one line as  
shown

$ ps aux | grep httpd
 --->  roscoe   902   0.0  0.0   599740388 s000  S+ 
7:08PM   0:00.00 grep httpd

( 3 ) find the Portfile

$ sudo find /opt/local -name Portfile | grep freetype
 --->  /opt/local/var/macports/sources/rsync.macports.org/release/ 
ports/print/freetype/Portfile

( 4 ) open the folder containing the Portfile
 optional step, you can drop the Portfile on top of BBEdit to  
open it, or do step ( 4 ) below

$ open /opt/local/var/macports/sources/rsync.macports.org/release/ 
ports/print/freetype/

( 5 ) OPEN the Portfile (skip this step if you did step ( 3 ))

$ sudo open -a /Applications/BBEdit.app /opt/local/var/macports/ 
sources/rsync.macports.org/release/ports/print/freetype/Portfile

( 6 ) Once the document opens, find the lines that follow :
FIND

configure.args \
 --with-old-mac-fonts


( 7 ) REPLACE '--with-old-mac-fonts' WITH
When done, save the Portfile and close it.

configure.args \
 --with-fsspec=no \
 --with-fsref=no \
 --with-quickdraw-toolbox=no \
 --with-quickdraw-carbon=no \
 --with-old-mac-fonts=no


( 8 ) Find which version of freetype is '(active)', it will have to be  
DE-ACTIVATED

$ sudo port installed | grep freetype
 --->  freetype @2.3.5_1
 --->  freetype @2.3.7_1 (active)


( 9 ) DE-ACTIVATE the version of freetype that is '(active)'

$ sudo port deactivate freetype @2.3.7_1
 --->  Deactivating freetype 2.3.7_1


( 10 ) UN-INSTALL the version of freetype that was '(active)', and has  
now been DE-ACTIVATED
 If there are dependencies, it will not want to uninstall  
unless it is FORCED using '-f' switch

$ sudo port uninstall -f freetype @2.3.7_1
 --->  Unable to uninstall freetype 2.3.7_1, the following ports  
depend on it:
 --->  fontconfig
 --->  gd2
 --->  php5
 --->  fontconfig
 --->  php5
Warning: Uninstall forced.  Proceeding despite dependencies.
 --->  Uninstalling freetype 2.3.7_1


( 11 ) CONFIGURE the version of freetype that is referred to by the  
modified 'Portfile'

$ sudo port configure freetype
 --->  Fetching freetype
 --->  Verifying checksum(s) for freetype
 --->  Extracting freetype
 --->  Applying patches to freetype
 --->  Configuring freetype


( 12 ) BUILD the version of freetype that is referred to by the  
modified 'Portfile'

$ sudo port build freetype
 --->  Building freetype with target all


( 13 ) INSTALL the version of freetype that is referred to by the  
modified 'Portfile'
 It will automatically be activated


Re: Calls to imagettftext cause fatal error in php

2008-07-08 Thread Bill Hernandez
Yesterday 'imagettftext' was working at the end of the day. It even  
worked with ZEND DEBUGGER, which shocked me.

Today I tried running it, and I get :

Safari can’t open the page.

Safari can’t open the page 
“http://localhost/vh_shared/databases/PgSQL/not_done/php_31/captcha_one/random_image_sample.php
 
”. The error was: “Operation could not be completed.  
(kCFErrorDomainCFNetwork error 302.)” (kCFErrorDomainCFNetwork:302)  
Please choose Report Bugs to Apple from the Safari menu, note the  
error number, and describe what you did before you saw this message.

When I look at the Apache error.log, it is once again filled with :

The process has forked and you cannot use this CoreFoundation  
functionality safely. You MUST exec().

Break on  
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
 
() to debug.



I began searching the web and found similar problems with others  
running Cold Fusion, and other applications, and also noticed that  
there was a new bug report at :

--

http://trac.macports.org/ticket/15909

Ticket #15909 (new defect)
freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken
--

In the messages below I noticed :

>> I modified my version of the Portfile (running from trunk)
>>
>>  --with-fsspec=no
>>  --with-fsref=no
>>  --with-quickdraw-toolbox=no
>>  --with-quickdraw-carbon=no
>>  --with-old-mac-fonts=no //this one is for me, since I don't use  
>> old mac fonts ;-)
>>
>> and left --with-ats alone.
>>
>> Followed with
>>
>>  sudo port configure freetype
>>  sudo port build freetype
>>  sudo port install -f freetype
>>
>> hand tested PHP, works as advertised.
>

Are there any detailed instructions on how to do this. I tried reading  
the manual, but came away scratching my head ?

Appreciate any help solving this.

Bill Hernandez
Plano, Texas


On Jul 7, 2008, at 3:56 PM, Ryan Schmidt wrote:

>
> On Jul 7, 2008, at 15:08, Chris Janton wrote:
>
>> On 2008-07-07 , at 11:53 , Ryan Schmidt wrote:
>>
>>>> The way I read things is that if one turns off quickdraw in  
>>>> freetype
>>>> then the "problem" will not occur.
>>>
>>> What are the implications of turning off QuickDraw in FreeType? What
>>> features will then not work?
>>
>> From what I can see? No more deprecated QuickDraw functions. The  
>> following configuration settings seem relevant...
>>
>> --with-old-mac-fontsallow Mac resource-based fonts to be used
>
> That configure switch was added to the portfile at the request of a  
> user:
>
> http://trac.macports.org/ticket/13045
>
>
>> --with-fsspec   use obsolete FSSpec API of MacOS, if  
>> available
>> (default=yes)
>> --with-fsrefuse Carbon FSRef API of MacOS, if available
>> (default=yes)
>> --with-quickdraw-toolbox
>> use MacOS QuickDraw in ToolBox, if available
>> (default=yes)
>> --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
>> (default=yes)
>> --with-ats  use AppleTypeService, if available  
>> (default=yes)
>>
>> I modified my version of the Portfile (running from trunk)
>>
>>  --with-fsspec=no
>>  --with-fsref=no
>>  --with-quickdraw-toolbox=no
>>  --with-quickdraw-carbon=no
>>  --with-old-mac-fonts=no //this one is for me, since I don't use  
>> old mac fonts ;-)
>>
>> and left --with-ats alone.
>>
>> Followed with
>>
>>  sudo port configure freetype
>>  sudo port build freetype
>>  sudo port install -f freetype
>>
>> hand tested PHP, works as advertised.
>>
>>  sudo /opt/local/apache2/bin/apachectl graceful
>>
>> tested the same PHP code with web browser. I got an image with text  
>> on it as expected (the same image that gets produced by a running  
>> the PHP straight-up).
>>
>> From what I read the only "feature" that doesn't work anymore is  
>> the ability to use freetype with old-style Mac file specs and  
>> references.
>
> So I guess this would be a matter of some software that would want  
> to access fonts with old-style Mac file specs and references? But  
> disabling the QuickDraw and FSSpec and FSRef functions wouldn't  
> affect FreeType's ability to load old Mac fonts?
>
>> Anyway - I was just taking the opportunity to look into MacPorts in  
>> more depth. I don't have any attachment to a change or not change  
>> in the freetype port.
>
>

Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Calls to imagettftext cause fatal error in php

2008-07-07 Thread Bill Hernandez
ts




Please enter the string shown in the image in the form. The  
possible characters are letters from A to Z in capitalized form and  
the numbers from 0 to 9.




' : '' ; ?>












// This is example ( 1 ) found on http://us.php.net/imagettftext

header("Content-type:image/png");   //Set the content-type
$image=imagecreatetruecolor(400,30);//Create the image
$white=imagecolorallocate($image,255,255,255);  //Create some colors
$grey=imagecolorallocate($image,128,128,128);
$black=imagecolorallocate($image,0,0,0);
imagefilledrectangle($image,0,0,399,29,$white);
$text='Testing...'; //The text to draw
// $font='/[path to font]/Arial.ttf';   //Replace path by your own font 
 
path
$font='/Library/Fonts/Verdana.ttf'; //Replace path by your own font 
 
path
// ZEND DEBUGGER EXITS ON THE NEXT LINE WITHOUT ERROR MESSAGE
imagettftext($image,20,0,11,21,$grey,$font,$text);  //Add some shadow  
to the text
imagettftext($image,20,0,10,20,$black,$font,$text); //Add the text
imagepng($image);   //Using imagepng() results in clearer text compared  
with imagejpeg()
imagedestroy($image);

// 
?>

Thanks to all those that helped me with this problem...

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php5 5.2.5 -> 5.2.6 upgrade fails ?

2008-07-07 Thread Bill Hernandez
Ryan and the Group,

SUCCESS...

Upgrading failed using clean, upgrade until finally, I tried  
deactivate manually, followed by clean, install and it worked...

I know my stuff is usually lengthy, and I apologize for that, but its  
meant for the non-experts that might run into similar problems.

THANKS very much to all who took the time to respond.

Bill Hernandez
Plano, Texas
# --
# THESE DID NOT WORK FOR ME
# --
$ sudo port upgrade sqlite3

$ sudo port clean --work sqlite3
$ sudo port -d install sqlite3
---> DEBUG: Executing org.macports.activate (sqlite3)
--->  Activating sqlite3 3.5.9_0
---> Error: Target org.macports.activate returned: Image error:  
Another version of this port (sqlite3 @3.5.8_0) is already active.
---> Warning: the following items did not execute (for sqlite3):  
org.macports.activate
---> Error: Status 1 encountered during processing.

# --
# THESE FINALLY SOLVED THE PROBLEM
# --
$ sudo port deactivate sqlite3 @3.5.8_0
$ sudo port clean --work sqlite3
$ sudo port -d install sqlite3
$ sudo port installed | grep sqlite
---> php5 @5.2.5_3+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)
---> sqlite3 @3.5.8_0
---> sqlite3 @3.5.9_0 (active)


$ sudo port deactivate php5 @5.2.5_3+apache2+fastcgi+ipc+macosx 
+mysql5+pcntl+pear+postgresql83+readline+sockets+sqlite+tidy
$ sudo port clean --work php5
$ sudo port install php5 +apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy
$ sudo port installed | grep apache
---> apache2 @2.2.8_0+darwin_9 (active)
---> php5 @5.2.5_3+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy
---> php5 @5.2.6_1+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)


$ sudo port deactivate apache2 @2.2.8_0+darwin_9
$ sudo port clean --work apache2
$ sudo port install apache2
$ sudo port installed | grep apache
---> apache2 @2.2.8_0+darwin_9
---> apache2 @2.2.9_1+darwin_9 (active)
---> php5 @5.2.5_3+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy
---> php5 @5.2.6_1+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)


$ sudo port deactivate postgresql83 @8.3.1_0
$ sudo port clean --work postgresql83
$ sudo port install postgresql83
$ sudo port installed | grep postgres
---> php5 @5.2.5_3+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy
---> php5 @5.2.6_1+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)
---> postgresql83 @8.3.1_0 (active)
---> postgresql83-doc @8.3.1_0
---> postgresql83-doc @8.3.3_0 (active)
---> postgresql83-server @8.3.1_0
---> postgresql83-server @8.3.3_0 (active)


$ sudo port outdated
---> No installed ports are outdated.

SUCCESS...

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php5 5.2.5 -> 5.2.6 upgrade fails ?

2008-07-07 Thread Bill Hernandez
jpeg @6b_2 (active)
   libiconv @1.12_0 (active)
   libmcrypt @2.5.8_0 (active)
   libpng @1.2.26_0
   libpng @1.2.29_0 (active)
   libtool @1.5.26_0 (active)
   libxml2 @2.6.31_0
   libxml2 @2.6.32_1 (active)
   libxslt @1.1.22_0
   libxslt @1.1.23_0 (active)
   m4 @1.4.10_1
   m4 @1.4.11_0 (active)
   mhash @0.9.9_0 (active)
   mysql5 @5.0.51a_0+server (active)
   ncurses @5.6_0 (active)
   ncursesw @5.6_1 (active)
   openldap @2.3.35_0 (active)
   openssl @0.9.8g_0
   openssl @0.9.8h_0 (active)
   ossp-uuid @1.6.0_2
   ossp-uuid @1.6.1_0 (active)
   pcre @7.6_0
   pcre @7.7_0 (active)
   perl5.8 @5.8.8_2+darwin_9
   perl5.8 @5.8.8_3+darwin_9 (active)
   php5 @5.2.5_3+apache2+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql83+readline+sockets+sqlite+tidy (active)
   pkgconfig @0.23_0 (active)
   postgresql83 @8.3.1_0 (active)
   postgresql83-doc @8.3.1_0
   postgresql83-doc @8.3.3_0 (active)
   postgresql83-server @8.3.1_0
   postgresql83-server @8.3.3_0 (active)
   readline @5.2.007_0+darwin_9
   readline @5.2.012_1 (active)
   rpl @1.4.0_0 (active)
   sqlite3 @3.5.8_0 (active)
   tidy @20051026_0 (active)
   tiff @3.8.2_1+macosx
   tiff @3.8.2_2+darwin_9+macosx (active)
   zlib @1.2.3_1 (active)



Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


php5 5.2.5 -> 5.2.6 upgrade fails ?

2008-07-06 Thread Bill Hernandez
$ sudo port outdated
The following installed ports are outdated:
apache22.2.8_0 < 2.2.9_1
apr1.2.12_1 < 1.3.2_0
apr-util   1.2.12_0 < 1.3.2_0
bzip2  1.0.5_0 < 1.0.5_1
curl   7.18.1_2 < 7.18.2_0
fontconfig 2.5.0_0 < 2.6.0_0
freetype   2.3.5_1 < 2.3.7_1
libpng 1.2.26_0 < 1.2.29_0
libxml22.6.31_0 < 2.6.32_1
libxslt1.1.22_0 < 1.1.23_0
m4 1.4.10_1 < 1.4.11_0
openssl0.9.8g_0 < 0.9.8h_0
ossp-uuid  1.6.0_2 < 1.6.1_0
pcre   7.6_0 < 7.7_0
perl5.85.8.8_2 < 5.8.8_3
postgresql83   8.3.1_0 < 8.3.3_0
postgresql83-doc   8.3.1_0 < 8.3.3_0
postgresql83-server8.3.1_0 < 8.3.3_0
readline   5.2.007_0 < 5.2.012_1
sqlite33.5.8_0 < 3.5.9_0
tiff   3.8.2_1 < 3.8.2_2

$ sudo port -d uninstall php5 +apache2 +fastcgi +tidy +mysql5  
+postgresql83 +sqlite +ipc +pcntl +pear +readline +sockets

$ sudo port clean --work php5

$ sudo port -v install php5 +apache2 +fastcgi +tidy +mysql5  
+postgresql83 +sqlite +ipc +pcntl +pear +readline +sockets

Password:
--->  Configuring php5
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i686-apple-darwin9.3.0
checking target system type... i686-apple-darwin9.3.0
shtool:echo:Warning: unable to determine terminal sequence for bold mode
shtool:echo:Warning: unable to determine terminal sequence for bold mode
checking for gcc... /usr/bin/gcc-4.0
checking whether the C compiler (/usr/bin/gcc-4.0 -O2 -L/opt/local/ 
lib) works... no
configure: error: installation or configuration problem: C compiler  
cannot create executables.
Error: Target org.macports.configure returned: configure failure:  
shell command " cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_www_php5/work/php-5.2.6" && ./configure -- 
prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/ 
share/info --with-config-file-path=/opt/local/etc --enable-calendar -- 
with-iconv=/opt/local --enable-exif --enable-ftp --enable-wddx --with- 
zlib=/opt/local --with-bz2=/opt/local --with-libxml-dir=/opt/local -- 
with-gettext=/opt/local --with-xml --with-expat-dir=/opt/local --with- 
xmlrpc --enable-soap --enable-filepro --enable-bcmath --enable-trans- 
sid --enable-mbstring --enable-dbx --enable-dba --enable-zip --with- 
openssl=/opt/local --with-mhash=/opt/local --with-mcrypt=/opt/local -- 
with-xsl=/opt/local --with-curl=/opt/local --with-pcre-regex=/opt/ 
local --with-gd=/opt/local --with-jpeg-dir=/opt/local --with-png-dir=/ 
opt/local --enable-gd-native-ttf --with-freetype-dir=/opt/local --with- 
ldap=/usr --with-kerberos=/usr --with-iodbc=/usr --with-apxs2=/opt/ 
local/apache2/bin/apxs --with-tidy=/opt/local --with-mysql=/opt/local/ 
var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_www_php5/work/mysql5 --with-pdo-mysql=/opt/ 
local/bin/mysql_config5 --with-mysql-sock=/opt/local/var/run/mysql5/ 
mysqld.sock --with-mysqli=/opt/local/bin/mysql_config5 --with-pgsql=/ 
opt/local/lib/postgresql83/bin --with-pdo-pgsql=/opt/local/lib/ 
postgresql83/bin --with-sqlite --with-pdo-sqlite=/opt/local --enable- 
sqlite-utf8 --enable-shmop --enable-sysvsem --enable-sysvshm --enable- 
sysvmsg --enable-pcntl --with-pear=/opt/local/lib/php --with-readline=/ 
opt/local --enable-sockets " returned error 1
Command output: loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i686-apple-darwin9.3.0
checking target system type... i686-apple-darwin9.3.0
shtool:echo:Warning: unable to determine terminal sequence for bold mode
shtool:echo:Warning: unable to determine terminal sequence for bold mode
checking for gcc... /usr/bin/gcc-4.0
checking whether the C compiler (/usr/bin/gcc-4.0 -O2 -L/opt/local/ 
lib) works... no
configure: error: installation or configuration problem: C compiler  
cannot create executables.

Warning: the following items did not execute (for php5):  
org.macports.activate org.macports.configure org.macports.build  
org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Any ideas ?

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Calls to imagettftext cause fatal error in php

2008-07-05 Thread Bill Hernandez
I'd be grateful if someone can confirm the problem below, and if so  
add a vote to get it fixed at http://bugs.php.net/bug.php?id=45437


In trying to setup "PHP Form image verification" I tried the example  
at http://www.reconn.us/content/view/28/49/, and could not get an  
image to display, so I tried example ( 1 ) found on http://us.php.net/imagettftext 
, and still could not get an image. So I launched the ZEND DEBUGGER,  
and found the problem.


When I trace Using ZEND DEBUGGER the call to imagettftext shows where  
the break in execution occurs.

Checking the Apache error log shows :
Break on  
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__ 
() to debug.
[Sun Jul 06 00:45:18 2008] [notice] child pid 2990 exit signal Trace/ 
BPT trap (5)


I posted a bug report:
http://bugs.php.net/bug.php?id=45437
Bug #45437  Calls to imagettftext crash

Same exact problem has been reported as Bug #44524, but has been  
written off as bogus.

IT IS NOT BOGUS...
Problem:

Calls to imagettftext always fail with no error on Leopard 10.5.3
when run under MacPorts Apache 2.2.6, PHP 5.2.5 and the GD library.
Reproduce code:
---
// filename : random_image.php (called by  )

// This is example ( 1 ) found on http://us.php.net/imagettftext
//Set the content-type
header("Content-type:image/png");

//Create the image
$image=imagecreatetruecolor(400,30);

//Create some colors
$white=imagecolorallocate($image,255,255,255);
$grey=imagecolorallocate($image,128,128,128);
$black=imagecolorallocate($image,0,0,0);
imagefilledrectangle($image,0,0,399,29,$white);

//The text to draw
$text='Testing...';
//Replace path by your own font path
// $font='fonts/10.ttf';
$font='/[path to font]/Arial.ttf';
//Add some shadow to the text
imagettftext($image,20,0,11,21,$grey,$font,$text);
//Addthetext
imagettftext($image,20,0,10,20,$black,$font,$text);

//Using imagepng()results in clearer text compared with imagejpeg()
imagepng($image);
imagedestroy($image);
?>
---






Random image sample
charset=iso-8859-1\">



Validation string not valid! Please try again!';
else
{
echo 'Your string is valid!';
//do something with the data
}
}
?>


Comments




Please enter the string shown in the image in the form. The  
possible characters are letters from A to Z in capitalized form and  
the numbers from 0 to 9.


\"number\">










---


Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


MySQL Server Installer - found 2 repeatable bugs, and a couple of suggestions

2008-05-13 Thread Bill Hernandez
..
--->  ... Success!
--->
---> By default, a MySQL installation has an anonymous user, allowing  
anyone

---> to log into MySQL without having to have a user account created for
---> them.  This is intended only for testing, and to make the  
installation

---> go a bit smoother.  You should remove them before moving into a
---> production environment.
--->
---> Remove anonymous users? [Y/n] y
--->  ... Success!
--->
---> Normally, root should only be allowed to connect from  
'localhost'.  This
---> ensures that someone cannot guess at the root password from the  
network.

--->
---> Disallow root login remotely? [Y/n] y
--->  ... Success!
--->
---> By default, MySQL comes with a database named 'test' that anyone  
can
---> access.  This is also intended only for testing, and should be  
removed

---> before moving into a production environment.
--->
---> Remove test database and access to it? [Y/n] y
--->  - Dropping test database...
--->  ... Success!
--->  - Removing privileges on test database...
--->  ... Success!
--->
---> Reloading the privilege tables will ensure that all changes made  
so far

---> will take effect immediately.
--->
---> Reload privilege tables now? [Y/n] y
--->  ... Success!
--->
---> Cleaning up...
--->
---> All done!  If you've completed all of the above steps, your MySQL
---> installation should now be secure.
--->
---> Thanks for using MySQL!
---> GREAT !

[2008.13.05](09:32AM) -> [roscoe] ~ $
--
( 8 ) See if mysql server works ?
--

[2008.02.04](02:47AM) -> [roscoe] ~ $ mysql5 -u root -p
---> Enter password:
---> Welcome to the MySQL monitor.  Commands end with ; or \g.
---> Your MySQL connection id is 3
---> Server version: 5.0.51-log Source distribution
--->
---> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE IF NOT EXISTS users_db ;
---> Query OK, 1 row affected (0.03 sec)
--->
---> mysql> show databases ;
---> ++
---> | Database  |
---> ++
---> | information_schema |
---> | mysql |
---> | test   |
---> | users_db   |
---> ++
---> 4 rows in set (0.00 sec)

mysql> quit
---> Bye

--
( 8 ) Import the mysql backup data ?
--
[2008.02.04](02:54AM) -> [roscoe] ~ $ mysql5 -u root -p users_db < / 
Users/roscoe/Desktop/users_db.sql

---> Enter password:

[2008.02.04](02:55AM) -> [roscoe] ~ $ mysql5 -u root -p
---> Enter password:
---> Welcome to the MySQL monitor.  Commands end with ; or \g.
---> Your MySQL connection id is 5
---> Server version: 5.0.51-log Source distribution
--->
---> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use users_db ;
---> Database changed

mysql> show tables ;
---> ++
---> | Tables_in_users_db |
---> ++
---> | users  |
---> |  |
---> ||
---> | |
---> | quotes |
---> ++
---> 18 rows in set (0.00 sec)

LIFE IS SWELL, MySQL WORKS...

Hopefully you guys can fix the two bugs in the installer...

One last thing : I have to use 'cat' or open '/opt/local/var/db/mysql5/ 
roscoe.local.err' using an editor


$ sudo cat /opt/local/var/db/mysql5/roscoe.local.err

It would be much easier if the error log had an extension of '.log',  
then if you double clicked on it, the 'Console.app' would open it,  
which is more of a standard way of accessing logs for me...


Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


MySQL Server Installer - found 2 repeatable bugs, and a couple of suggestions

2008-05-13 Thread Bill Hernandez
 Reloading privilege tables..
--->  ... Success!
--->
---> By default, a MySQL installation has an anonymous user, allowing  
anyone

---> to log into MySQL without having to have a user account created for
---> them.  This is intended only for testing, and to make the  
installation

---> go a bit smoother.  You should remove them before moving into a
---> production environment.
--->
---> Remove anonymous users? [Y/n] y
--->  ... Success!
--->
---> Normally, root should only be allowed to connect from  
'localhost'.  This
---> ensures that someone cannot guess at the root password from the  
network.

--->
---> Disallow root login remotely? [Y/n] y
--->  ... Success!
--->
---> By default, MySQL comes with a database named 'test' that anyone  
can
---> access.  This is also intended only for testing, and should be  
removed

---> before moving into a production environment.
--->
---> Remove test database and access to it? [Y/n] y
--->  - Dropping test database...
--->  ... Success!
--->  - Removing privileges on test database...
--->  ... Success!
--->
---> Reloading the privilege tables will ensure that all changes made  
so far

---> will take effect immediately.
--->
---> Reload privilege tables now? [Y/n] y
--->  ... Success!
--->
---> Cleaning up...
--->
---> All done!  If you've completed all of the above steps, your MySQL
---> installation should now be secure.
--->
---> Thanks for using MySQL!
---> GREAT !

[2008.13.05](09:32AM) -> [roscoe] ~ $
--
( 8 ) See if mysql server works ?
--

[2008.02.04](02:47AM) -> [roscoe] ~ $ mysql5 -u root -p
---> Enter password:
---> Welcome to the MySQL monitor.  Commands end with ; or \g.
---> Your MySQL connection id is 3
---> Server version: 5.0.51-log Source distribution
--->
---> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE IF NOT EXISTS users_db ;
---> Query OK, 1 row affected (0.03 sec)
--->
---> mysql> show databases ;
---> ++
---> | Database  |
---> ++
---> | information_schema |
---> | mysql |
---> | test   |
---> | users_db   |
---> ++
---> 4 rows in set (0.00 sec)

mysql> quit
---> Bye

--
( 8 ) Import the mysql backup data ?
--
[2008.02.04](02:54AM) -> [roscoe] ~ $ mysql5 -u root -p users_db < / 
Users/roscoe/Desktop/users_db.sql

---> Enter password:

[2008.02.04](02:55AM) -> [roscoe] ~ $ mysql5 -u root -p
---> Enter password:
---> Welcome to the MySQL monitor.  Commands end with ; or \g.
---> Your MySQL connection id is 5
---> Server version: 5.0.51-log Source distribution
--->
---> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use users_db ;
---> Database changed

mysql> show tables ;
---> ++
---> | Tables_in_users_db |
---> ++
---> | users  |
---> |  |
---> ||
---> | |
---> | quotes |
---> ++
---> 18 rows in set (0.00 sec)

LIFE IS SWELL, MySQL WORKS...

Hopefully you guys can fix the two bugs in the installer...

One last thing : I have to use 'cat' or open '/opt/local/var/db/mysql5/ 
roscoe.local.err' using an editor


$ sudo cat /opt/local/var/db/mysql5/roscoe.local.err

It would be much easier if the error log had an extension of '.log',  
then if you double clicked on it, the 'Console.app' would open it,  
which is more of a standard way of accessing logs for me...


Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: [help] Writing to /opt/local/var/log/install_setup.log ?

2008-05-02 Thread Bill Hernandez

On May 2, 2008, at 7:47 PM, Bryan Blackburn wrote:


On May 2, 2008, at 5:36 PM, Bill Hernandez wrote:

I am trying to write a running command log to : /opt/local/var/log/ 
install_setup.log

but doing either below :

shell> $ sudo echo "${TS} $1" >> $BASH_CMD_LOG
shell> $ sudo su -m root echo "${TS} $1" >> $BASH_CMD_LOG

do not work...



This fails since sudo applies to the command, but redirection (>,  
>>, and |) is done in your shell, hence that isn't run by sudo (in  
fact, it's what is running sudo...).


...


Anybody know how to write to the log using test_one() without  
having to alter file/dir permissions, or use any of the  
alternatives mentioned above...




If you definitely don't want to change permissions on the directory  
or just the log file so you can write as your own user, one option  
would be to use tee:


$ sudo port install mycoolport | sudo tee -a /opt/local/var/log/ 
port.log


This will send the port output to your terminal and to the log file  
(-a tells tee to append, not overwrite, just like >>).  And since  
you're running tee with sudo, it has the permission to write to that  
location.


Bryan



Bryan,

Thanks a million, this now works very well

# +-+-+-+-+-+- 
+-+-+

#!/bin/bash

# script_name : test_one

BASH_CMD_LOG=/opt/local/var/log/install_setup.log

# +-+-+-+-+-+- 
+-+-+

function bh_log( )
{
TS=$(date +\[%Y.%m.%d\]\(%I.%M.%p\))
sudo echo "${TS} $1" | sudo tee -a $BASH_CMD_LOG
# sudo echo "${TS} $1" >> $BASH_CMD_LOG  # Generates Permission denied
	# sudo su -m root echo "${TS} $1" >> $BASH_CMD_LOG  # Generates  
Permission denied

}
# +-+-+-+-+-+- 
+-+-+

sudo echo
bh_log "MacPorts Setup Start..."
#  ... 
bh_log "MacPorts Setup Finish..."

open ${BASH_CMD_LOG}

# END OF SCRIPT ( test_one )
# +-+-+-+-+-+- 
+-+-+



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


[help] Writing to /opt/local/var/log/install_setup.log ?

2008-05-02 Thread Bill Hernandez
I am trying to write a running command log to : /opt/local/var/log/ 
install_setup.log

but doing either below :

shell> $ sudo echo "${TS} $1" >> $BASH_CMD_LOG
shell> $ sudo su -m root echo "${TS} $1" >> $BASH_CMD_LOG

do not work...

This all works very well for me if I write to a dir not owned by root,  
so I generally write basic command/install log stuff to non root  
directories, but I would rather write to /opt/local/var/log/ which  
happens to be owned by root.


The other alternative was to write the log to /tmp/install_setup.log  
and move it to /opt/local/var/log/ when I am done, or change the  
permissions, but I'd rather just write to the log from the script  
'test_one()' without all the little workarounds.


sudo does not work for me writing to the log, however sudo works fine  
for all other commands. I guess it's all part of the security issues  
in trying to protect the logs ?


These are the permissions :

shell> $ ls -ls /opt/local/var/ | grep log
0 drwxr-xr-x  10 root  admin  340 May  2 15:58 log

shell> $ ls -ls /opt/local/var/log | grep install_setup
8 -rw-r--r--  1 root  admin  168 May  2 15:58  
install_setup_[2008.05.02](03.58.PM).log



Using the single step process below wont work, and generates errors as  
shown in 'test_one' below.


shell> $ test_one
Password:

test_one: line 12: /opt/local/var/log/install_setup.log: Permission  
denied
test_one: line 13: /opt/local/var/log/install_setup.log: Permission  
denied


test_one: line 12: /opt/local/var/log/install_setup.log: Permission  
denied
test_one: line 13: /opt/local/var/log/install_setup.log: Permission  
denied


shell> $

Using the two step process below works fine but I dont want to do  
everything as root, I just want to write to the log and not have to  
change the permissions for the files/dirs.


shell> $ sudo su -m root
sh-3.2#> test_two
# > SUCCESS
sh-3.2#> exit
exit
shell> ~ $

# +-+-+-+-+-+- 
+-+-+
# +-+-+-+-+-+- 
+-+-+

# script_name : test_one
# called : shell> $ test_one
# +-+-+-+-+-+- 
+-+-+

#!/bin/bash

BASH_CMD_LOG=/opt/local/var/log/install_setup.log
# +-+-+-+-+-+- 
+-+-+

function bh_log( )
{
TS=$(date +\[%Y.%m.%d\]\(%I.%M.%p\))
	sudo echo "${TS} $1" >> $BASH_CMD_LOG  # Generates line 12 Permission  
denied
	sudo su -m root echo "${TS} $1" >> $BASH_CMD_LOG  # Generates line 13  
Permission denied

}
# +-+-+-+-+-+- 
+-+-+

sudo echo
bh_log "MacPorts Setup Start..."
#  ... 
bh_log "MacPorts Setup Finish..."
open ${BASH_CMD_LOG}

# END OF SCRIPT ( test_one )
# +-+-+-+-+-+- 
+-+-+
# +-+-+-+-+-+- 
+-+-+



# +-+-+-+-+-+- 
+-+-+
# +-+-+-+-+-+- 
+-+-+

# script_name : test_two
# called step ( 1 ) : shell> $ sudo su -m root
# called step ( 2 ) : sh-3.2#> test_two
# +-+-+-+-+-+- 
+-+-+

#!/bin/bash

BASH_CMD_LOG=/opt/local/var/log/install_setup.log
# +-+-+-+-+-+- 
+-+-+

function bh_log( )
{
TS=$(date +\[%Y.%m.%d\]\(%I.%M.%p\))
echo "${TS} $1" >> $BASH_CMD_LOG
}
# +-+-+-+-+-+- 
+-+-+

sudo echo
bh_log "MacPorts Setup Start..."
#  ... 
bh_log "MacPorts Setup Finish..."
open ${BASH_CMD_LOG}

# END OF SCRIPT ( test_two )
# +-+-+-+-+-+- 
+-+-+
# +-+-+-+-+-+- 
+-----+-+


Anybody know how to write to the log using test_one() without having  
to alter file/dir permissions, or use any of the alternatives  
mentioned above...


TIA

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Getting 32 bit ZendStudio Debugger to work with 64 bit Apache2 - PHP using MacPorts on Leopard

2008-04-29 Thread Bill Hernandez
ort, emails that went unanswered for quite a while until I  
called the company and got someone there involved again.



Some clever guy by the name of 'Kevin Ashbridge' had posted a message  
about replacing the Leopard Apple installed PHP with the one from  
Entropy at http://www.zend.com/forums/index.php?t=msg&goto=15690 and I  
got enough out of it to solve the problem.


He pointed out in step ( 5 ) :

5. Finally - and here's the secret - restart your web server in 32-bit  
mode using the following command:


sudo arch -i386 /usr/sbin/httpd


I had no idea that 64 bit Apache2 could be run in 32 bit mode, but  
apparently it can...


Obviously for MacPorts we will use something different.

/opt/local/etc/php.ini   needs the following three lines added at  
the end.


zend_extension=/full/path/to/ZendDebugger.so
zend_debugger.allow_hosts=
zend_debugger.expose_remotely=always

Here's a couple of examples on how to use 'zend_debugger.allow_hosts' :

;   zend_debugger.allow_hosts=127.0.0.1/32
;	zend_debugger.allow_hosts=127.0.0.1/32, 192.168.37.1/24,  
192.168.38.1/24, 192.168.39.1/24, 172.16.35.1/24


---
SHUTDOWN APACHE2 :
---
shell> ~ $ sudo /opt/local/apache2/bin/apachectl stop
shell> ~ $ ps aux | grep httpd

---
RESTART THE 64 bit APACHE2 using the 32 bit mode ( 'arch -i386' ) :
---
shell> ~ $ sudo arch -i386 /opt/local/apache2/bin/apachectl start
shell> ~ $ ps aux | grep httpd


Now ZEND Debugger will work...

Launch 'Zend.app'  which lives at'/Applications/Zend/ 
ZendStudio-5.5.1/bin/ZDE.app'


You can then go to the 'Tools --> Debug URL' menu item and type :

http://localhost/some/path/to/some/file.php

and the debugger should work like a champ...

Hope this is useful...

Bill Hernandez
Plano, Texas


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: MACPORTS - mysql5 install on Leopard - step by step instructions

2008-04-02 Thread Bill Hernandez


On Apr 2, 2008, at 6:01 AM, [EMAIL PROTECTED] wrote:
A step you may want to add is creating a symlink from /tmp/ 
mysql.sock to /opt/local/var/run/mysql5/mysqld.sock:


sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock

This is for people who want to use the MySQL Administrator and/or  
MySQL Query Browser supplied by MySQL




I have not used either, but I would imagine that MySQL Administrator  
and/or MySQL Query Browser probably have a connection profile that  
allows you to specify the correct socket in a similar fashion to the  
Navicat steps I listed below :


Somewhere I was reading yesterday that there was vulnerability  
associated with '/tmp/mysql.sock', so setting the preferences in MySQL  
Administrator with the correct path might be a better solution than  
the soft link to a file that gets created and destroyed every time the  
MySQL-Server starts and stops.


This is a little piece from a previous comment I posted:

To avoid :
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

You will need to make sure MySQL-Server is running by using :

$ ps aux | grep mysql

You should also make sure that the two configuration files "my.cnf",  
and "php.ini" have the same path to where the socket file will be  
created when MySQL-Server starts up..


MACPORTS LOCATIONS :

( a ) /opt/local/etc/mysql5/my.cnf should contain something like :
   [mysqld]
   port = 3306
   socket = /opt/local/var/run/mysql5/mysqld.sock

( b ) /opt/local/etc/php.ini should contain something like :
   [MySQL]
mysql.default_socket = /opt/local/var/run/mysql5/mysqld.sock

( c ) if using a GUI like Navicat the preferences have to specify the  
correct path for the socket


   If using Navicat try the following :
   ( 1 ) Select a connection profile from the "Connections"  
portion (left side) of the Navicat window
   ( 2 ) Select "Connection --> Connetion Properties..." from the  
menubar

   ( 3 ) Select the "Advanced" tab
   ( 4 ) Check the "Use socket for localhost Connection" checkbox
   ( 5 ) Set the "Socket File Path :" field to "/opt/local/var/ 
run/mysql5/mysqld.sock" without the quotes
   ( 6 ) Click the "Test Connection" button, and if MySQL is  
running you should see "Connetion Successful"


These are handy :

( 1 ) open -a /Applications/BBEdit.app /opt/local/etc/mysql5/my.cnf
( 2 ) open -a /Applications/BBEdit.app /opt/local/etc/php.ini
( 3 ) open /Applications/Navicat.app

Best Regards,

Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


MACPORTS - mysql5 install on Leopard - step by step instructions

2008-04-02 Thread Bill Hernandez
mplate, so we will broaden the search.


--
( 12 ) [2008.01.04](08:12PM) -> [username] ~ $ sudo find / -name my[^ 
\.]*\.cnf

--
--> Password: 
-->
--> /opt/local/share/mysql5/mysql/my-huge.cnf
--> /opt/local/share/mysql5/mysql/my-innodb-heavy-4G.cnf
--> /opt/local/share/mysql5/mysql/my-large.cnf
--> /opt/local/share/mysql5/mysql/my-medium.cnf
--> /opt/local/share/mysql5/mysql/my-small.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-huge.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-innodb-heavy-4G.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-large.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-medium.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-small.cnf


Next we will copy a medium template to /opt/local/etc/mysql5/my.cnf

--
( 13 ) [2008.01.04](08:15PM) -> [username] ~ $ sudo cp /opt/local/ 
share/mysql5/mysql/my-medium.cnf /opt/local/etc/mysql5/my.cnf

--
--> Password: 

We can edit the my.cnf file now...

--
( 14 ) [2008.01.04](08:16PM) -> [username] ~ $ sudo open -a / 
Applications/BBEdit.app /opt/local/etc/mysql5/my.cnf

--

You might want to read up on :

# skip-networking
# bind address

Just for grins, let's check the bash path...

--
( 15 ) [2008.01.04](08:17PM) -> [username] ~ $ echo $PATH
--
--> /opt/local/sbin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ 
local/bin:/usr/local/sbin:/Developer/Tools


The path shows that /opt/local/sbin:/opt/local/bin exist, which is  
very good...


Let's try to use MySQL-Client to log into theMySQL-Server, and if that  
works let's tell the client to show us what databases are available,  
this will confirm, that life is as it should...


--
( 16 ) [2008.01.04](08:19PM) -> [username] ~ $ mysql5 -u root -p
--
--> Enter password: 
-->
--> Welcome to the MySQL monitor.  Commands end with ; or \g.
--> Your MySQL connection id is 5
--> Server version: 5.0.51 Source distribution
-->
--> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases ;
-->
--> ++
--> | Database   |
--> ++
--> | information_schema |
--> | mysql  |
--> | test   |
--> ++
--> 3 rows in set (0.00 sec)
-->

mysql> quit
--> Bye

The server is running now, but we want to make sure it starts up every  
time we re-boot...


--
( 17 ) [2008.01.04](08:21PM) -> [username] ~ $ sudo launchctl load -w / 
Library/LaunchDaemons/org.macports.mysql5.plist

--
--> Password: 


CAUTION - READ THIS STEP CAREFULLY, SO YOU DON'T OVERWRITE YOUR  
php.ini, UNLESS YOU NEED IT :

CAUTION - SKIP step ( 18 ) if you already have a php.ini

STEP ( 13 ) shows how to create "my.cnf" from the templates:
STEP ( 18 ) shows how to create "php.ini" from the templates:

If you have PHP installed, and don't have an existing /opt/local/etc/ 
php.ini, you can create one here:

--
( 18 ) [2008.01.04](08:27PM) -> [username] ~ $ sudo cp /opt/local/etc/ 
php.ini-recommended /opt/local/etc/php.ini

--
------

STANDARD LOCATIONS :

You need to be aware of three locations where you have to use matching  
values for the SOCKET :
Normally these would be located at : (MacPorts puts them in a slightly  
different place as shown below)


( a ) /etc/my.cnf
( b ) /etc/php.ini
( c ) if using a GUI like Navicat the preferences have to be correct  
for the connection.


MACPORTS LOCATIONS :

( a ) /opt/local/etc/mysql5/my.cnf
( b ) /opt/local/etc/php.ini
( c ) if using a GUI like Navicat the preferences have to be correct  
for the connection.


--
--


Bill Hernandez
Plano, Texas



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


MACPORTS - mysql5 install on Leopard - step by step instructions

2008-04-02 Thread Bill Hernandez
ql/my-small.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-huge.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-innodb-heavy-4G.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-large.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-medium.cnf
--> /opt/local/var/macports/software/mysql5/5.0.51_0+server/opt/local/ 
share/mysql5/mysql/my-small.cnf


Next we will copy a medium template to /opt/local/etc/mysql5/my.cnf

--
( 13 ) [2008.01.04](08:15PM) -> [username] ~ $ sudo cp /opt/local/ 
share/mysql5/mysql/my-medium.cnf /opt/local/etc/mysql5/my.cnf

--
--> Password: 

We can edit the my.cnf file now...

--
( 14 ) [2008.01.04](08:16PM) -> [username] ~ $ sudo open -a / 
Applications/BBEdit.app /opt/local/etc/mysql5/my.cnf

--

You might want to read up on :

# skip-networking
# bind address

Just for grins, let's check the bash path...

--
( 15 ) [2008.01.04](08:17PM) -> [username] ~ $ echo $PATH
--
--> /opt/local/sbin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ 
local/bin:/usr/local/sbin:/Developer/Tools


The path shows that /opt/local/sbin:/opt/local/bin exist, which is  
very good...


Let's try to use MySQL-Client to log into theMySQL-Server, and if that  
works let's tell the client to show us what databases are available,  
this will confirm, that life is as it should...


--
( 16 ) [2008.01.04](08:19PM) -> [username] ~ $ mysql5 -u root -p
--
--> Enter password: 
-->
--> Welcome to the MySQL monitor.  Commands end with ; or \g.
--> Your MySQL connection id is 5
--> Server version: 5.0.51 Source distribution
-->
--> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases ;
-->
--> ++
--> | Database   |
--> ++
--> | information_schema |
--> | mysql  |
--> | test   |
--> ++
--> 3 rows in set (0.00 sec)
-->

mysql> quit
--> Bye

The server is running now, but we want to make sure it starts up every  
time we re-boot...


--
( 17 ) [2008.01.04](08:21PM) -> [username] ~ $ sudo launchctl load -w / 
Library/LaunchDaemons/org.macports.mysql5.plist

--
--> Password: 


CAUTION - READ THIS STEP CAREFULLY, SO YOU DON'T OVERWRITE YOUR  
php.ini, UNLESS YOU NEED IT :

CAUTION - SKIP step ( 18 ) if you already have a php.ini

STEP ( 13 ) shows how to create "my.cnf" from the templates:
STEP ( 18 ) shows how to create "php.ini" from the templates:

If you have PHP installed, and don't have an existing /opt/local/etc/ 
php.ini, you can create one here:

--
( 18 ) [2008.01.04](08:27PM) -> [username] ~ $ sudo cp /opt/local/etc/ 
php.ini-recommended /opt/local/etc/php.ini

--
--

STANDARD LOCATIONS :

You need to be aware of three locations where you have to use matching  
values for the SOCKET :
Normally these would be located at : (MacPorts puts them in a slightly  
different place as shown below)


( a ) /etc/my.cnf
( b ) /etc/php.ini
( c ) if using a GUI like Navicat the preferences have to be correct  
for the connection.


MACPORTS LOCATIONS :

( a ) /opt/local/etc/mysql5/my.cnf
( b ) /opt/local/etc/php.ini
( c ) if using a GUI like Navicat the preferences have to be correct  
for the connection.


--
--


Bill Hernandez
Plano, Texas



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: [MySQL] Install difficulties : Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock'

2008-04-01 Thread Bill Hernandez

On Apr 1, 2008, at 4:58 AM, [EMAIL PROTECTED] wrote:

A reference to this error log was in the message that appeared when  
the "sudo -u mysql mysql_install_db5" command to create the initial  
tables failed.



Since I converted to Leopard, I am using a MySQL binary install until  
I can get around to doing the whole MacPorts install, but basically  
depending upon whether it's a MacPorts install or not the only thing  
that should really change is the path to the script :


(your path to where the script is located would be different than mine)

In my case when I am using :

shell> $ cd /usr/local/mysql

shell> /usr/local/mysql $ sudo ./scripts/mysql_install_db

I'm not quite sure why you are using "sudo -u mysql mysql_install_db5"

following "sudo" there should be a command, not a switch "-u"

As I recall, for the MacPorts install you might try :

shell> $ sudo mysql_install_db5 --user=mysql

I assume your $PATH includes /opt/local/lib/mysql5/bin

if you are not sure, cd into it...

shell> $ cd /opt/local/lib/mysql5/bin

shell> /opt/local/lib/mysql5/bin/ $ sudo mysql_install_db5 --user=mysql

Best Regards,

Bill Hernandez
Plano, Texas



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: [MySQL] Install difficulties : Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock'

2008-03-31 Thread Bill Hernandez
ill get an error when you try to  
start MySQL-Server, which you will find if you look at the log.


IF your SOCKET is supposed to exist at :

'/opt/local/var/run/mysql5/mysqld.sock'

then try to set the permissions for the dir that is supposed to  
contain it :


shell> $ sudo chown -R mysql:wheel /opt/local/var/run/mysql5

If you take a MySQL_Server that is running correctly and assign the  
 for the first time, omit the "-p" switch


shell> ~ $ ps aux | grep mysql

...
If everything went well, this command will show that MySQL-Server is  
running, and
display 4-5 lines showing the associated processes, and some other  
useful information

...


If you try something like this :

shell> ~ $ mysqladmin -u root password ''
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

The reason you got the '(using password: NO)' error here is because  
you did not include the "-p" and there appears to be an existing  
password, which is odd if this is the first time you tried this.


if the first line does not work, try the second line, and any password  
you might have accidentally already tried, this shouldn't happen, but...


$ mysqladmin -u root password ''
$ mysqladmin -u root -p password ''

Just for informational purposes, In this next case I will change the  
 with 


shell> ~ $ mysqladmin -u root -p password ''
Enter password: 
The previous line authenticates that it's ok to change the password

To restore my old password to its original value, I will reverse the  
order of the passwords


shell> ~ $ mysqladmin -u root -p password ''
Enter password: 

and now my original  password has been  
restored. This has nothing to do with your problem, but it may help  
you or others.


shell> ~ $


Try :

Most documentation on the web, and even some from the examples at  
mysql.com show the command the same way you tried it, and they always  
generate an error when you try to create the password for the root  
user for the second host:


shell> $ mysqladmin -u root -h localhost password  
''
shell> $ mysqladmin -u root -h my_computer_name.local password  
''


by then the root password already exists, and the second line needs  
the "-p" switch


shell> $ mysqladmin -u root -h my_computer_name.local -p password  
''


I use the  to differentiate from the  
 which is requested with the sudo command


Here's a shell script that may help with your permissions issue, save  
it as a text file :


You can copy the following 9 commands :

shell> $ mkdir -p ~/Desktop/bin
shell> $ open ~/Desktop/bin
shell> $ touch ~/Desktop/bin/bh_mysql_fix_perms
shell> $ open -a textedit ~/Desktop/bin/bh_mysql_fix_perms

# COPY AND PASTE THE SCRIPT BELOW, SAVE IT, CLOSE IT, RUN IT :

shell> $ binpath=~/Desktop/bin/; echo "export PATH=\"${binpath}:\$PATH 
\"" >> ~/.bash_profile

shell> $ user=$(id -u -n)
shell> $ sudo chown -R ${user}:admin ~/Desktop/bin
shell> $ sudo chmod -R 770 ~/Desktop/bin

shell> $ bh_mysql_fix_perms

If you get an error like this, it is caused by carriage returns,  
instead of linefeeds. BBEdit.app allows selection of line endings,  
TextEdit does the same by saving as "Unicode(UTF-8)"


shell> ~ $ bh_mysql_fix_perms
#: bad interpreter: No such file or directorymysql: /bin/bash

WHEN YOU COPY AND PASTE THE SCRIPT, SAVE IT, CLOSE IT, RUN IT :
IF YOU USE textedit MAKE SURE TO SAVE AS "Unicode(UTF-8)"

Select Format -> Make Plain Text MenuItem
Select File -> Save As
SAVE AS "Unicode(UTF-8)"


HERE ARE THE SAME COMMANDS WITHOUT THE "shell> $"

sudo echo
mkdir -p ~/Desktop/bin
open ~/Desktop/bin
touch ~/Desktop/bin/bh_mysql_fix_perms
open -a textedit ~/Desktop/bin/bh_mysql_fix_perms

# COPY AND PASTE THE SCRIPT INTO THE OPEN TextEdit page
# Select Format -> Make Plain Text MenuItem
# Select File -> Save As
# SAVE AS "Unicode(UTF-8)"

binpath=~/Desktop/bin/; echo "export PATH=\"${binpath}:\$PATH\"" >>  
~/.bash_profile

user=$(id -u -n)
sudo chown -R ${user}:admin ~/Desktop/bin
sudo chmod -R 770 ~/Desktop/bin

# QUIT OUT OF THE TERMINAL, AND RELAUNCH IT AGAIN

bh_mysql_fix_perms


HERE IS THE ACTUAL SCRIPT
# +-+-+-+-+-+- 
+-+-+

#!/bin/bash
# Author - Bill Hernandez (Plano, Texas)
# ScriptName -  bh_mysql_fix_perms v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)

# THIS IS FOR USE WITH THE MACPORTS INSTALL OF MySQL ONLY
# IF YOU HAVE A DIFFERENT INSTALL IT WONT HURT ANYTHING
# BUT YOU WILL GET A BUNCH OF "No such file or directory" ERRORS

# IT IS CALLED ONE OF TWO WAYS, TO CHECK OR SET PERMISSIONS
# called shell>

Re: MacPorts dmg installer hangs up, does not finish ?

2008-03-13 Thread Bill Hernandez


On Mar 12, 2008, at 4:51 PM, Alex Zavatone wrote:



On Mar 12, 2008, at 4:45 PM, Ryan Schmidt wrote:


On Mar 10, 2008, at 13:56, Bill Hernandez wrote:


On Mar 10, 2008, at 1:17 PM, Rainer Müller wrote:


Bill Hernandez wrote:


I am running OS X 10.5.2 on an iMacG5 pentium machine.
I just downloaded MacPorts-1.6.0.pkg and tried to install it
several  times, but it always hangs up with the progress indicator
about 3/4 of  the way through, and never finishes.




You know you wrote an iMacG5 pentium machine, right?  Which doesn't  
exist.  I'm sure you meant PPC, instead of pentium.


By the way, wait for about 5 minutes and it will be done by the time  
you get back from making coffee.


You might have to create a file after you are done.  I had to.  Let  
me/us know after it installs if you can do the "sudo port selfupdate".


Cheers,
- Alex


I meant to say Intel but wrote pentium

 Model Name:iMac
  Model Identifier: iMac7,1
  Processor Name:   Intel Core 2 Duo
  Processor Speed:  2.4 GHz
  Number Of Processors: 1
  Total Number Of Cores:2
  L2 Cache: 4 MB
  Memory:   2 GB
  Bus Speed:800 MHz
  Boot ROM Version: IM71.007A.B00
  SMC Version:  1.21f4


Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: MacPorts dmg installer hangs up, does not finish ?

2008-03-13 Thread Bill Hernandez


On Mar 12, 2008, at 4:45 PM, Ryan Schmidt wrote:


On Mar 10, 2008, at 13:56, Bill Hernandez wrote:


On Mar 10, 2008, at 1:17 PM, Rainer Müller wrote:


Bill Hernandez wrote:


I am running OS X 10.5.2 on an iMacG5 pentium machine.
I just downloaded MacPorts-1.6.0.pkg and tried to install it
several  times, but it always hangs up with the progress indicator
about 3/4 of  the way through, and never finishes.


The Installer.app provides a log (Window -> Installer Log), what
does it say there?


I downloaded the MacPorts-1.6.0.pkg again, and this time it installed
after several minutes.

After the installer finished I tried :

$ sudo port -v selfupdate
Password:
Synchronizing local ports tree from rsync://rsync.macports.org/ 
release/

ports/

but here the terminal hangs up. (it hasn't done anything for about 10
minutes)


Does your network allow traffic on the rsync port?


I've never had a problem with rsync before. I haven't changed anything  
on the firewall for a while.


I began running into a number of other problems that forced me to  
force quit applications like Xcode, and others, that continuously  
became non-responsive. I may be wrong, but I suspect that upgrading  
Leopard directly over Tiger may be the cause of some of these problems.


Yesterday I completely re-formatted my primary drive, did a clean  
install of Leopard, and spent several hours downloading and installing  
the very latest versions of each application and 3rd party utility I  
own.


After I read your comments on Darwin 8 vs. Darwin 9, I thought the  
smartest thing would be to re-format the drive and install everything  
from scratch, not just MacPorts.


Today I will try to do a clean install of MacPorts, and see how that  
goes.


Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: MacPorts dmg installer hangs up, does not finish ?

2008-03-13 Thread Bill Hernandez


On Mar 12, 2008, at 4:55 PM, William Siegrist wrote:

The rsync repo gets sluggish around 4-5am PDT every day due to  
server backups and maintenance. I'm actually going to try spreading  
out some of the load throughout the day to help... But right now,  
you can expect the selfupdate and syncs to take up to 10m. Normally  
on average they take 1-3m for me during the day.


I was thinking that the progress bar on the installer could be  
changed or some rsync verbose output added to make it not seem like  
a hang, but the performance is also an issue, and I am working on it.


Thanks
-Bill


It's really funny how we get used to the way things work. The first  
modem I ever owned was used on an Apple IIe and had a speed of 300  
baud, and never managed transfer a small (few kb) file without losing  
the connection. Transfers were usually a multi-hour ordeal with very  
poor results.


Today I am fortunate to live in an area that has Fiber. I tried to get  
Residential FIOS but there was no way to get a fixed public IP, so I  
subscribed to Verizon Business FIOS 15/2 MBit/sec service and that has  
worked out very well. I've gotten used to receiving transfers from  
Apple that are sometimes as large as 90 MBytes, in what seems like a  
matter of seconds. I may be wrong but it just seems really fast.


We as a whole seem to have lost all sense of perspective, such that if  
a file takes a few minutes to download we begin think the transfer has  
hung up. This is probably what happened, I should have gone to lunch  
and checked when I came back.  There was no way from the Terminal to  
tell whether anything was happening. Something that may help others is  
perhaps a message "This may take a few minutes, come back in a while..."


I see from your response, that I should have allowed at least 10  
minutes.


I began running into a number of other problems that forced me to  
force quit applications that continuously became non-responsive. I may  
be wrong, but I suspect that upgrading Leopard directly over Tiger may  
be the cause of some of the problems.


Yesterday I completely re-formatted my primary drive, did a clean  
install of Leopard, and spent several hours downloading and installing  
the very latest versions of each application and 3rd party utility I  
own.


After I read Ryan's comments on Darwin 8 vs. Darwin 9, I thought the  
smartest thing would be to re-format and install everything from  
scratch, not just MacPorts.


Today I will try to do a clean install of MacPorts, and see how that  
goes.


Thanks to all those who replied for the help...

Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: MacPorts dmg installer hangs up, does not finish ?

2008-03-10 Thread Bill Hernandez

On Mar 10, 2008, at 1:17 PM, Rainer Müller wrote:

> Bill Hernandez wrote:
>> I am running OS X 10.5.2 on an iMacG5 pentium machine.
>> I just downloaded MacPorts-1.6.0.pkg and tried to install it  
>> several  times, but it always hangs up with the progress indicator  
>> about 3/4 of  the way through, and never finishes.
>
> The Installer.app provides a log (Window -> Installer Log), what  
> does it say there?
>
> Rainer


I downloaded the MacPorts-1.6.0.pkg again, and this time it installed  
after several minutes.

After the installer finished I tried :

$ sudo port -v selfupdate
Password:
Synchronizing local ports tree from rsync://rsync.macports.org/release/ 
ports/

but here the terminal hangs up. (it hasn't done anything for about 10  
minutes)


Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MacPorts dmg installer hangs up, does not finish ?

2008-03-10 Thread Bill Hernandez

On Mar 10, 2008, at 1:17 PM, Rainer Müller wrote:

> Bill Hernandez wrote:
>> I am running OS X 10.5.2 on an iMacG5 pentium machine.
>> I just downloaded MacPorts-1.6.0.pkg and tried to install it  
>> several  times, but it always hangs up with the progress indicator  
>> about 3/4 of  the way through, and never finishes.
>
> The Installer.app provides a log (Window -> Installer Log), what  
> does it say there?
>
> Rainer
>
>

This is where it hangs...

1 Mar 10 13:21:09 eagle Installer[287]: Localized installer scripts  
detected in the MacPorts-1.6.0 package. Switching to compatibility mode.
2 Mar 10 13:21:15 eagle Installer[287]: Localized installer scripts  
detected in the MacPorts-1.6.0 package. Switching to compatibility mode.
3 Mar 10 13:23:00 eagle Installer[287]: Localized installer scripts  
detected in the MacPorts-1.6.0 package. Switching to compatibility mode.
4 Mar 10 13:23:00 eagle Installer[287]: Localized installer scripts  
detected in the MacPorts-1.6.0 package. Switching to compatibility mode.
5 Mar 10 13:23:00 eagle Installer[287]: Localized installer script  
preflight found in the MacPorts-1.6.0 package. Using compatibility mode.
6 Mar 10 13:23:00 eagle Installer[287]: Localized installer script  
postflight found in the MacPorts-1.6.0 package. Using compatibility  
mode.
7 Mar 10 13:23:01 eagle Installer[287]: Localized installer script  
preflight found in the MacPorts-1.6.0 package. Using compatibility mode.
8 Mar 10 13:23:02 eagle Installer[287]: Localized installer script  
postflight found in the MacPorts-1.6.0 package. Using compatibility  
mode.


Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


MacPorts dmg installer hangs up, does not finish ?

2008-03-10 Thread Bill Hernandez
I am running OS X 10.5.2 on an iMacG5 pentium machine.

I just downloaded MacPorts-1.6.0.pkg and tried to install it several  
times, but it always hangs up with the progress indicator about 3/4 of  
the way through, and never finishes.

I opened the /opt folder and there were a few items in it. "port" was  
actually there, so I tried using the terminal instead and tried "sudo  
port -v selfupdate" left it alone for a while but nothing happened, so  
I finally hit CTRL-C and deleted the /op directory.

Any ideas ?


Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Upgrade to Leopard mostly smooth, but has small glitch

2008-03-09 Thread Bill Hernandez

On Mar 9, 2008, at 1:54 AM, paul beard wrote:

> Did you install the command line tools when you installed BBEdit or  
> TextWrangler?
>


I did, but in the past when I've installed a new major version of the  
OS, I've reformatted the drive and installed all the latest versions  
of the applications. For some reason this time, the installer didn't  
ask me if I wanted to archive the old OS, it appears to have installed  
right over Tiger. This made me think that perhaps the changes to the  
core OS, other than the interface were probably not that significant,  
and that is why I tried to run apache without having to install all  
new ports.

What Ryan said makes sense about the Darwin 9 stuff, so tomorrow I  
will delete the /opt directory and start over. I've got a shell script  
that installs everything for me, moves files around, creates aliases,  
and does some other things, and this will give me an opportunity to  
fine tune the small items that need refining.

I will try to re-install the command line tools

Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Upgrade to Leopard mostly smooth, but has small glitch

2008-03-08 Thread Bill Hernandez
On Mar 8, 2008, at 11:01 PM, Jordan K. Hubbard wrote:

> Since emacs is also the only editor anyone could ever need, I don't
> understand the need for the other scripts.. :-)

This is what I meant to say :

I used emacs until I discovered BBEdit, then emacs became but a faint  
page in
history...

Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Upgrade to Leopard mostly smooth, but has small glitch

2008-03-08 Thread Bill Hernandez
On Mar 8, 2008, at 11:01 PM, Jordan K. Hubbard wrote:

> You don't need a script.  You just need to update to 10.5.2 and use  
> the Desktop preference pane.

Thanks, I couldn't find any info on how to fix the problem. It's ok  
anyway, with the script there are three choices, {white, gray,  
translucent}

> Since emacs is also the only editor anyone could ever need, I don't  
> understand the need for the other scripts.. :-)

I used emacs until I discovered BBEdit, and emacs became but page in  
history...

BTW :

( 1 ) have any idea what preference I need to set to get the window  
borders back ? I hate border-less windows...
( 2 ) what can be done to set the {sidebar width : 0} without having  
to hide (losing) the Toolbar ?

I like having the toolbar, but I hate being forced to have the sidebar  
open. When you have several windows (12-15) open, especially if you  
are trying to compare them side by side, having the sidebar open  
forces the window to be inconveniently larger.

People get used to working a certain way for several years, then  
someone arbitrarily decides that after years of having a particular  
option available to the user, they are just not going to let them have  
it anymore. What skin is it off the programmer's nose if I want to  
close the sidebar, to me it's a nuisance.

A bully approach, wouldn't you say ?

I think major changes in the way one works should be handled as a  
preference. The computer is supposed to be a tool to help us, and  
removing backward compatibility is just wrong, especially in something  
like the sidebar which does not affect the operating system, but  
certainly affects the way I work...

I am sure as they sat around the table while trying to decide what  
features to include in Leopard, someone decided that "The user is too  
stupid to come out of the rain, so we'll protect them from themselves,  
and prevent them from closing the sidebar. That will improve the user  
experience !"

You can tell I hate to be bullied !

Bill Hernandez
[EMAIL PROTECTED]



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Upgrade to Leopard mostly smooth, but has small glitch

2008-03-08 Thread Bill Hernandez
On Mar 8, 2008, at 1:35 AM, paul beard wrote:

> and as a hint, if you install BBedit's command line tools, you can
> simply type "edit " instead of all that other stuff. Or use
> TextWrangler, for those who are short of coin. It has the same
> facility.


I included two very handy scripts for Leopard at the bottom, if you  
don't like them, please ignore them.

"edit " didn't work for me using a shell worksheet

port installed > ~/installed_ports.txt
edit ~/installed_ports.txt
-bash: line 4: edit: command not found

instead of using :
open -a /Applications/BBEdit.app ~/installed_ports.txt

I should have used an existing shell script

# shell script : bh_open
# 
#!/bin/bash

if [ -a /Applications/BBEdit.app ]; then
open -a /Applications/BBEdit.app $1
elif [ -a ~/Applications/BBEdit.app ]; then
open -a ~/Applications/BBEdit.app $1
else
open -a /Applications/TextEdit.app $1
fi
# 

and just call it from the Terminal :

bh_open ~/installed_ports.txt

The following ports are currently installed:
   apache2 @2.2.4_1 (active)
   apr @1.2.9_0 (active)
   apr-util @1.2.8_2 (active)
   bison @2.3_0 (active)
   bzip2 @1.0.4_1 (active)
   curl @7.16.4_0+darwin_8 (active)
   cyrus-sasl2 @2.1.21_0+kerberos (active)
   db44 @4.4.20_1+darwin_8 (active)
   expat @2.0.1_0 (active)
   fontconfig @2.4.2_0+macosx (active)
   freetype @2.3.5_0 (active)
   gd2 @2.0.35_0 (active)
   gettext @0.16.1_0 (active)
   jpeg @6b_2 (active)
   libiconv @1.11_4+darwin_8 (active)
   libmcrypt @2.5.8_0+darwin_8 (active)
   libpng @1.2.18_0+darwin_8 (active)
   libtool @1.5.24_0 (active)
   libxml2 @2.6.28_1 (active)
   libxslt @1.1.20_0 (active)
   m4 @1.4.9_0 (active)
   mhash @0.9.9_0+darwin_8 (active)
   mysql5 @5.0.45_0+darwin_8+server (active)
   ncurses @5.6_0+darwin_8 (active)
   ncursesw @5.6_0+darwin_8 (active)
   openldap @2.3.35_0 (active)
   openssl @0.9.8e_0+darwin_8 (active)
   pcre @7.2_0+utf8 (active)
   perl5.8 @5.8.8_0+darwin_8 (active)
   php5 @5.2.3_0+apache2+darwin_8+fastcgi+ipc+macosx+mysql5+pcntl+pear 
+postgresql+sqlite+tidy (active)
   pkgconfig @0.22_0 (active)
   postgresql82 @8.2.4_0+darwin_8 (active)
   postgresql82-server @8.2.4_0 (active)
   readline @5.2.001_0 (active)
   rpl @1.4.0_0 (active)
   sqlite3 @3.4.2_0+darwin_8 (active)
   tidy @20051026_0+darwin_8 (active)
   tiff @3.8.2_0+darwin_8 (active)
   zlib @1.2.3_1 (active)

Even though this did not launch Apache :

2008.07.03](01:59PM) -> [username] ~ $ sudo launchctl load -w /Library/ 
LaunchDaemons/org.macports.apache2.plist
Password:

launchctl: Dubious ownership on file (skipping): /Library/ 
LaunchDaemons/org.macports.apache2.plist
nothing found to load

--> And that didn't work so well, so I tried :

[2008.07.03](02:07PM) -> [username] ~ $ sudo /opt/local/apache2/bin/ 
apachectl -k start
Password:
/opt/local/apache2/bin/apachectl: line 70: ulimit: open files: cannot  
modify limit: Invalid argument

Even though there was an error on line 70, it launched Apache and php  
seemed to be working fine, I am sure you are absolutely correct, and  
at some point I will begin having problems, so you are right, I will  
bite the bullet and delete the /opt directory, and start over again.

Thanks very much to all who responded.

There were a few of things I did not like about Leopard :

( 1 ) Blue/White background stripes in the Finder window (fixed in  
script finder_utility.scpt)
( 2 ) Translucent Menu Bar (fixed in script finder_utility.scpt)
( 3 ) Borderless Windows
( 4 ) Inability to close the Sidebar without closing the Toolbar  
(fixed in script stack_windows.scpt)
( 5 ) Lost hierarchical menus on {folders. disks} on the Dock (fixed  
in OS X upgrade 10.5.2)

I know I will probably be criticized for posting these but they have  
turned out very helpful for me, and hopefully they will help someone  
else on the board. The problem with the sidebar causes the windows to  
take up too much room, causing a lot of clutter if you are working  
with several open windows. The second script somewhat addresses the  
problem.

I hope this doesn't make anyone angry that I contributed these, even  
though it is not the right board...

This script takes care of items ( 1 ) and ( 2 )
-- +-+-+-+-+-+- 
+-+-+
on bh_a_script_title()
(*
Author  : Bill Hernandez

ProjectNo   : 407
ProjectName : finder_utility (Leopard)

FileName: finder_utility.scpt
FilePath: 
~/user_scripts/user/projects/finder/finder_utility.scpt

Version : 1.0.0
VersionDate : [ 2008_03_08 ]

Upgrade to Leopard mostly smooth, but has small glitch

2008-03-07 Thread Bill Hernandez
I just installed Leopard on iMacG5 and everything went off very well.

However when I restarted and looked at all the usual preferences, I  
launched the terminal and tried :

[2008.07.03](02:06PM) -> [username] ~ $ ps aux | grep httpd
username   305   0.0  0.0   599740388 s001  S+2:07PM   0:00.00  
grep httpd

 --> which showed that Apache was not running, so I tried :

2008.07.03](01:59PM) -> [username] ~ $ sudo launchctl load -w /Library/ 
LaunchDaemons/org.macports.apache2.plist
Password:

launchctl: Dubious ownership on file (skipping): /Library/ 
LaunchDaemons/org.macports.apache2.plist
nothing found to load

 --> And that didn't work so well, so I tried :

[2008.07.03](02:07PM) -> [username] ~ $ sudo /opt/local/apache2/bin/ 
apachectl -k start
Password:
/opt/local/apache2/bin/apachectl: line 70: ulimit: open files: cannot  
modify limit: Invalid argument

 --> which showed an error on line 70 of apachectl
 --> but it tried to see if it launched anyway, and it did as it  
shows below

[2008.07.03](02:07PM) -> [username] ~ $ ps aux | grep httpd
username   320   0.0  0.197264   1204   ??  S 2:07PM
0:00.00 /opt/local/apache2/bin/httpd -k start
username   319   0.0  0.197264   1204   ??  S 2:07PM
0:00.00 /opt/local/apache2/bin/httpd -k start
username   318   0.0  0.197264   1204   ??  S 2:07PM
0:00.00 /opt/local/apache2/bin/httpd -k start
username   317   0.0  0.197264   1204   ??  S 2:07PM
0:00.00 /opt/local/apache2/bin/httpd -k start
username   316   0.0  0.197264   1204   ??  S 2:07PM
0:00.00 /opt/local/apache2/bin/httpd -k start
root   315   0.0  0.097164888   ??  S 2:07PM
0:00.00 /opt/local/apache2/bin/httpd -k start
root   312   0.0  0.397264   7232   ??  Ss2:07PM
0:00.34 /opt/local/apache2/bin/httpd -k start
username   322   0.0  0.0   599740384 s001  R+2:08PM   0:00.00  
grep httpd

[2008.07.03](02:08PM) -> [username] ~ $

Any ideas why I got :

( 1 ) launchctl: Dubious ownership on file (skipping): /Library/ 
LaunchDaemons/org.macports.apache2.plist
nothing found to load

( 2 ) /opt/local/apache2/bin/apachectl: line 70: ulimit: open files:  
cannot modify limit: Invalid argument

 --> Here's what I found :

[2008.07.03](02:08PM) -> [username] ~ $ open -a ~/Applications/ 
BBEdit.app /opt/local/apache2/bin/apachectl

# LINE 59
# Set this variable to a command that increases the maximum
# number of file descriptors allowed per child process. This is
# critical for configurations that use many file descriptors,
# such as mass vhosting, or a multithreaded server.
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
#   
#    END CONFIGURATION SECTION  

# Set the maximum number of file descriptors allowed per child process.
if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
 $ULIMIT_MAX_FILES
fi
# LINE 72

Bill Hernandez
Plano, Texas



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


browser displays the source php on macports site ?

2007-11-08 Thread Bill Hernandez

When I clicked on :

http://svn.macosforge.org/repository/macports/trunk/www/.htaccess

I got :


Order allow,deny
Deny from all




As you travel down the hierarchy to the link below :

http://svn.macosforge.org/repository/macports/trunk/www/ports.php

All the php content is displayed. Is that something you guys want to  
do ?


This is part of the page shown on link above.

/* -*- coding: utf-8; mode: php; tab-width: 4; indent-tabs-mode:  
nil; c-basic-offset: 4 -*-  
vim:fenc=utf-8:filetype=php:et:sw=4:ts=4:sts=4 */

/* $Id$ */
/* Copyright (c) 2004, OpenDarwin. */
/* Copyright (c) 2004-2007, The MacPorts Project. */
$MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER 
['SCRIPT_NAME']);

include_once("$MPWEB/includes/common.inc");
include_once("$MPWEB/includes/email.inc");
print_header('The MacPorts Project -- Available Ports', 'utf-8');
$by = isset($_GET['by']) ? $_GET['by'] : '';
$substr = isset($_GET['substr']) ? $_GET['substr'] : '';
?>




MacPorts Portfiles


This form allows you to search the current index of MacPorts  
software. 

Index last updated: 
$sql = "SELECT UNIX_TIMESTAMP(activity_time) FROM  
$portsdb.log ORDER BY UNIX_TIMESTAMP(activity_time) DESC";

$result = mysql_query($sql);
if ($result && $row = mysql_fetch_row($result)) {
echo date("d-M-Y H:i:s", $row[0]);
}
?>

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Apache2 : Update :Warning: the following items did not execute

2007-11-05 Thread Bill Hernandez

This seems to have solved the problem:

$ sudo port -dv selfupdate

$ sudo port -dv upgrade apache2

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Apache2 : Update :Warning: the following items did not execute

2007-11-05 Thread Bill Hernandez

When I tried to update Aache 2.2.4, I got several messages in the log :

Warning: the following items did not execute (for apr):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for apr):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for readline):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for sqlite3):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for apr-util):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for openssl):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for pcre):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Warning: the following items did not execute (for apache2):  
org.macports.destroot org.macports.fetch org.macports.extract  
org.macports.checksum org.macports.patch org.macports.configure  
org.macports.build


Any ideas ?
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Remove all ports

2007-09-14 Thread Bill Hernandez


On Sep 14, 2007, at 7:19 AM, Vincent Lefevre wrote:


ports also install things outside /opt, e.g. symlinks in
/Library/LaunchDaemons.


GOOD POINT !

The way I interpreted his message was that :

In his case he wanted to re-install his ports from scratch, so the  
symlinks would be created again.


It sounded like he wanted to do a one for one replacement.

But you are correct, I should have added with a note to remove  
whichever symlinks were related to MacPorts.


$ open /Library/LaunchDaemons

Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Remove all ports

2007-09-14 Thread Bill Hernandez

On Sep 14, 2007, at 1:18 AM, Anders F Björklund wrote:

The default MacPorts prefix is *not* /opt, it is "/opt/local".

If you delete the entire /opt, you risk throwing away other
third-party software that (rightfully) gets installed there...
(nothing by Apple though, in a clean Mac OS X / Xcode install)
Both of /usr/local and /opt are traditional install locations.

So while removing /opt also "works", it's safer using /opt/local.

--anders


GOOD POINT !

You are absolutely correct, that's why I asked him to make sure  
nothing else was installed there...


>> I don't know if you've installed anything other than MacPorts in / 
opt but if you have not,

>> you could probably delete everything in the /opt directory.

I should have said :

>> I don't know if you've installed anything other than MacPorts in / 
opt/local but if you have not,

>> you could probably delete everything in the /opt/local directory.

In my case there's nothing else in /opt other than MacPorts

Best Regards,

Bill Hernandez
Plano, Texas___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Remove all ports

2007-09-13 Thread Bill Hernandez


On Sep 13, 2007, at 7:29 PM, AstroDrabb wrote:

Is there a way to remove all installed ports?  I want to start  
clean and before I install a port, I want to see if the port is the  
latest version of the software, if not, I want to try to upgrade  
the port.


-> I got in a hurry to send this, and realized I had moved some  
things around and it no longer made any sense.


-> PLEASE THROW AWAY THE PREVIOUS VERSION I SENT A FEW MINUTES AGO



You will have to re-install MacPorts from the dmg if you want to  
remove everything and start from scratch.


I don't know if you've installed anything other than MacPorts in /opt  
but if you have not, you could probably delete everything in the /opt  
directory.


I would first backup anything you might need. You WILL want to backup  
things like http.conf, my.cnf, php.ini, any other configuration  
files, any databases, etc. If you any MySQL databases you can use the  
shell script below bh_mysql_backup


I don't keep any of the configs within the /opt directory, because  
that way I can delete the entire thing, re-install the ports,  
initialize and set the permissions for the databases (MySQL and  
PostgreSQL), create some soft links to the configuration files, and  
everything works very well.


You can then do :

$ port installed > ~/installed_ports.txt
$ open -a /Applications/BBEdit.app ~/installed_ports.txt

This way you will have a record of the installed ports which you can  
then convert into a shell script in order to automate the re-install  
process You can look at my installer at the bottom.



WARNING ( 1 ) : DO NOT DELETE EVERYTHING UNLESS YOU ARE SURE YOU HAVE  
BACKED UP EVERYTHING YOU WILL NEED.


WARNING ( 2 ) : DO NOT DO ANY OF THIS UNLESS YOU UNDERSTAND THE  
IMPLICATIONS


This next line will delete the entire MacPorts installation.

$ sudo rm -R /opt

Once you get everything installed if you have a mysql database. After  
you create the database structure, if you have any problems with the  
permissions, you can run bh_mysql_perms "set" below.





Here's a shell script that you can save as bh_port_longdesc, or  
bh_port_ldesc


#!/bin/bash
# Author - Bill Hernandez (Plano, Texas)
# ScriptName -  bh_port_longdesc v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)
#
# make sure you save this in your shell search path
# make sure you set the permissions so that the owner is executable
# something like chmod 700 /path/to/bin/folder/bh_port_longdesc
# This assumes you have BBEdit as a Text Editor, if you don't have it  
www,barebones.com has a free version that is almost as powerful
# if you call it without passing it a port name, it will you give you  
info on Apache


if [ $# -lt 1 ]; then
	fsubj=apache ; apath=/Applications/BBEdit.app ; fpath=/tmp/${fsubj} 
_port_long_desc.txt ; port info long_description:$fsubj >> $fpath ;  
open -a $apath $fpath

else
	fsubj=$1 ; apath=/Applications/BBEdit.app ; fpath=/tmp/${fsubj} 
_port_long_desc.txt ; port info long_description:$fsubj >> $fpath ;  
open -a $apath $fpath

fi
# +-+-+-+ ( SCRIPT END ) +-+- 
+-+



Here's a shell script that you can save as bh_mysql_perms
Make sure you save it in the shell path in order to run it
To have it either check or set the permissions, you can call it as

bh_mysql_perms "ck"
bh_mysql_perms "set"

#!/bin/bash
# Author - Bill Hernandez (Plano, Texas)
# ScriptName -  bh_mysql_perms v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)
# make sure you save this in your shell search path
# make sure you set the permissions so that the owner is executable
# something like chmod 700 /path/to/bin/folder/bh_mysql_perms

# +-+-+-+-+-+- 
+-+-+

# bh_mysql_perms
# +-+-+-+-+-+- 
+-+-+

sudo echo

echo argc is $#. argv is "$*"
echo

if [ $# = 0 ]; then
choice="ck";
elif [ "$*" = "check" ]; then
choice="ck";
else
choice="$*";
fi

divider="--- 
"


if [ $choice = "ck" ]; then
echo $divider
echo "Checking [MySQL] Permissions..."
echo $divider

echo "$ sudo ls -Rls /opt/local/bin/mysql5"
sudo ls -Rls /opt/local/bin/mysql5

echo "$ sudo ls -Rls /opt/local/etc/mysql5"
sudo ls -Rls /opt/local/etc/mysql5

echo "$ sudo ls -Rls /opt/local/include/mysql5"
sudo ls -Rls /opt/local/include/mysql5

echo "$ sudo ls -Rls /opt/local/lib/mysql5"
sudo ls -Rls /opt/local/lib/mysql5

echo "$ sudo ls -Rls /opt/local/share/mysql5"
sudo ls -Rls /opt/local/share/mysql5

Re: Remove all ports

2007-09-13 Thread Bill Hernandez


On Sep 13, 2007, at 7:29 PM, AstroDrabb wrote:

Is there a way to remove all installed ports?  I want to start  
clean and before I install a port, I want to see if the port is the  
latest version of the software, if not, I want to try to upgrade  
the port.


You will have to re-install MacPorts from the dmg if you want to  
remove everything and start from scratch.


I don't know if you've installed anything other than MacPorts in /opt  
but if you have not, you could probably delete everything in the /opt  
directory by doing :


I would probably do a

$ port installed > ~/installed_ports.txt
$ open -a /Applications/BBEdit.app ~/installed_ports.txt

This way you will have a record of the installed ports which you can  
then convert into a shell script in order to automate the re-install  
process


This next line will delete the entire MacPorts installation.
You WILL want to backup things like http.conf, my.cnf, php.ini, any  
other configuration files, any databases, etc.


DO NOT DELETE EVERYTHING UNLESS YOU ARE SURE YOU HAVE BACKED UP  
EVERYTHING YOU WILL NEED.


I don't keep any of the configs within the /opt directory, because  
that way I can delete the entire thing, re-install the ports,  
initialize and set the permissions for the databases (MySQL and  
PostgreSQL), create some soft links to the configuration files, and  
everything works very well.


WARNING : DO NOT DO ANY OF THIS UNLESS YOU UNDERSTAND THE IMPLICATIONS

$ sudo rm -R /opt

Once you get everything installed if you have a mysql database. You  
can save this script as bh_mysql_perms in the shell path run this script


to have it either check or set the permissions, you can call it as

bh_mysql_perms "ck"
bh_mysql_perms "set"



Here's a shell script that you can save as bh_port_longdesc, or  
bh_port_ldesc


#!/bin/bash
# Author - Bill Hernandez (Plano, Texas)
# ScriptName -  bh_port_longdesc v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)
#
# make sure you save this in your shell search path
# make sure you set the permissions so that the owner is executable
# something like chmod 700 /path/to/bin/folder/bh_port_longdesc
# This assumes you have BBEdit as a Text Editor, if you don't have it  
www,barebones.com has a free version that is almost as powerful
# if you call it without passing it a port name, it will you give you  
info on Apache


if [ $# -lt 1 ]; then
	fsubj=apache ; apath=/Applications/BBEdit.app ; fpath=/tmp/${fsubj} 
_port_long_desc.txt ; port info long_description:$fsubj >> $fpath ;  
open -a $apath $fpath

else
	fsubj=$1 ; apath=/Applications/BBEdit.app ; fpath=/tmp/${fsubj} 
_port_long_desc.txt ; port info long_description:$fsubj >> $fpath ;  
open -a $apath $fpath

fi
#  Script End 


Here's a shell script that you can save as bh_mysql_perms

#!/bin/bash
# Author - Bill Hernandez (Plano, Texas)
# ScriptName -  bh_mysql_perms v_1.0.0
# Modified - Thursday, September 13, 2007 (7:59 PM)
# make sure you save this in your shell search path
# make sure you set the permissions so that the owner is executable
# something like chmod 700 /path/to/bin/folder/bh_mysql_perms

# +-+-+-+-+-+- 
+-+-+

# bh_mysql_perms
# +-+-+-+-+-+- 
+-+-+

sudo echo

echo argc is $#. argv is "$*"
echo

if [ $# = 0 ]; then
choice="ck";
elif [ "$*" = "check" ]; then
choice="ck";
else
choice="$*";
fi

divider="--- 
"


if [ $choice = "ck" ]; then
echo $divider
echo "Checking [MySQL] Permissions..."
echo $divider

echo "$ sudo ls -Rls /opt/local/bin/mysql5"
sudo ls -Rls /opt/local/bin/mysql5

echo "$ sudo ls -Rls /opt/local/etc/mysql5"
sudo ls -Rls /opt/local/etc/mysql5

echo "$ sudo ls -Rls /opt/local/include/mysql5"
sudo ls -Rls /opt/local/include/mysql5

echo "$ sudo ls -Rls /opt/local/lib/mysql5"
sudo ls -Rls /opt/local/lib/mysql5

echo "$ sudo ls -Rls /opt/local/share/mysql5"
sudo ls -Rls /opt/local/share/mysql5

echo "$ sudo ls -Rls /opt/local/var/db/mysql5"
sudo ls -Rls /opt/local/var/db/mysql5

echo "$ sudo ls -Rls /opt/local/var/run/mysql5"
sudo ls -Rls /opt/local/var/run/mysql5

else
echo $divider
echo "Setting [MySQL] Permissions..."
echo $divider

echo "$ sudo chown -R root:wheel /opt/local/bin/mysql5"
sudo chown -R root:wheel /opt/local/bin/mysql5

echo "$ sudo chown -R root:wheel /opt/local/etc/

Re: Bizarre Behavior

2007-09-13 Thread Bill Hernandez


On Sep 13, 2007, at 12:40 PM, Bill Hernandez wrote:


http://www.mac-specialist.com


If forgot to mention that the url listed above has what I have found  
so far...


Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Sorry for the double posting of my previous message

2007-09-13 Thread Bill Hernandez
My email was not receiving correctly, I checked my webmail, and sure  
enough the message was there twice,


Sorry for the trouble...

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Bizarre Behavior

2007-09-13 Thread Bill Hernandez
Several months ago I began having random crashes on my iMacG5 PPC OSX  
10.4.x, and after several bouts with checking/repairing permissions,  
repairing the disk, doing installs, re-installs without importing  
preferences, etc., re-format entire drive & install everything  
including applications, new preferences, etc. from scratch I gave up  
and took the computer to the local Apple Store.


They ran their diagnostics, I purchased and ran MemTest for about 4  
hours, removed ram, etc. and the problems persisted.


Finally got Applecare to throw in the towel, and have someone come  
over to install a new logic board. When the service tech guy from  
CompUSA opened up the back of the iMac, he showed me several burned  
diodes, that apparently were the source of the problem, even though  
they did not show up on Apple Store's Diagnostics.


For about a year or more the machine ran great. A couple of months  
ago I began having some very bizarre corruption, primarily issues  
with the dock.


Due to my prior experience with the burned diodes, I focused my  
investigation in that direction. I went back to the Apple Store, a  
day after I had completely re-installed everything again, and they  
could find nothing wrong with the hardware. In fact the machine  
booted from one of their drives just fine.


I gave up, and shelled out $2700 for a new iMacG5 Intel machine.  
Within 3 weeks the new machine began having exactly the same  
problems. This is when I began suspecting some sort of a virus, worm,  
trojan, malware, etc. Something had spread to my new machine. I  
isolated all the computers and began documenting (mostly with screen- 
shots) the problems in order to try to try get some help. Mostly to  
see if anyone else had encountered the bizarre behavior I was  
experiencing, and if they had any solutions.


I was not going to post on this board because I felt it was not  
related to MacPorts, but now for info purposes I thought it might do  
some good, since this forum has some very knowledgeable people. I  
thought perhaps I might get some insights from some of you.


Thanks for any insights or help you might provide.

http://www.mac-specialist.com

Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Bizarre Behavior

2007-09-13 Thread Bill Hernandez
Several months ago I began having random crashes on my iMacG5 PPC OSX  
10.4.x, and after several bouts with checking/repairing permissions,  
repairing the disk, doing installs, re-installs without importing  
preferences, etc., re-format entire drive & install everything  
including applications, new preferences, etc. from scratch I gave up  
and took the computer to the local Apple Store.


They ran their diagnostics, I purchased and ran MemTest for about 4  
hours, removed ram, etc. and the problems persisted.


Finally got Applecare to throw in the towel, and have someone come  
over to install a new logic board. When the service tech guy from  
CompUSA opened up the back of the iMac, he showed me several burned  
diodes, that apparently were the source of the problem, even though  
they did not show up on Apple Store's Diagnostics.


For about a year or more the machine ran great. A couple of months  
ago I began having some very bizarre corruption, primarily issues  
with the dock.


Due to my prior experience with the burned diodes, I focused my  
investigation in that direction. I went back to the Apple Store, a  
day after I had completely re-installed everything again, and they  
could find nothing wrong with the hardware. In fact the machine  
booted from one of their drives just fine.


I gave up, and shelled out $2700 for a new iMacG5 Intel machine.  
Within 3 weeks the new machine began having exactly the same  
problems. This is when I began suspecting some sort of a virus, worm,  
trojan, malware, etc. Something had spread to my new machine. I  
isolated all the computers and began documenting (mostly with screen- 
shots) the problems in order to try to try get some help. Mostly to  
see if anyone else had encountered the bizarre behavior I was  
experiencing, and if they had any solutions.


I was not going to post on this board because I felt it was not  
related to MacPorts, but now for info purposes I thought it might do  
some good, since this forum has some very knowledgeable people. I  
thought perhaps I might get some insights from some of you.


Thanks for any insights or help you might provide.

http://www.mac-specialist.com

Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Bastille

2007-09-12 Thread Bill Hernandez

Ryan,

Do you know if there is a port for Bastille ?

Bastille Linux is a Hardening and Reporting/Auditing Program which  
enhances the security of a
Linux box, by configuring daemons, system settings and firewalling.  
It currently functions on

most major Linux distributions as well as Mac OSX and HP-UX

http://sourceforge.net/projects/bastille-linux/

http://sourceforge.net/project/showfiles.php?group_id=403

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Apache fails to startup via the LaunchDaemons - error : mod_unique_id: unable to find IPv4

2007-08-23 Thread Bill Hernandez

All,

When I boot my machine Apache should startup via the LaunchDaemons

Check Apache and notice Apache is not running so I check the error  
log...

postgresql82, and mysql5 seem to startup via the LaunchDaemons just fine

$ ck_status
 
---

Check Apache...
 
---
local_user   315   0.0 -0.027368460  p1  S+5:44PM
0:00.00 grep httpd
 
---

Check PgSQL...
 
---
pg_user97   0.0 -0.138084   1988  ??  S 5:43PM   0:00.45 / 
opt/local/lib/postgresql82/bin/pos
pg_user   117   0.0 -0.036356500  ??  Ss5:43PM   0:00.01  
pg_user: writer process
pg_user   118   0.0 -0.032340328  ??  Ss5:43PM   0:00.00  
pg_user: stats collector process
local_user   317   0.0 -0.018060288  p1  R+5:44PM
0:00.00 grep pg_user
 
---

Check MySQL...
 
---
root75   0.0 -0.027728664  ??  S 5:43PM
0:00.01 /bin/sh /opt/local/lib/mysql5/bin/m
mysql  105   0.0 -0.665848  13192  ??  S 5:43PM
0:00.09 /opt/local/libexec/mysqld --basedir
local_user   319   0.0 -0.018060264  p1  R+5:44PM
0:00.00 grep mysql
 
---

LOG OUTPUT - after boot or reboot with LaunchDaemons attempt
 
---

[Thu Aug 23 17:38:02 2007] [notice] caught SIGTERM, shutting down
[Thu Aug 23 17:38:28 2007] [alert] (EAI 7)No address associated with  
nodename: mod_unique_id: unable to find IPv4 address of "server.local"

Configuration Failed
 
---

I then try a MANUAL APACHE START and life is swell as you can see below
 
---

[2007.23.08](05:44PM) -> [bhernandez] ~
$ sudo /opt/local/apache2/bin/apachectl start

$ ps aux | grep httpd
 
---
root   325   0.1 -0.346748   6120  ??  Ss5:45PM
0:00.26 /opt/local/apache2/bin/httpd -k start
local_user   328   0.0 -0.046748944  ??  S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user   329   0.0 -0.046748948  ??  S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user   330   0.0 -0.046748948  ??  S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user   331   0.0 -0.046748944  ??  S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user   332   0.0 -0.046748944  ??  S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user   354   0.0 -0.027368460  p1  S+5:45PM
0:00.00 grep httpd
 
---

LOG OUTPUT - after manual start shows Apache is happy...
 
---
[Thu Aug 23 17:37:33 2007] [notice] Digest: generating secret for  
digest authentication ...

[Thu Aug 23 17:37:33 2007] [notice] Digest: done
[Thu Aug 23 17:37:33 2007] [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4  
OpenSSL/0.9.8e DAV/2 PHP/5.2.3 configured -- resuming normal operations


This happens every time I start or restart, not quite sure what is  
not working correctly in the startup sequence. It's as if though  
LaunchDaemons is trying to start apache before the IPv4 has been  
assigned by the firewall.



Any ideas ?

Best regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


[MySQL] Is it possible to re-install clean without having to remove php ?

2007-06-25 Thread Bill Hernandez
Thanks to all those that offered suggestions and feedback on the  
MySQL problem I am having.


I tried to remove MySQL in order to start over, in order to follow  
the instructions and the advice more closely, but MacPorts didn't  
like that idea very well unless I removed PHP, which rightfully so  
depends on MySQL.


It appears that my install is messed up beyond repair, and would like  
to start over with MySQL, just remove it and re-install it...


Is it possible to force it, or am I just looking for more trouble  
unless I remove PHP first ?


Best regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: [MySQL] Install difficulties : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

2007-06-25 Thread Bill Hernandez

Paul,

This is a copy of the message I sent Ryan Schmidt.

The reason for using MacPorts in the first place is to simplify the  
whole unix thing, with that in mind, why over-complicate the hierarchy.


I screwed around with the MacPorts version of MySQL for about a week  
off and on, and couldn't get it running...


NOTE : While I was waiting for a reply to this problem I downloaded  
the MySQL for OSX from http://www.MySQL.com, followed the simple  
instructions and got it running in about 20 minutes, and within a  
brief time after that I had imported all my data. They use a simple  
hierarchy that works with simple instructions. I even ran the secure  
install using :


$ /usr/local/mysql/bin/mysql_secure_installation

and it all worked the first time...

For some reason, MacPorts uses an OVER-COMPLICATED HIERARCHY for  
MySQL, yet it uses a simple and great hierarchy for APACHE2.
You can go to the MacPorts Apache2 folder and find everything you  
could possibly need all in one place.


The shame is that these guys that volunteer to do all this work are  
spending a great deal of time and effort to do all this, and I almost  
feel like a terrible ingrate for mentioning the fact that the user  
experience is probably now what they intended...


I've been working all day with the http://www.MySQL.com simple  
install and using Navicat for a GUI, and I don't know if I am going  
to bother to fix the MacPorts install, I've already wasted so much  
time on it...


I like PostgreSQL a lot better anyway, but wanted to get MySQL  
working for some of my PHP stuff...


Best Regards,

Bill Hernandez
Plano, Texas


On Jun 25, 2007, at 3:28 PM, paul beard wrote:
I have to say that installing and running MySQL has never been  
troublefree for me.


I find it especially frustrating when presented instructions to  
copy and paste that don't work:


[/opt/local]# bin/mysql_install_db5
Installing MySQL system tables...
OK
Filling help tables...
OK



To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system



PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !



To do so, start the server, then issue the following commands:



/opt/local/lib/mysql5/bin/mysqladmin -u root password 'new-password'


/opt/local/lib/mysql5/bin/mysqladmin -u root -h white.paulbeard.org  
password 'new-password'



See the manual for more instructions.



You can start the MySQL daemon with:



cd /opt/local ; /opt/local/lib/mysql5/bin/mysqld_safe &



You can test the MySQL daemon with mysql-test-run.pl



cd mysql-test ; perl mysql-test-run.pl


Please report any problems with the /opt/local/lib/mysql5/bin/ 
mysqlbug script!


The latest information about MySQL is available on the web at  
http://www.mysql.com



Support MySQL by buying support/licenses at http://shop.mysql.com



([EMAIL PROTECTED])-(01:23 PM / Mon Jun 25)


[/opt/local]# /opt/local/lib/mysql5/bin/mysqladmin -u root password  
'new-password'


/opt/local/lib/mysql5/bin/mysqladmin: connect to server at  
'localhost' failed


error: 'Can't connect to local MySQL server through socket '/opt/ 
local/var/run/mysql5/mysqld.sock' (2)'


Check that mysqld is running and that the socket: '/opt/local/var/ 
run/mysql5/mysqld.sock' exists!


It strikes me as obvious that the database server/daemon needs to  
be running before we'll be able to run commands against it, right?  
So how is that supposed to work?


I knew there is some other incantation that runs it with the  
privileges opened up (something to do with grant tables) that I  
have used before but only after looking it up. I'm sure I can get  
it working -- I have done before -- but are people using these  
instructions and getting anywhere? I don't even see a reference to  
running the database installer, and without that you're hosed.

--
Paul Beard / www.paulbeard.org/
<[EMAIL PROTECTED]/[EMAIL PROTECTED]>




THIS IS THE ORIGINAL MESSAGE, YOU CAN SKIP IT...

On Jun 24, 2007, at 11:21 PM, Ryan Schmidt wrote:

I'm going to snip right there because you've written such a  
voluminous message that I'm having immense difficulties taking it  
all in. But as has been pointed out, /tmp/mysql.sock is not where  
the MacPorts mysql5 puts its socket. (/tmp/mysql.sock is where the  
mysql.com binary distribution puts its socket file.) Why is your  
mysql looking for the socket in /tmp/mysql.sock? Have you  
configured your my.cnf to point to that location? If so, take those  
lines out and let mysql find the socket files in the default location.




HERE'S A BRIEF VERSION OF MY MESSAGE

My message was voluminous, because I've been trying to get this to  
work for several days, and had no luck getting docs that explained  
the setup used by MacPorts.



NOTE : While I was waiting for thi

Re: [MySQL] Install difficulties : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

2007-06-24 Thread Bill Hernandez


On Jun 24, 2007, at 11:21 PM, Ryan Schmidt wrote:

I'm going to snip right there because you've written such a  
voluminous message that I'm having immense difficulties taking it  
all in. But as has been pointed out, /tmp/mysql.sock is not where  
the MacPorts mysql5 puts its socket. (/tmp/mysql.sock is where the  
mysql.com binary distribution puts its socket file.) Why is your  
mysql looking for the socket in /tmp/mysql.sock? Have you  
configured your my.cnf to point to that location? If so, take those  
lines out and let mysql find the socket files in the default location.




HERE'S A BRIEF VERSION OF MY MESSAGE

My message was voluminous, because I've been trying to get this to  
work for several days, and had no luck getting docs that explained  
the setup used by MacPorts. While I was waiting for this reply I  
downloaded the MySQL for OSX from MySQL.com and got it running in  
about 20 minutes, and within a brief time after that I had imported  
all my data.


It uses a fairly simple hierarchy:

/usr/local/mysql
/usr/local/mysql/data

MacPorts appears to use several directories, which probably all need  
to have the ownership/permissions set correctly :


/opt/local/bin/mysql5
/opt/local/etc/mysql5
/opt/local/include/mysql5
/opt/local/lib/mysql5
/opt/local/share/mysql5
/opt/local/var/db/mysql5
/opt/local/var/run/mysql5

I am sure there is a great reason for the over-complicated hierarchy  
which I do not see at this point, but the standard install where all  
the mySQL stuff goes in one dir seems a lot easier to deal with, even  
for browsing purposes. Although as a work-around I could create a  
dummy directory with aliases to all these other directories in order  
to simplify the process of becoming familiar with the distributed  
contents.


Setting permissions for the installations at /usr/local/mysql was  
fairly simple and only involved two sets of permissions, one for the  
main directory, and a different one for the data dir, and like I said  
previously I got that version up and running in about 20 minutes, vs  
several days that I've been trying to get the MacPorts MySQL working.  
I am not trying to be ungrateful, I am just not sure why this  
implementation is so over-complicated ?


/usr/local/mysql
/usr/local/mysql/data   --> data file, which translates to -->  /opt/ 
local/var/db/mysql5


I didn't find any documentation on this type of setup. All the docs I  
found refer to the /usr/local/mysql self contained type of installation.


 I was not able to locate any documentation on what the MacPorts  
implementation required, such as my.cnf, and where any of this stuff  
is supposed to live.


I ask again, Is there any documentation ?

Also the log showed this :

/opt/local/var/db/mysql5/my_hostname.local.err

070624 18:11:24  mysqld started
070624 18:11:24 [ERROR] /opt/local/libexec/mysqld: unknown option '-S'

070624 18:11:24  mysqld ended

070624 18:40:58  mysqld started
070624 18:40:58 [ERROR] /opt/local/libexec/mysqld: unknown option '-S'

070624 18:40:58  mysqld ended


THE FILE "mysql-test-run.pl " DOES NOT EXIST, NEITHER DOES THE DIR  
"mysql-test"

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Also, has anybody documented how they got this implementation working ?

Are there any step by step docs for this implementation ?

 Any ideas ?

Best Regards,

Bill Hernandez
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


[MySQL] Install difficulties : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

2007-06-24 Thread Bill Hernandez
 
which I do not see at this point, but the standard install where all  
the mySQL stuff goes in one dir seems a lot easier to deal with, even  
for browsing purposes. Although as a work-around I could create a  
dummy directory with aliases to all these other directories in order  
to simplify the process of becoming familiar with the distributed  
contents.


Setting permissions for the installations at /usr/local/mysql was  
fairly simple and only involved two sets of permissions, one for the  
main directory, and a different one for the data dir :


/usr/local/mysql
/usr/local/mysql/data   --> data file, which translates to -->  /opt/ 
local/var/db/mysql5


I didn't find any documentation on this type of setup. All the docs I  
found refer to the /usr/local/mysql self contained type of installation.


Even the docs at http://dev.mysql.com/doc/refman/5.0/en/index.html  
refer to the simpler hierarchy, so I wasn't able to find help there.


Any ideas ?

Also, has anybody documented how they got this implementation working ?

Are there any step by step docs for this implementation ?

I seem to have a number of error messages:

I noticed that the /opt/local/var/db/mysql5/my_hostname.local.pid is  
not being created which seems like it could be a permissions error.


ERROR : Connection Failed : Can't connect to local MySQL server  
through socket '/tmp/mysql.sock' (2)


I found this article : http://www.tech-recipes.com/mysql_tips762.html


Thanks in advance,

Bill Hernandez
Plano, texas



[2007.24.06](08:39AM) -> [joshua] ~
$ ps aux | grep mysql
joshua   395   3.1  0.027376428  p1  S+8:40AM   0:00.01  
grep mysql


[2007.24.06](08:40AM) -> [joshua] ~
$ sudo /opt/local/lib/mysql5/bin/mysqld_safe --user=mysql &
[1] 399

[2007.24.06](08:40AM) -> [joshua] ~
$ ps aux | grep mysql
root   399   0.0  0.127456656  p1  S 8:40AM   0:00.03  
sudo /opt/local/lib/mysql5/bin/mysq
joshua   403   0.0  0.027812  8  p1  R+8:40AM   0:00.00  
grep mysql


[2007.24.06](08:40AM) -> [joshua] ~
$ sudo /opt/local/share/mysql5/mysql/mysql.server stop

[2007.24.06](08:43AM) -> [joshua] ~
$ sudo echo
Password:


[2007.24.06](08:43AM) -> [joshua] ~
$ sudo /opt/local/lib/mysql5/bin/mysqladmin -u root -h  
my_hostname.local password 'my_password'
/opt/local/lib/mysql5/bin/mysqladmin: connect to server at  
'my_hostname.local' failed
error: 'Lost connection to MySQL server at 'reading initial  
communication packet', system error: 61'


[2007.24.06](08:43AM) -> [joshua] ~
$ sudo /opt/local/lib/mysql5/bin/mysqladmin -u root -h localhost  
password 'my_password'
/opt/local/lib/mysql5/bin/mysqladmin: connect to server at  
'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/ 
local/var/run/mysql5/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/opt/local/var/run/ 
mysql5/mysqld.sock' exists!


[2007.24.06](08:44AM) -> [joshua] ~
$ sudo /opt/local/lib/mysql5/bin/mysqladmin -u root -h 127.0.0.1  
password 'my_password'
/opt/local/lib/mysql5/bin/mysqladmin: connect to server at  
'127.0.0.1' failed
error: 'Lost connection to MySQL server at 'reading initial  
communication packet', system error: 61'


[2007.24.06](08:44AM) -> [joshua] ~
$ sudo /opt/local/lib/mysql5/bin/mysqld_safe --user=mysql &
[2] 447

[2007.24.06](08:45AM) -> [joshua] ~
$ Starting mysqld daemon with databases from /opt/local/var/db/mysql5
STOPPING server from pid file /opt/local/var/db/mysql5/ 
my_hostname.local.pid

070624 08:45:58  mysqld ended


[2007.24.06](08:48AM) -> [joshua] ~
$ ps aux | grep mysql
root   399   0.0  0.127456636  p1  S 8:40AM   0:00.03  
sudo /opt/local/lib/mysql5/bin/mysq
mysql  464   0.0  0.343624   2816  ??  SNs   8:45AM
0:00.16 /System/Library/Frameworks/CoreServ
joshua   545   0.0  0.027336364  p1  R+8:48AM   0:00.01  
grep mysql


On my other machine where I have a /usr/local/mysql type of install  
ps aux | grep mysql has several more lines, but I didn't look at them  
closely yet.


# +++++++ 
++

PROBLEMS DURING STARTUP :

ERROR : Connection Failed : Can't connect to local MySQL server  
through socket '/tmp/mysql.sock' (2)


After searching for several hours finally found the article shown below:
# +++++++ 
++

# http://www.tech-recipes.com/mysql_tips762.html

A frequent error message received when using the mysql command line  
utility is: Can't connect to local MySQL server through socket '/tmp/ 
mysql.sock' While this error message can be frustrating, the solution  
is simple.


When connecting to a MySQL server located on the local system, the  

Re: sudo port -d selfupdate errors ( FIXED )

2007-06-15 Thread Bill Hernandez


On Jun 15, 2007, at 6:27 PM, Juan Manuel Palacios wrote:

	Update to everyone, new rsync servers are now fully in place  
(including DNS resolution) so the sync & selfupdate routines in port 
(1) should be working again.


	Please do report any strange behavior you encounter, I'll try fixing  
it ASAP! Regards,..



-jmpp

Juan,

I just tested <[ sudo port -d selfupdate ]> and it worked great...

Thanks afain,

Bill Hernandez
Plano, Texas


HERE's the gist of it...

[2007.15.06](07:50PM) -> [james] ~
$ sudo port -d selfupdate
Password:
DEBUG: Rebuilding the MacPorts base system if needed.
DEBUG: Synchronizing dports tree(s)
Synchronizing from rsync://rsync.darwinports.org/dpupdate/dports
receiving file list ... done
./
aqua/
...
...
tests/test/xcodeversion/master

sent 22803 bytes  received 13465 bytes  14507.20 bytes/sec
total size is 2093103  speedup is 57.71
Downloaded MacPorts base version 1.442
The MacPorts installation is not outdated and so was not updated
DEBUG: Setting ownership to root
selfupdate done!

[2007.15.06](07:51PM) -> [james] ~
$

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


sudo port -d selfupdate errors

2007-06-15 Thread Bill Hernandez

Hi all,

Normally I use <[ $ sudo port selfupdate ]>, but today I decided to  
use the "-d" flag <[ $ sudo port -d selfupdate ]>


After running selfupdate I noticed the following errors :

DarwinPorts base version 1.442 installed
DEBUG: Updating using rsync
( 1 ) ->	receiving file list ... rsync: link_stat "base/." (in  
dpupdate1) failed: No such file or directory (2)

done
( 2 ) ->	client: nothing to do: perhaps you need to specify some  
filenames or the --recursive option?
( 3 ) ->	rsync error: some files could not be transferred (code 23) / 
SourceCache/rsync/rsync-24.1/rsync/main.c(738)
( 4 ) ->	DEBUG: Error: rsync failed in selfupdate while executing  
"darwinports::selfupdate [array get global_options]"
( 5 ) ->	Error: /opt/local/bin/port: selfupdate failed: Error: rsync  
failed in selfupdate



Any ideas, what I need to do to correct these errors other than not  
use the "-d" flag ?


Best Regards,

Bill Hernandez
Plano, Texas


This is the completeTerminal Output

[2007.15.06](07:58AM) -> [Sam] ~
$ sudo port -d selfupdate
Password:

DEBUG: Rebuilding the MacPorts base system if needed.
DEBUG: Synchronizing dports tree(s)
Synchronizing from rsync://rsync.darwinports.org/dpupdate/dports
receiving file list ... done
./
audio/libao/
audio/libmad/
devel/
devel/readline/
devel/wxd/
emulators/minivmac/
games/eboard/
gnome/evolution-data-server/
gnome/file-roller/
gnome/gnome-desktop/
gnome/gnome-menus/
gnome/gnome-panel/
gnome/gnome-session/
gnome/gnome-system-monitor/
gnome/libgtkhtml3/
gnome/libgtop/
gnome/libwnck/
gnome/metacity/
gnome/nautilus/
net/honeyd/
net/nedi/
perl/p5-class-c3-xs/
perl/p5-net/
x11/wine/
PortIndex
audio/libao/Portfile
audio/libmad/Portfile
devel/readline/Portfile
devel/wxd/Portfile
emulators/minivmac/Portfile
games/eboard/Portfile
gnome/evolution-data-server/Portfile
gnome/file-roller/Portfile
gnome/gnome-desktop/Portfile
gnome/gnome-menus/Portfile
gnome/gnome-panel/Portfile
gnome/gnome-session/Portfile
gnome/gnome-system-monitor/Portfile
gnome/libgtkhtml3/Portfile
gnome/libgtop/Portfile
gnome/libwnck/Portfile
gnome/metacity/Portfile
gnome/nautilus/Portfile
net/honeyd/Portfile
net/nedi/Portfile
perl/p5-class-c3-xs/Portfile
perl/p5-net/Portfile
x11/wine/Portfile

sent 9869 bytes  received 263476 bytes  20247.78 bytes/sec
total size is 1477  speedup is 53.90
DEBUG: MacPorts base dir: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate1/base

DEBUG: Setting user: root
DarwinPorts base version 1.442 installed
DEBUG: Updating using rsync
receiving file list ... rsync: link_stat "base/." (in dpupdate1)  
failed: No such file or directory (2)

done
client: nothing to do: perhaps you need to specify some filenames or  
the --recursive option?
rsync error: some files could not be transferred (code 23) at / 
SourceCache/rsync/rsync-24.1/rsync/main.c(738)

DEBUG: Error: rsync failed in selfupdate
while executing
"darwinports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: selfupdate failed: Error: rsync failed in  
selfupdate


[2007.15.06](07:59AM) -> [Sam] ~
$ 
___

macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


[bash] error : trouble reading termcap after installing some ports

2007-05-29 Thread Bill Hernandez

All,

I installed a number of items with MacPorts after doing a clean  
install on my workstation, and everything has gone very well so far.


After installing all the ports listed below, I have run into an error  
every time I use the Terminal (bash).


The error message is : "trouble reading termcap" which I have  
googled, without much solid luck.


Any ideas how I can fix this error message ?

Best Regards,

Bill Hernandez
Plano, Texas

I will post some info in reference to how well the install went, and  
some minor points I ran into. Hopefully I will get my website up and  
going again, but I am still fiddling with my network and my new  
firewall and trying to re-configure apache to work correctly with ip  
based virtual hosting and ssl, pgsql and mysql, and trying to get vpn  
working on my new SonicWall TZ 180 Wireless. My SonicWall experience  
has been quite a trip. When I was trying to get pre-sales info from   
a number of sources I was substantially misled ( I don't think it was  
intentional, I just think there are so many options available that  
it's hard to figure out exactly what options are really included with  
each variation of packages vs what options you need, or want), in  
terms of the hardware requirements, what software/capability, what  
licensing options, etc. I thought I might document all this in case  
it might help someone else...


Anyway, back to MacPorts, the primary ports I wanted were :

  apache2 @2.2.4_0+openldap (active)
  php5 @5.2.2_0+apache2+darwin_8+fastcgi+macosx+mysql5+pear 
+postgresql+sqlite (active)

  postgresql82 @8.2.4_0+darwin_8 (active)
  mysql5 @5.0.41_0+darwin_8+server (active)


[2007.29.05](02:59PM) -> [username] ~ $ port installed
The following ports are currently installed:
  apache2 @2.2.4_0+openldap (active)
  apr @1.2.8_0 (active)
  apr-util @1.2.8_2+openldap (active)
  bison @2.3_0 (active)
  curl @7.16.2_0+darwin_8 (active)
  cyrus-sasl2 @2.1.21_0 (active)
  db4 @4.3.29_1+darwin_8 (active)
  db44 @4.4.20_1+darwin_8 (active)
  expat @2.0.0_1 (active)
  fontconfig @2.4.2_0+macosx (active)
  freetype @2.3.4_0 (active)
  gd2 @2.0.34_0 (active)
  gettext @0.16.1_0 (active)
  jpeg @6b_1 (active)
  libiconv @1.11_4+darwin_8 (active)
  libmcrypt @2.5.8_0+darwin_8 (active)
  libpng @1.2.18_0+darwin_8 (active)
  libxml2 @2.6.28_0 (active)
  libxslt @1.1.20_0 (active)
  m4 @1.4.9_0 (active)
  mhash @0.9.9_0+darwin_8 (active)
  mysql5 @5.0.41_0+darwin_8+server (active)
  ncurses @5.6_0+darwin_8 (active)
  ncursesw @5.6_0+darwin_8 (active)
  openldap @2.3.35_0 (active)
  openssl @0.9.8e_0+darwin_8 (active)
  pcre @7.1_0 (active)
  perl5.8 @5.8.8_0+darwin_8 (active)
  php5 @5.2.2_0+apache2+darwin_8+fastcgi+macosx+mysql5+pear 
+postgresql+sqlite (active)

  pkgconfig @0.21_0 (active)
  postgresql82 @8.2.4_0+darwin_8 (active)
  readline @5.2.001_0 (active)
  rpl @1.4.0_0 (active)
  sqlite3 @3.3.17_0+darwin_8 (active)
  tiff @3.8.2_0+darwin_8 (active)
  zlib @1.2.3_1 (active)
[2007.29.05](02:59PM) -> [username] ~ $






___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: General questions about install order and variants (Apache2, PHP5, PostgreSQL, mySQL)

2007-05-19 Thread Bill Hernandez
stem administration requires many more additional skills, which  
AppleCare representatives do not receive any training for and are  
therefore in no position to impart to you.


I don't bother AppleCare, except for hardware issues. A few months  
ago my ImacG5 began crashing randomly so I did all the normal disk  
repair, permission  repair things and tried "memtest", but found  
nothing wrong. I finally went to the Apple Store and they ran all  
their tests, and found nothing wrong.


I eventually got tired of the crashes and put pressure on the  
AppleCare Rep to replace my logic board, which they did. When the  
CompUSA Tech came to my house and pulled the old logic board he  
showed me a bunch of burned diodes. Replacing the logic board solved  
the crashes but interestingly enough the tests,  thorough as they  
were didn't pick up the problems...


Apple does keep the OS up-to-date with regular software updates,  
and they are very easy to install; just click the Install button.  
However, IMHO in order to maintain software compatibility  
throughout the life of the OS product, they don't make major  
changes to the installed packages until the next major OS release.


I love the way Apple handles all their the updates.

Ports in MacPorts define what other ports they depend on, but the  
syntax does not at present allow it to specify what *variants* of  
that port would be ideal. So, for example, if you do not yet have  
mysql5 installed, and you install php5 +apache2 +mysql5, MacPorts  
will install apache2 and mysql5 for you first, but with the default  
set of variants. If you want to run a MySQL server, however, you  
will want to install mysql5 +server. So it would behoove you to  
install mysql5 +server first, then install php5 with the desired  
variants. Otherwise you will have to later forcibly uninstall the  
non-server mysql5 and then install mysql5 +server.


All your insights and explanations have been really nice, and you  
were graceful enough to not point out that my rant was rather  
moronic, and got me one step closer to my PHD in bufoonery.


I obviously was not looking at all the implications involved, and  
because of my lack of understanding on how this stuff all ties  
together, I made some rather foolish observations, which did not  
serve me or anyone else well. In the future I will try to keep silent  
and stick to technical questions.


Thanks again for taking the time to enhance my window into the world...

Very Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: General questions about install order and variants (Apache2, PHP5, PostgreSQL, mySQL)

2007-05-18 Thread Bill Hernandez
I didn't write everyone individually to thank them for the time they  
took to provide some spectacular insights, but I am most grateful for  
the time you all took...


I've been programming 12-15 hours a day now for months, and I think I  
really need a vacation, get away from all this. Actually I am  
retired, and no-one forces me to do this, I've always loved solving  
problems and the mental challenge programming has always provide me.  
I think it's just the frustration when things don't go well that go  
the better of me...


I would like to apologize to the members of the list for having sent  
this message expressing my paradigm's views, which in retrospect it  
appears were mostly flawed.


Once again, thank you for the great insights, and especially to the  
all the folks involved with MacPorts.


Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


General questions about install order and variants (Apache2, PHP5, PostgreSQL, mySQL)

2007-05-18 Thread Bill Hernandez
-s http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*// 
g') ; echo $( ifconfig | grep broadcast | awk '{ print $2 }')


and that was not displaying, so I knew that ~/.profile was not  
loading correctly. I tried to find out where ~/.profile was specified  
as the startup document and found the Terminal Preferences has a  
checkbox and a field : "Open a saved .termfile when Terminal starts :  
___" and maybe you are supposed to enter ~/.profile there.


In my opinion Apple is in a perfect position to know where  
everything, and I mean EVERYTHING (pathwise, and dependency wise) is  
located since they shipped it installed. So that even if they are not  
going to handle the upgrades from Apache 1.3 on OSX, or Apache 2.0.52  
on OSX Server, or openssl .96d, or php 4.x to the current versions,  
they should have some really good instructions on how to replace and  
upgrade the existing outdated versions. Shamefully they don't do  
anything of the sort...


Perhaps if you are a home user with an iMac or a laptop you can get  
by with Apache 1.3, (we're talking 4 or 5 years after Apache 2 became  
available) but certainly if you are shelling out a bunch of money for  
OSX Server, Apple should be more forthcoming. Their policy seems to  
be install it and forget. The user won't notice how ancient this  
stuff is, and even if they do "We'll just tell them that's not part  
of the 90 day support"...


A couple of weeks ago I bought a new Intel iMacG5 and was not  
surprised that they still had ancient versions of software right out  
of the box...


It's hard for me to believe that Apple is totally unconcerned with  
this problem. In my opinion Apple's lack of interest in maintaining  
the software packages they pre-install with the OS up to date is  
shameful. I do not think they should be responsible for any user  
installed stuff, but they should certainly provide a way to keep  
software that comes with the OS up to date, such as the software  
previously mentioned...


Enough for my thoughts on this issue. I aplogize for repeating  
myself, particularly in  the use of the word "shameful"...



[GENERAL QUESTIONS]

So far I reformatted my primary drive, installed all the licensed  
applications, downloaded MacPorts installed the following :  
"SuccessFully, I might add. Yeah for the MacPorts Team"


[2007.18.05](09:08AM) -> [bhernandez] ~ $ port list installed
expat  @2.0.0  textproc/expat
fontconfig @2.4.2  graphics/fontconfig
freetype   @2.3.4  print/freetype
gd2@2.0.34 graphics/gd2
jpeg   @6b graphics/jpeg
libiconv   @1.11   textproc/libiconv
libpng @1.2.18 graphics/libpng
ncurses@5.6devel/ncurses
ncursesw   @5.6devel/ncursesw
openssl@0.9.8e devel/openssl
readline   @5.2.001devel/readline
rpl@1.4.0  textproc/rpl
zlib   @1.2.3  archivers/zlib
[2007.18.05](09:49AM) -> [bhernandez] ~ $


Before I install (Apache2, PHP5, PostgreSQL, mySQL) I wanted to find  
out if there was a preferred way of doing this ?


It seems like PHP should be last because of the --with APXS2 that  
requires a path  to Apache, but in this case where MacPorts knows  
where everything is going to be installed anyway maybe it doesn'  
matter ?


Anyway MacPorts has handled all the ugly stuff so far, and I don't  
want to screw up the remaining installs


Any ideas what variants I should use, I didn't find where the  
information is stored, about what the different variants do, and  
which one I should choose ?


( 1 ) iMacG5 workstation - OSX 10.4.9 (Apache 2.0.52, php, postgreSQL)
( 2 ) G4 - OSX Server 10.3.9 (This one runs a 4D WebServer)
( 3 ) G4 - OSX Server 10.4.9 (This one runs Apache 2.0.52, php,  
postgreSQL)


When I use the bash terminal to find out about what options are  
available for Apache2:


[2007.18.05](07:13AM) -> [bhernandez] ~ $ port variants Apache2
Apache2 has the variants:
universal
darwin
darwin_7
openbsd
openldap
preforkmpm
workermpm
eventmpm
no_startupitem
[2007.18.05](07:17AM) -> [bhernandez] ~ $

I think I've gotten completely burned out beyond help...


Best Regards,

Bill Hernandez
Plano, Texas

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


following items did not execute (for gd2): com.apple.activate

2007-04-27 Thread Bill Hernandez

Ports Crowd,

Using PortAuthority(v2) I tried installing GD2, the  first time  
through there were a bunch of errors at the end,  I clicked in  the  
log pane and tried a Cmd-A in order to select the log contents and to  
my amazement lost the  entire log. It turns out Cmd-A is used to  
select all the  ports. So much for the log. Today after speaking to  
Kevin, the author he pointed out the disk icon that saves the log. I   
should have spent more time getting familiar  with the interface...


I restarted the machine, and tried installing gd2_noX11, which was  
successful.


Today I  tried  installing GD2 again in order to send the log, and  
this time it appears that all of yesterday's errors are no longer  
there, however the last few lines in  the Port Authority Log  showed  
the following:


/usr/bin/install -c -m 644 'gdfontt.h' '/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_graphics_gd2/work/destroot/opt/local/include/gdfontt.h'
/usr/bin/install -c -m 644 'entities.h' '/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_graphics_gd2/work/destroot/opt/local/include/entities.h'

--->  Installing gd2 2.0.34_0
--->  Activating gd2 2.0.34_0
Warning: the following items did not execute (for gd2):  
com.apple.activate


Any ideas how  to fix this problem ?

Best Regards,

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Any ideas why ports doesn't like what I am asking for...

2007-04-25 Thread Bill Hernandez

Last login: Wed Apr 25 10:34:17 on console
Welcome to Darwin!

I downloaded macports and installed readline, which apparently  
installed the other two items listed below (ncurses, and ncursesw)


[04/25/07](10:37am)[disk:~] user % port installed
The following ports are currently installed:
ncurses @5.6_0+darwin_8 (active)
ncursesw @5.6_0+darwin_8 (active)
readline @5.2.001_0 (active)

[04/25/07](10:37am)[disk:~] user % sudo port -d -v install openssl
Password:
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/devel/openssl
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/devel/openssl

DEBUG: Requested variant powerpc is not provided by port openssl.
DEBUG: Requested variant macosx is not provided by port openssl.
DEBUG: Executing variant darwin provides darwin
DEBUG: Executing variant darwin_8 provides darwin_8
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib

DEBUG: invalid command name "configure.universal_args"
while executing
"configure.universal_args"
(file "Portfile" line 31)
invoked from within
"source Portfile"
invoked from within
"$workername eval source Portfile"
(procedure "dportopen" line 47)
invoked from within
"dportopen $porturl $options $variations"
(procedure "dportdepends" line 61)
invoked from within
"dportdepends $dport $target"
(procedure "dportexec" line 24)
invoked from within
"dportexec $workername $target"
Error: Unable to execute port: invalid command name  
"configure.universal_args"


[04/25/07](10:37am)[disk:~] user % sudo port -d -v install zlib
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib

DEBUG: invalid command name "configure.universal_args"
while executing
"configure.universal_args"
(file "Portfile" line 31)
invoked from within
"source Portfile"
invoked from within
"$workername eval source Portfile"
(procedure "dportopen" line 47)
invoked from within
"dportopen $porturl [array get options] [array get variations]"
Error: Unable to open port: invalid command name  
"configure.universal_args"


[04/25/07](10:38am)[disk:~] user % sudo port -d -v install libxml2
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/textproc/libxml2
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/textproc/libxml2

DEBUG: Requested variant powerpc is not provided by port libxml2.
DEBUG: Requested variant darwin is not provided by port libxml2.
DEBUG: Requested variant macosx is not provided by port libxml2.
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/textproc/libiconv
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/textproc/libiconv

DEBUG: Searching for dependency: libiconv
DEBUG: Didn't find receipt, going to depspec regex for: libiconv
DEBUG: Found port in file:///opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib

DEBUG: invalid command name "configure.universal_args"
while executing
"configure.universal_args"
(file "Portfile" line 31)
invoked from within
"source Portfile"
invoked from within
"$workername eval source Portfile"
(procedure "dportopen" line 47)
invoked from within
"dportopen $porturl $options $variations"
(procedure "dportdepends" line 61)
invoked from within
"dportdepends $dport $target"
(procedure "dportexec" line 24)
invoked from within
"dportexec $workername $target"
Error: Unable to execute port: invalid command name  
"configure.universal_args"


[04/25/07](10:39am)[disk:~] user %

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


  1   2   >