Re: Uninstalling MacPorts on Mac M1 Chip
Drop the initial $, that’s a prompt and not part of the command On Jan 12, 2022, at 11:46, Lisa Kim wrote: Hi, I would like to uninstall MacPorts entirely from my Macbook Pro M1. I am currently running MacOS Monterey. I initially installed MacPorts on my MacBook Air 2011?, but when I bought my new Macbook Pro M1, I transferred all of the files from the old to new computer. As a result, I still have MacPorts on my new mac. I would like to uninstall it entirely. In an attempt to uninstall MacPorts myself when I first bought the new mac, I may have tried to delete any associated files by searching “MacPorts”. But truthfully, I don’t remember if I had any luck. I have followed the instructions posted on the guide.macports.org website, but have had no success. The output I receive from the “$ sudo port -fp uninstall installed” input is: -bash: $: command not found I have no idea where to go from here. Any help would be appreciated. Thanks.
Re: apache doc folder permissions problem
How about the permissions on the Sites folder? On Jun 12, 2021, at 20:24, Murray Eisenberg wrote: For the Macports apache2 installation, I’m using a non-default location for my web sites. The httpd.conf includes a httpd-vhosts.conf file, and the latter includes entries such as: DocumentRoot "/Users/me/Sites/MyHomePage" ServerName MyHomePage.local ServerAlias www.MyHomePage.local ErrorLog "var/log/apache2/me-MyHomePageerror_log" CustomLog "var/log/apache2/me-MyHomePage-access_log" common Options Indexes FollowSymLinks Require all granted And in my /private/etc/hosts I include the lines: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 127.0.0.1 me-html.local 127.0.0.1 MyHomePage.local When I start apache and try to open the site MyHomePage.local, i get error: Forbidden You don't have permission to access this resource. The permissions on /Users/me/Sites/MyHomePage are: drwxr-xr-x@ 92 me staff 2944 Apr 10 2015 MyHomePage and the permissions for /Users/me/Sites/MyHomePage/index.html are: -rw-r--r--@ 1 me staff 8331 Apr 10 2015 index.html What’s wrong? --- Murray Eisenbergmurrayeisenb...@gmail.com 503 King Farm Blvd #101 Rockville, MD 20850-6667Mobile (413)-427-5334
SOLVED: Problem installing php73-zip
Never mind. It was the /private/tmp permissions. > On Nov 23, 2020, at 10:27 PM, Jeff Greenberg > wrote: > > Hi. I’m trying to add zip to the PHP 7.3 install: > > sudo port install php73-zip > Portfile changed since last build; discarding previous state. > ---> Fetching archive for libiconv > ---> Attempting to fetch libiconv-1.16_1.darwin_18.x86_64.tbz2 from > https://packages.macports.org/libiconv > <https://packages.macports.org/libiconv> > ---> Attempting to fetch libiconv-1.16_1.darwin_18.x86_64.tbz2.rmd160 from > https://packages.macports.org/libiconv > <https://packages.macports.org/libiconv> > Warning: Failed to verify signature for archive! > Error: Failed to archivefetch libiconv: version @1.16_1 > Error: See > /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/main.log > for details. > Error: Unable to execute port: upgrade php73 failed > > The log contains: > > version:1 > :debug:sysinfo macOS 10.14 (darwin/18.7.0) arch i386 > :debug:sysinfo MacPorts 2.6.4 > :debug:sysinfo Xcode 10.3 > :debug:sysinfo SDK 10.14 > :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14 > :debug:main libiconv has no conflicts > :debug:main Executing org.macports.main (libiconv) > :debug:main dropping privileges: euid changed to 502, egid changed to 501. > :debug:archivefetch archivefetch phase started at Mon Nov 23 22:09:58 EST 2020 > :msg:archivefetch ---> Fetching archive for libiconv > :debug:archivefetch Executing org.macports.archivefetch (libiconv) > :debug:archivefetch euid/egid changed to: 0/0 > :debug:archivefetch chowned /opt/local/var/macports/incoming to macports > :debug:archivefetch euid/egid changed to: 502/501 > :info:archivefetch ---> libiconv-1.16_1.darwin_18.x86_64.tbz2 doesn't seem > to exist in /opt/local/var/macports/incoming/verified > :msg:archivefetch ---> Attempting to fetch > libiconv-1.16_1.darwin_18.x86_64.tbz2 from > https://packages.macports.org/libiconv > <https://packages.macports.org/libiconv> > :msg:archivefetch ---> Attempting to fetch > libiconv-1.16_1.darwin_18.x86_64.tbz2.rmd160 from > https://packages.macports.org/libiconv > <https://packages.macports.org/libiconv> > :debug:archivefetch failed verification with key > /opt/local/share/macports/macports-pubkey.pem > :debug:archivefetch openssl output: couldn't create error file for command: > permission denied > :warn:archivefetch Failed to verify signature for archive! > :error:archivefetch Failed to archivefetch libiconv: version @1.16_1 > :debug:archivefetch Error code: NONE > :debug:archivefetch Backtrace: version @1.16_1 > :debug:archivefetch while executing > :debug:archivefetch "error "version @[option version]_[option > revision][option portvariants]"" > :debug:archivefetch (procedure "portarchivefetch::fetchfiles" line 144) > :debug:archivefetch invoked from within > :debug:archivefetch "portarchivefetch::fetchfiles" > :debug:archivefetch (procedure "portarchivefetch::archivefetch_main" line > 5) > :debug:archivefetch invoked from within > :debug:archivefetch "$procedure $targetname” > > Thanks! >
Problem installing php73-zip
Hi. I’m trying to add zip to the PHP 7.3 install: sudo port install php73-zip Portfile changed since last build; discarding previous state. ---> Fetching archive for libiconv ---> Attempting to fetch libiconv-1.16_1.darwin_18.x86_64.tbz2 from https://packages.macports.org/libiconv ---> Attempting to fetch libiconv-1.16_1.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libiconv Warning: Failed to verify signature for archive! Error: Failed to archivefetch libiconv: version @1.16_1 Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/main.log for details. Error: Unable to execute port: upgrade php73 failed The log contains: version:1 :debug:sysinfo macOS 10.14 (darwin/18.7.0) arch i386 :debug:sysinfo MacPorts 2.6.4 :debug:sysinfo Xcode 10.3 :debug:sysinfo SDK 10.14 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14 :debug:main libiconv has no conflicts :debug:main Executing org.macports.main (libiconv) :debug:main dropping privileges: euid changed to 502, egid changed to 501. :debug:archivefetch archivefetch phase started at Mon Nov 23 22:09:58 EST 2020 :msg:archivefetch ---> Fetching archive for libiconv :debug:archivefetch Executing org.macports.archivefetch (libiconv) :debug:archivefetch euid/egid changed to: 0/0 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports :debug:archivefetch euid/egid changed to: 502/501 :info:archivefetch ---> libiconv-1.16_1.darwin_18.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified :msg:archivefetch ---> Attempting to fetch libiconv-1.16_1.darwin_18.x86_64.tbz2 from https://packages.macports.org/libiconv :msg:archivefetch ---> Attempting to fetch libiconv-1.16_1.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libiconv :debug:archivefetch failed verification with key /opt/local/share/macports/macports-pubkey.pem :debug:archivefetch openssl output: couldn't create error file for command: permission denied :warn:archivefetch Failed to verify signature for archive! :error:archivefetch Failed to archivefetch libiconv: version @1.16_1 :debug:archivefetch Error code: NONE :debug:archivefetch Backtrace: version @1.16_1 :debug:archivefetch while executing :debug:archivefetch "error "version @[option version]_[option revision][option portvariants]"" :debug:archivefetch (procedure "portarchivefetch::fetchfiles" line 144) :debug:archivefetch invoked from within :debug:archivefetch "portarchivefetch::fetchfiles" :debug:archivefetch (procedure "portarchivefetch::archivefetch_main" line 5) :debug:archivefetch invoked from within :debug:archivefetch "$procedure $targetname” Thanks!
Re: Befuddled
Thanks, all. I did the following, which ended up eventually resolving the problem. Just want to make sure I did this correctly and that there wasn’t just a port fubar option that would have done it :) First I used port dependents to find what was dependent on gtk-doc. Then I did port dependents on those, and eventually found quite a few ports that nothing was dependent on, so I uinstalled them in reverse order. Then I finally got port upgrade outdated to run cleanly, but still no connection to localhost. I then installed the apache2 port and reinstalled it, which completed cleanly. I received a message about enabling it for the first time, executed that command, and that went cleanly, but still no connection. At that point, though, I could actually do a /opt/local/sbin/apachectl start and voila! A web server!! > On Feb 15, 2020, at 9:18 AM, Ryan Schmidt wrote: > > On Feb 15, 2020, at 00:22, Jeff Greenberg wrote: > >> >> >> Hi. After restarting my mac, localhost is refusing connections, and >> attempting to restart apachectl results in this error message: >> >> httpd: Syntax error on line 168 of /opt/local/etc/apache2/httpd.conf: Cannot >> load lib/apache2/modules/mod_php72.so into server: >> dlopen(/opt/local/lib/apache2/modules/mod_php72.so, 10): Library not loaded: >> /opt/local/lib/libicui18n.58.dylib\n Referenced from: >> /opt/local/lib/apache2/modules/mod_php72.so\n Reason: image not found > > This is https://trac.macports.org/ticket/59439 > <https://trac.macports.org/ticket/59439> > > I guess you had not updated your ports in awhile, and just now updated from > icu 58 to 65. > > Below we see that rev-upgrade has correctly detected the problem and would > rebuild the affected port, were it not for the problem rebuilding gtk-doc > that interrupted it. > > >> Having had this error after upgrading gimp, I tried doing what I had to do >> then: >> >> /opt/local/bin$ sudo port upgrade icu -Rf > > You should not be attempting to force things unnecessarily. And I don't > believe you're successfully forcing anything, since single-dash flags like -f > and -R must be placed between the word "port" and the command verb that > follows it in order to have any effect. > > >> which yields the following: >> >> ---> Updating database of binaries >> ---> Scanning binaries for linking errors >> ---> Found 27 broken files, matching files to ports >> ---> Found 6 broken ports, determining rebuild order >> You can always run 'port rev-upgrade' again to fix errors. >> The following ports will be rebuilt: >> avahi @0.7+gtk+gtk3+x11 >> graphviz @2.40.1+pangocairo+x11 >> php72-apache2handler @7.2.16 >> gimp2 @2.8.22+python27 >> boost @1.66.0+no_single+no_static+python27 >> sane-backends @1.0.27+avahi >> Continue? [Y/n]: Y > > >> ---> Building gtk-doc >> Error: Failed to build gtk-doc: command execution failed >> Error: See >> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk-doc/gtk-doc/main.log >> for details. >> Error: Problem while installing gtk-doc >> Error: rev-upgrade failed: Error rebuilding avahi >> Error: Follow https://guide.macports.org/#project.tickets >> <https://guide.macports.org/#project.tickets> to report a bug. >> >> The log file is attached. > > The log says the problem is: > > :info:build /opt/local/bin/ranlib: object: .libs/libtester.a(tester.o) > malformed object (unknown load command 1) > > But I don't know why. Maybe you need a newer cctools and/or ld64, possibly > using the xcode/ld64_xcode variant. Or maybe those ports just need to be > upgraded first; I think they were just updated to new versions a few days > ago.
Befuddled
main.log Description: Binary data Hi. After restarting my mac, localhost is refusing connections, and attempting to restart apachectl results in this error message:httpd: Syntax error on line 168 of /opt/local/etc/apache2/httpd.conf: Cannot load lib/apache2/modules/mod_php72.so into server: dlopen(/opt/local/lib/apache2/modules/mod_php72.so, 10): Library not loaded: /opt/local/lib/libicui18n.58.dylib\n Referenced from: /opt/local/lib/apache2/modules/mod_php72.so\n Reason: image not foundHaving had this error after upgrading gimp, I tried doing what I had to do then:/opt/local/bin$ sudo port upgrade icu -Rfwhich yields the following:---> Updating database of binaries---> Scanning binaries for linking errors---> Found 27 broken files, matching files to ports ---> Found 6 broken ports, determining rebuild orderYou can always run 'port rev-upgrade' again to fix errors.The following ports will be rebuilt: avahi @0.7+gtk+gtk3+x11 graphviz @2.40.1+pangocairo+x11 php72-apache2handler @7.2.16 gimp2 @2.8.22+python27 boost @1.66.0+no_single+no_static+python27 sane-backends @1.0.27+avahiContinue? [Y/n]: Y---> Computing dependencies for gtk-doc---> Fetching archive for gtk-doc---> Attempting to fetch gtk-doc-1.32_0+python37.darwin_18.noarch.tbz2 from https://packages.macports.org/gtk-doc---> Attempting to fetch gtk-doc-1.32_0+python37.darwin_18.noarch.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/gtk-doc---> Attempting to fetch gtk-doc-1.32_0+python37.darwin_18.noarch.tbz2 from http://aus.us.packages.macports.org/macports/packages/gtk-doc---> Building gtk-docError: Failed to build gtk-doc: command execution failedError: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk-doc/gtk-doc/main.log for details.Error: Problem while installing gtk-docError: rev-upgrade failed: Error rebuilding avahiError: Follow https://guide.macports.org/#project.tickets to report a bug.The log file is attached.I’m confused about what to do, as well as how I ended up needing to do something at all, as my LAMP stack has been stable for quite awhile.MacPorts base version 2.6.2
Re: libicui18n.58.dylib
That was it! Thanks very much, Yves. > On Jan 26, 2020, at 9:36 AM, Yves de Champlain wrote: > > Hi > > You probably have icu 65 installed. > > port installed icu > > So you need to force rebuild ports that depend on it, or at least php. > > yves > > >> Le 26 janv. 2020 à 08:53, Jeff Greenberg > <mailto:listmail.ayendesi...@gmail.com>> a écrit : >> >> Hi. Prior to tonight, I had no issues with Macports (running on Mojave). I >> decided to update gimp (which I actually ended up not doing and using the >> native version now available), and it asked me to first self-update, which >> in turn asked me if I wanted to clean up and remove unused ports, which I >> approved. >> >> What happens now is when I try to run drush or composer, I get the following >> message: >> >> dyld: Library not loaded: /opt/local/lib/libicui18n.58.dylib >> Referenced from: /opt/local/bin/php >> Reason: image not found >> Abort trap: 6 >> >> I can find no reference to the library in the output from the port cleanup. >> >> Regards, >> Jeff >
libicui18n.58.dylib
Hi. Prior to tonight, I had no issues with Macports (running on Mojave). I decided to update gimp (which I actually ended up not doing and using the native version now available), and it asked me to first self-update, which in turn asked me if I wanted to clean up and remove unused ports, which I approved. What happens now is when I try to run drush or composer, I get the following message: dyld: Library not loaded: /opt/local/lib/libicui18n.58.dylib Referenced from: /opt/local/bin/php Reason: image not found Abort trap: 6 I can find no reference to the library in the output from the port cleanup. Regards, Jeff
Issue with mysql57
I installed mysql57-server. I can access it via the command line, but apache returns: Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Connection refused. I’m running php72, and have php72-mysql @7.2.16_0+mysqlnd installed. ps -ax|grep mysql returns 86738 ?? 0:09.59 /opt/local/lib/mysql55/bin/mysqld 96068 ?? 0:00.58 /opt/local/lib/mysql57/bin/mysqld
PDO
Hi. I’ve been using vbox for a few years on my Mac for Drupal development. I decided since I have ports installed, I’d give it a try there. I have Apache 2.4, MySQL 5.5 and PHP 7.2 installed and configured. My issue is that Drupal wants a PDO driver, and there doesn’t seem to be any PDO MySQL driver listed.