Re: PMA Errors
On Wed, Aug 18, 2010 at 11:10 PM, Ryan Schmidt ryandes...@macports.orgwrote: On Aug 18, 2010, at 13:20, Jasper Frumau wrote: On Wed, Aug 18, 2010 at 10:07 PM, Ryan Schmidt wrote: I guess ! has special meaning. You could try: grep -r -- ':q!' . (where . is the directory you want to search) Thank! jaspersmbp:www jasper$ grep -r -- ':q!' phpmyadmin phpmyadmin/config.inc.php:??5:q! jaspersmbp:www jasper$ cd phpmyadmin jaspersmbp:phpmyadmin jasper$ sudo vim config.inc.php Found the culprit as you expected. Did not exit properly using vim. All good now. Thanks a lot Ryan! So I guess -- makes grep look for ! instead of using its special meaning? Well, -- means treat everything that follows as a filename / directory, not a flag, even if it begins with a dash so that wasn't really very relevant here after all. I understand now. Thanks. You started by using double quotes, in which special characters like ! get interpreted. Like PHP I guess. Makes sense now. (! is special to Bash, not to Grep.) Since you didn't want that, using single quotes is the solution to suppress the special meaning. You also weren't specifying what to search, hence stdin was being searched, being standard input as far as I have found out. So it started looking for any input. hence grep's warning that you asked for a recursive search (which is applicable only to directories) but you didn't specify any directories. OK. Thanks a lot for teaching me something new Ryan. I appreciate it a lot! ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: latex packages and ports
On Wed, Aug 18, 2010 at 07:21:14PM -0700, Scott Webster wrote: Thanks for doing that. I think most of the what port gives me X? questions I've seen recently have been about tex anyway. Yes, and more often than not the answer is 'texlive-latex-extra'. I've thought about adding it to the default texlive installation, but that's probably not a great idea since it's by far the largest texlive port in download/installation size. I recently added a note to the texlive metaport pointing out that additional packages are available. I should put a link to the wiki page there. That may help some. (BTW, the information on that page is derived from the contents of /opt/local/share/doc/texlive -- but those are only available for the ports already installed, which makes them less useful) Dan -- Dan R. K. Ports MIT CSAILhttp://drkp.net/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Vhost Config issues
I used Scottt Haneda's instructions: I use that file as my catch all for non configured hosts, [1] [2] [3] [4] [5] from above, with the following: $cat /opt/local/apache2/conf/extra/httpd-vhosts.conf # -- BEGIN -- # Virtual Hosts # Use name-based virtual hosting. 'Catch All' NameVirtualHost *:80 # Default, this will catch all non configured hosts # because there is no explicit ServerName or ServerAlias defined VirtualHost *:80 ServerAdmin sc...@example.com DocumentRoot /opt/local/www /VirtualHost # Pull in all my virtual hosts, which are filename format of hostname.example.com.conf # ie: ends in .conf Include conf/extra/vhosts/*.conf # -- END -- For your example: /opt/local/apache2/conf/extra/vhosts/dev.thesamiis.com.conf /opt/local/apache2/conf/extra/vhosts/phpmyadmin.conf /opt/local/apache2/conf/extra/vhosts/dev.lesamisdestan.com.conf Each of those will allow me to define for just that host, what I want the settings to be. * Below is a snipped version of my template file, in general it is more complex, with log locations, log levels, aliases, default favicon, etc but this should work for a dev box. $cat template.txt # START example.com VirtualHost *:80 DocumentRoot /opt/local/www/clients/last.first/example.com ServerAdmin u...@example.com ServerName example.com ServerAlias www.example.com DirectoryIndex index.html # php setttings php_admin_value open_basedir /opt/local/www/clients/last.first/ example.com/:/private/var/tmp/: php_value engine off Directory /opt/local/www/clients/last.first/example.com Options FollowSymLinks AllowOverride All Order allow,deny allow from all /Directory /VirtualHost # END example.com When I need to add a new host, I will: `cp -p /opt/local/apache2/conf/extra/vhosts/template.txt /opt/local/apache2/conf/extra/vhosts/foo.example.com.conf` I then find and replace relevant strings and issue `apachectl graceful`. I also have a template directory that I will copy in with: `cp -Rp /opt/local/www/clients/template /opt/local/www/clients/last.first/example.com`. I created a vhosts folder and used an include in the standard httpd-vhosts.conf to load those. In wordpress.conf I now have: START example.com VirtualHost *:80 DocumentRoot /opt/local/www/wordpress/ ServerAdmin u...@example.com ServerName dev-wordpess.com ServerAlias www.dev-wordpress.com DirectoryIndex index.php # php setttings # php_admin_value open_basedir /opt/local/www/clients/last.first/ example.com/:/private/var/tmp/: #php_value engine off Directory /opt/local/www/wordpress/ Options FollowSymLinks AllowOverride All Order allow,deny allow from all /Directory /VirtualHost # END example.com And in httpd-vhosts.conf I have: # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any VirtualHost block. # VirtualHost *:80 ServerAdmin webmas...@dummy-host.example.com DocumentRoot /opt/local/www/ #ServerName dummy-host.example.com #ServerAlias www.dummy-host.example.com #ErrorLog logs/dummy-host.example.com-error_log #CustomLog logs/dummy-host.example.com-access_log common /VirtualHost # # Pull in all my virtual hosts, which are filename format of hostname.example.com.conf # ie: ends in .conf Include conf/extra/vhosts/*.conf # -- END -- # #VirtualHost *:80 #ServerAdmin webmas...@dummy-host2.example.com #DocumentRoot /opt/local/apache2/htdocs/apt1 #ServerName apt1 #/VirtualHost Which somehow leads to /opt/local/www/drupal-1.6.15 folder instead of /opt/local/www/wordpress. In vhosts I added 127.0.0.1 dev-wordpress.com As dev-wordpress is crealry wrongly redirected I made a mistake in the wordpress.conf or hosts file. Anybody any ideas? ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Vhost Config issues
On Aug 19, 2010, at 02:12, Jasper Frumau wrote: Which somehow leads to /opt/local/www/drupal-1.6.15 folder instead of /opt/local/www/wordpress. How does drupal-1.6.15 enter into it? Do you have another vhost set up for that? Where is that vhost defined in relation to the others? (first? not first?) In vhosts I added 127.0.0.1 dev-wordpress.com You mean in /etc/hosts? ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Vhost Config issues
On Thu, Aug 19, 2010 at 11:46 AM, Ryan Schmidt ryandes...@macports.orgwrote: On Aug 19, 2010, at 02:12, Jasper Frumau wrote: Which somehow leads to /opt/local/www/drupal-1.6.15 folder instead of /opt/local/www/wordpress. How does drupal-1.6.15 enter into it? Do you have another vhost set up for that? Where is that vhost defined in relation to the others? (first? not first?) In vhosts I added 127.0.0.1 dev-wordpress.com You mean in /etc/hosts? Yes. ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: latex packages and ports
Am 19.08.2010 um 02:46 schrieb Bertrand Scherrer: Dear list, I find that I am missing the following LaTeX package: moredefs package. My question is the following: How do I know, among all the ports listed under the tex category on the MacPorts website (http://www.macports.org/ports.php?by=categorysubstr=tex), which one contains the package I am looking for ? I have tried the port contents action but it seems to only work with the ports I have already installed on my machine. Why don't you use the TeX-Live Manager (http://tug.org/texlive/tlmgr.html) to install missing packages after the basic installation? It is included in texlive 2009 and there is a graphical interface for the mac (http://code.google.com/p/mactlmgr/) Greetings Thomas smime.p7s Description: S/MIME cryptographic signature ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: latex packages and ports
On Aug 19, 2010, at 10:23, Thomas Weiss wrote: Why don't you use the TeX-Live Manager (http://tug.org/texlive/tlmgr.html) to install missing packages after the basic installation? It is included in texlive 2009 and there is a graphical interface for the mac (http://code.google.com/p/mactlmgr/) I don't know if that would work, but if it did, then it would seem to be installing software into the MacPorts prefix without using MacPorts, which will confuse MacPorts later so I don't recommend that. ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: latex packages and ports
I'm not sure if Thomas is just suggesting to install the packages (or all of texlive?) outside of Macports? Presumably that would work, and you could just put the packages somewhere on your tex path somewhere (modify $TEXINPUTS)? But that isn't really the point of getting it to work with macports. Scott On Thu, Aug 19, 2010 at 9:48 AM, Ryan Schmidt ryandes...@macports.org wrote: On Aug 19, 2010, at 10:23, Thomas Weiss wrote: Why don't you use the TeX-Live Manager (http://tug.org/texlive/tlmgr.html) to install missing packages after the basic installation? It is included in texlive 2009 and there is a graphical interface for the mac (http://code.google.com/p/mactlmgr/) I don't know if that would work, but if it did, then it would seem to be installing software into the MacPorts prefix without using MacPorts, which will confuse MacPorts later so I don't recommend that. ___ 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: PMA Errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/18/10 14:07 , Ryan Schmidt wrote: On Aug 18, 2010, at 13:03, Jasper Frumau wrote: On Wed, Aug 18, 2010 at 7:38 PM, Ryan Schmidt wrote: :q! looks familiar as the command you would use to exit vi(m) without saving. Perhaps you somehow managed to insert that into your phpmyadmin config file, or another phpmyadmin file you edited. You could grep recursively in your document root for :q! and see what turns up. Good call. Not good at grep just yet. Tried: jaspersmbp:www jasper$ grep -r q! -bash: !: event not found jaspersmbp:www jasper$ grep -r 'q!' grep: warning: recursive search of stdin ^C which did not work. Still playing with it... I guess ! has special meaning. You could try: Most modern shells use it for history. (Since I prefer other interfaces to shell history, I usually disable it; see the manual for your shell.) Backquoting also works to disable its use as a history search. - -- brandon s. allbery [linux,solaris,freebsd,perl] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxtboAACgkQIn7hlCsL25XufwCfe0azrPkJYDkR1Zts+G/gmFws C3MAnikslsLPWWe2wfNGJriSY6c0GHEs =62/5 -END PGP SIGNATURE- ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: latex packages and ports
Am 19.08.2010 um 19:07 schrieb Scott Webster: I'm not sure if Thomas is just suggesting to install the packages (or all of texlive?) outside of Macports? I'm tanlking only about the packages. I suppose except for the installing method the macports texlive is standard. So there should be a texmf directory where all packages are installed to. If you configure tlmgr to update and install to your local texmf tree you could install your missing/needed packages and use the native update function. If you want to uninstall you just have to uninstall the port and delete the local texmf tree. Presumably that would work, and you could just put the packages somewhere on your tex path somewhere Use the local tree. That's why it exists. Greetings Thomas smime.p7s Description: S/MIME cryptographic signature ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: latex packages and ports
On Thu, Aug 19, 2010 at 10:49 AM, Thomas Weiss thomas.we...@s2001.tu-chemnitz.de wrote: I'm tanlking only about the packages. I suppose except for the installing method the macports texlive is standard. So there should be a texmf directory where all packages are installed to. If you configure tlmgr to update and install to your local texmf tree you could install your missing/needed packages and use the native update function. If you want to uninstall you just have to uninstall the port and delete the local texmf tree. Presumably macports puts things in the appropriate place under /opt/local. Use the local tree. That's why it exists. I'm not saying that that is an inappropriate thing to do, it's just that the whole point of using the macports versions of the extra packages is to avoid managing your local tree. If it is too difficult or otherwise unfeasible to make it work, then we might as well not bother and tell people to use the local tree, perhaps that is what you are suggesting... but I think that port install texlive-latex-extra is easier than setting up your local tree for many users. Scott ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: PMA Errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/19/10 17:26 , vincent habchi wrote: Le 19 août 2010 à 19:48, Brandon S Allbery KF8NH a écrit : I guess ! has special meaning. You could try: Most modern shells use it for history. (Since I prefer other interfaces to shell history, I usually disable it; see the manual for your shell.) Backquoting also works to disable its use as a history search. Tcsh does not. A grep -r 'q!' works like a charm on my terminal. You can try that, if you're not awfully terrified by going C-shell like! :) [mress:~] allbery% grep !q /etc/passwd q: Event not found. [mress:~] allbery% grep !q /etc/passwd q: Event not found. [mress:~] allbery% grep '!q' /etc/passwd q: Event not found. [mress:~] allbery% Are you zapping histchars, like I usually do? (Admittedly, I haven't checked to see if OSX does it globally.) - -- brandon s. allbery [linux,solaris,freebsd,perl] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxtqHUACgkQIn7hlCsL25XaLwCfYeg3VCehDrNfPQZbrpPDjcdo MCMAn1fx/iWtCCBCOJ9NN4o85SGQ4J4G =CiRe -END PGP SIGNATURE- ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: PMA Errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/19/10 17:26 , vincent habchi wrote: Tcsh does not. A grep -r 'q!' works like a charm on my terminal. You can try that, if you're not awfully terrified by going C-shell like! :) Oh, it occurs to me tcsh may well be smart enough these days to recognize and ignore an illegal history substitution (!') instead of barfing Illegal history substitution.. Just be aware that you will get an unpleasant surprise if it *does* look like a valid history substitution. - -- brandon s. allbery [linux,solaris,freebsd,perl] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxtqdQACgkQIn7hlCsL25WkaACeIseTC3jH/zjwF6LEdlY94Bq+ vyoAn3XK0plPusDX55hRuvBjqO7h7Dna =QZRt -END PGP SIGNATURE- ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: ;claws-mail' installs, but won't run
Ryan Schmidt wrote: On Aug 18, 2010, at 17:40, Scott Webster wrote: I get the RANDR warning with other programs too, so I think this is a different problem. The RANDR warning is no problem at all. http://trac.macports.org/wiki/FAQ#randr Yes, that was already recognized in the original post: when I try to launch it from terminal (after launching X11) I get the expected message 'Xlib: extension RANDR missing on display :0.0'. From the message board I've gathered that this is harmless, but nothing else happens: the text cursor drops to the next line and sits there blinking, and no claws window has shown up It's the other part that's the problem: no 'claws-mail' window shows up. - Dushan ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: PMA Errors
Hi! Le 19 août 2010 à 23:56, Brandon S Allbery KF8NH a écrit : [mress:~] allbery% grep !q /etc/passwd q: Event not found. [mress:~] allbery% grep !q /etc/passwd q: Event not found. [mress:~] allbery% grep '!q' /etc/passwd q: Event not found. [mress:~] allbery% Are you zapping histchars, like I usually do? (Admittedly, I haven't checked to see if OSX does it globally.) You're right with grep !q, the initial message was about grep q!… However, grep \!q seems to work fine. I would not put my hand in fire, though, as the French saying goes. Cheers, Vincent ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: ;claws-mail' installs, but won't run
Scott Webster wrote: On Wed, Aug 18, 2010 at 3:37 PM, Dushan Mitrovichdush...@spinn.net wrote: Scott Webster wrote: Can you launch other X11 apps? Yes, I can run gnuplot. From Octave if I ask for a plot with no X11 running I get the messages gnuplot: unable to open display ':0.0' gnuplot: X11 aborted. but then a plot shows up and X11 is running. If I then do another plot, the messages are gone and the appropriate plot shows up. I get the RANDR warning with other programs too, so I think this is a different problem. If you aren't using to run it as a background task then it sounds like it is just quitting right off the bat. That makes sense. Now what do I do to determine the problem? I've looked for a logfile, but didn't find one, probably because I didn't know where to look.. - Dushan ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users