Re: [Fink-users] Singular 3-0-3
John Dalbec wrote: On Aug 21, 2007, at 1:30 AM, Martin Costabel wrote: [] Another thing I tried in order to get fink selfupdate to delete /sw/ fink.old before trying to move /sw/fink out of the way was to mv /sw/ fink/dists /sw/finkdists and rerun selfupdate twice. That didn't help and the selfupdate seemed to reconstruct /sw/fink/dists so I deleted /sw/finkdists. Is there information about installed packages in /sw/fink/dists? The only problem with repeated selfupdates - or rather repeated switches between selfupdate-rsync and selfupdate-svn - is that fink is renaming the previous /sw/fink to /sw/fink.old, and when there is already an existing /sw/fink.old it doesn't know what to do and crashes. Therefore you need to move /sw/fink.old out of the way manually or delete it. Anything else should be left to fink selfupdate. In particular, the symbolic link /sw/fink/dists should be left in place. It points to the current distribution, 10.4 in your case, if I remember corrrectly. Inside /sw/fink/10.4 there are all the package descriptions that fink needs for installing packages. It does not contain any information, however, on the installed packages. This information is contained in several subdirectories of /sw/var, in particular in /sw/var/lib/dpkg/, and it is recreated by commands like fink scanpackages and fink index. But these commands are also run automatically at the end of fink selfupdate, so there should not be any need to run them manually in your situation. The only other thing that you are losing by removing /sw/fink.old are your *.deb packages that you built yourself by installing from source. They live in directories like /sw/fink/10.4/unstable/main/binary-darwin-powerpc/, and they have symbolic links pointing to them in /sw/fink/debs/. This makes a difference when you reinstall a package that you had installed previously and removed in the meantime. Normally such a package would be reinstalled very quickly from the *.deb file. Now it will have to be rebuilt from source or re-downloaded from the bindist server. To repeat: Nothing inside /sw/fink/ contains any information about what packages are installed on your system. It contains all the information about which packages are available for installation from source, but none about what is already installed. -- Martin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
[Fink-users] failing upgrade
(Fink user running on MacBook) Dear list, I have a problem with apt-get upgrade. It appears to be caused by some post install scripts failing to run. The output I get is localhost:~/Documents/svn_repo/papers/VPM colincotter$ sudo apt-get upgrade Reading Package Lists... Done Building Dependency Tree... Done 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 packages not fully installed or removed. Need to get 0B of archives. After unpacking 0B will be used. Do you want to continue? [Y/n] y Setting up ipython-py23 (0.6.15-1) ... /sw/var/lib/dpkg/info/ipython-py23.postinst: line 6: update- alternatives: command not found /sw/bin/dpkg: error processing ipython-py23 (--configure): subprocess post-installation script returned error exit status 127 Setting up libgnomeui2 (2.6.1.1-1011) ... /sw/var/lib/dpkg/info/libgnomeui2.postinst: line 6: update- alternatives: command not found /sw/bin/dpkg: error processing libgnomeui2 (--configure): subprocess post-installation script returned error exit status 127 Errors were encountered while processing: ipython-py23 libgnomeui2 E: Sub-process /sw/bin/dpkg returned an error code (1) Has anybody seen this before or can work out what is going on? all the best --Colin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Singular 3-0-3
On Aug 24, 2007, at 2:24 AM, Martin Costabel wrote: John Dalbec wrote: On Aug 21, 2007, at 1:30 AM, Martin Costabel wrote: [] Another thing I tried in order to get fink selfupdate to delete / sw/ fink.old before trying to move /sw/fink out of the way was to mv /sw/ fink/dists /sw/finkdists and rerun selfupdate twice. That didn't help and the selfupdate seemed to reconstruct /sw/ fink/dists so I deleted /sw/finkdists. Is there information about installed packages in /sw/fink/dists? The only problem with repeated selfupdates - or rather repeated switches between selfupdate-rsync and selfupdate-svn - is that fink is renaming the previous /sw/fink to /sw/fink.old, and when there is already an existing /sw/fink.old it doesn't know what to do and crashes. Therefore you need to move /sw/fink.old out of the way manually or delete it. Anything else should be left to fink selfupdate. OK, so that is Working As Designed. In particular, the symbolic link /sw/fink/dists should be left in place. The reconstructed /sw/fink/dists (from when I ran mv /sw/fink.tmp / sw/fink) is not a symbolic link. Let me try moving it out of the way and creating a symlink as you describe. Fink selfupdate reported errors and suggested fink scanpackages. I ran fink scanpackages and fink index. Now fink selfupdate succeeds but does not create / sw/fink.old. What would cause that? fink list -i seems to be working now. I'll try fink update-all later. Thanks, John It points to the current distribution, 10.4 in your case, if I remember corrrectly. Inside /sw/fink/10.4 there are all the package descriptions that fink needs for installing packages. It does not contain any information, however, on the installed packages. This information is contained in several subdirectories of /sw/var, in particular in /sw/var/lib/dpkg/, and it is recreated by commands like fink scanpackages and fink index. But these commands are also run automatically at the end of fink selfupdate, so there should not be any need to run them manually in your situation. The only other thing that you are losing by removing /sw/fink.old are your *.deb packages that you built yourself by installing from source. They live in directories like /sw/fink/10.4/unstable/main/ binary-darwin-powerpc/, and they have symbolic links pointing to them in /sw/fink/debs/. This makes a difference when you reinstall a package that you had installed previously and removed in the meantime. Normally such a package would be reinstalled very quickly from the *.deb file. Now it will have to be rebuilt from source or re-downloaded from the bindist server. To repeat: Nothing inside /sw/fink/ contains any information about what packages are installed on your system. It contains all the information about which packages are available for installation from source, but none about what is already installed. -- Martin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] failing upgrade
Colin Cotter wrote: (Fink user running on MacBook) Dear list, I have a problem with apt-get upgrade. It appears to be caused by some post install scripts failing to run. The output I get is localhost:~/Documents/svn_repo/papers/VPM colincotter$ sudo apt-get upgrade Reading Package Lists... Done Building Dependency Tree... Done 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 packages not fully installed or removed. Need to get 0B of archives. After unpacking 0B will be used. Do you want to continue? [Y/n] y Setting up ipython-py23 (0.6.15-1) ... /sw/var/lib/dpkg/info/ipython-py23.postinst: line 6: update- alternatives: command not found /sw/bin/dpkg: error processing ipython-py23 (--configure): subprocess post-installation script returned error exit status 127 Setting up libgnomeui2 (2.6.1.1-1011) ... /sw/var/lib/dpkg/info/libgnomeui2.postinst: line 6: update- alternatives: command not found /sw/bin/dpkg: error processing libgnomeui2 (--configure): subprocess post-installation script returned error exit status 127 Errors were encountered while processing: ipython-py23 libgnomeui2 E: Sub-process /sw/bin/dpkg returned an error code (1) Has anybody seen this before or can work out what is going on? all the best --Colin The update-alternatives command isn't in your PATH for some reason. It's installed as part of dpkg, so it should be around. I'd guess your PATH is missing /sw/sbin , but you can confirm this by running printenv PATH -- Alexander K. Hansen Fink User Liaison/Documenter akh AT finkproject DOT org - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Singular 3-0-3
John Dalbec wrote: On Aug 24, 2007, at 2:24 AM, Martin Costabel wrote: John Dalbec wrote: On Aug 21, 2007, at 1:30 AM, Martin Costabel wrote: [] Another thing I tried in order to get fink selfupdate to delete / sw/ fink.old before trying to move /sw/fink out of the way was to mv /sw/ fink/dists /sw/finkdists and rerun selfupdate twice. That didn't help and the selfupdate seemed to reconstruct /sw/ fink/dists so I deleted /sw/finkdists. Is there information about installed packages in /sw/fink/dists? The only problem with repeated selfupdates - or rather repeated switches between selfupdate-rsync and selfupdate-svn - is that fink is renaming the previous /sw/fink to /sw/fink.old, and when there is already an existing /sw/fink.old it doesn't know what to do and crashes. Therefore you need to move /sw/fink.old out of the way manually or delete it. Anything else should be left to fink selfupdate. OK, so that is Working As Designed. In particular, the symbolic link /sw/fink/dists should be left in place. The reconstructed /sw/fink/dists (from when I ran mv /sw/fink.tmp / sw/fink) is not a symbolic link. Let me try moving it out of the way and creating a symlink as you describe. Fink selfupdate reported errors and suggested fink scanpackages. I ran fink scanpackages and fink index. Now fink selfupdate succeeds but does not create / sw/fink.old. What would cause that? fink list -i seems to be working now. I'll try fink update-all later. Thanks, John I've lost track, but if you're running rsync selfupdates then fink.old isn't ever created. Also, for those in the audience, the error regarding can't move /sw/fink out of the way is covered in the FAQ: http://www.finkproject.org/faq/usage-fink.php#cant-move-fink And if /sw/fink/dists is broken, i.e. not a symbolic link, removing it and then running fink reinstall fink should set that and a do a _full_ index (which you can get from the command line via fink index -f). With a modern fink, fink index is usually only needed if you've been manually messing around with package description files in /sw/fink/dists. -- Alexander K. Hansen Fink User Liaison/Documenter akh AT finkproject DOT org - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
[Fink-users] Postgresql82 Question under FInk
Hi: We have installed postgresql82 using Fink. The instructions I get when I do describe are: Usage Notes: The package runs initdb on installation as the user 'postgres'. . The best way to run it is using the supplied pgsql.sh script, i.e. 'sudo pgsql.sh start'. Or, you can run 'sudo daemonic enable postgresql82' as root to create a StartupItem for it. . Unless you set up admin users in the database, the easiest way to run psql commands with administrator access is to prefix them with the command sudo -u postgres. This will ask you your administrator password, and then run the command as the postgres user. . For example, to create a new database, you would run: . sudo -u postgres createdb mydb Even if it has to be started by an admin user, we would like new databases to be created and modified by a non-admin user (i.e so sudo does not need to be used to create the database). Or should I require sudo and modify the sudoers file? Any info appreciated. -Roy M. ** The contents of this message do not reflect any position of the U.S. Government or NOAA. ** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center 1352 Lighthouse Avenue Pacific Grove, CA 93950-2097 e-mail: [EMAIL PROTECTED] (Note new e-mail address) voice: (831)-648-9029 fax: (831)-648-8440 www: http://www.pfeg.noaa.gov/ Old age and treachery will overcome youth and skill. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
[Fink-users] GnuCash on Intel Mac causes bus error on start-up
I'm desperately trying to get GnuCash installed and working. I don't really care how or which version. I tried using Fink to install gnucash, which didn't work, then gnucash2 (after enabling unstable), which didn't work. To make sure I didn't screw something up too terribly, I wiped out /sw, installed fink from scratch, and tried it again. Still no dice. Here's what I did: 1. installed fink 2. reinstalled X11.pkg and X11sdk.pkg from the Tiger install disc (after fink tried to tell me it wanted to install xfree86) 3. fink selfupdate 4. fink index 5. fink update-all 6. sudo apt-get install gettext=0.10.40-25 (following fink's recommendation after 'update-all' failed) 7. fink update-all 8. fink install gnucash 9. launch X11 10. export DISPLAY=:0 After that, running gnucash yields a bus error. It loads the splash screen and then pops up two small windows entitled Tip of the Day and Welcome to GnuCash. However, before the windows get any content, the whole thing crashes with a bus error. fink --version yields: Package manager version: 0.27.6 Distribution version: 0.8.1.rsync i386 gcc --version yields: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) I'm running Mac OS X 10.4.10 on a MacBook with a 2GHz Intel Core 2 Duo. I installed and ran gnucash on my old PPC iMac with no problems, and sadly got quite dependent on it, so I'm anxious to get this resolved. Has anyone recently (and successfully) installed GnuCash on an Intel Mac? Again, I don't care which version I install or how to do, so long as it works. I've tried gnucash and gnucash2 from fink; I've tried installing the latest GnuCash 2 from source. No dice. Thanks, Mike P.S. here's the output of gnucash --debug: gnucash: [D] files to open: () gnucash: [D] starting up (2). gnucash: [D] gnc:find-file looking for finance-quote-check in (/sw/share/gnucash) gnucash: [D] checking for /sw/share/gnucash/finance-quote-check gnucash: [D] found file /sw/share/gnucash/finance-quote-check gnucash: [D] gnc:find-file looking for finance-quote-helper in (/sw/share/gnucash) gnucash: [D] checking for /sw/share/gnucash/finance-quote-helper gnucash: [D] found file /sw/share/gnucash/finance-quote-helper gnucash: [D] loading system configuration gnucash: [D] gnc:find-file looking for config in (/sw/etc/ gnucash) gnucash: [D] checking for /sw/etc/gnucash/config gnucash: [D] found file /sw/etc/gnucash/config gnucash: [D] loading user configuration gnucash: [D] trying to load /Users/mike/.gnucash/config-1.8.user gnucash: [D] trying to load /Users/mike/.gnucash/config-1.6.user gnucash: [D] trying to load /Users/mike/.gnucash/config.user gnucash: [D] trying to load /Users/mike/.gnucash/config-1.8.auto gnucash: [D] trying to load /Users/mike/.gnucash/config-1.6.auto gnucash: [D] trying to load /Users/mike/.gnucash/config.auto gnucash: [D] loading saved reports gnucash: [D] trying to load /Users/mike/.gnucash/saved-reports-1.8 gnucash: [D] Running functions on hook report-hook #procedure business-report-function () gnucash: [D] Running functions on hook startup-hook #procedure #f () gnucash: [D] Running functions on hook ui-startup-hook #procedure gnc:extensions-menu-setup () gnucash: [D] Running functions on hook add-extension-hook #procedure add-business-test () #procedure add-log-replay-menu-item () #procedure add-business-items () #procedure gnc:main-window-ui-startup-handler () #procedure gnc:tip-of-the-day-startup-func () Bus error - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] GnuCash on Intel Mac causes bus error on start-up
On 24 Aug 2007, at 6:22:37 PM, Mike Burrell wrote: I'm desperately trying to get GnuCash installed and working. I don't really care how or which version. I tried using Fink to install gnucash, which didn't work, then gnucash2 (after enabling unstable), which didn't work. To make sure I didn't screw something up too terribly, I wiped out /sw, installed fink from scratch, and tried it again. Still no dice. Here's what I did: 1. installed fink 2. reinstalled X11.pkg and X11sdk.pkg from the Tiger install disc (after fink tried to tell me it wanted to install xfree86) 3. fink selfupdate 4. fink index 5. fink update-all 6. sudo apt-get install gettext=0.10.40-25 (following fink's recommendation after 'update-all' failed) 7. fink update-all 8. fink install gnucash I'm not really sure gnucash 1.8.x works on intel macs. At this step I suggest 'fink install gnucash2' I have run gnucash2-2.2.0 on a macbook pro, so it can work. (But I'm the maintainer of the 2.x series, so my vote only counts for 1/2) 9. launch X11 10. export DISPLAY=:0 After that, running gnucash yields a bus error. It loads the splash screen and then pops up two small windows entitled Tip of the Day and Welcome to GnuCash. However, before the windows get any content, the whole thing crashes with a bus error. fink --version yields: Package manager version: 0.27.6 Distribution version: 0.8.1.rsync i386 gcc --version yields: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) I'm running Mac OS X 10.4.10 on a MacBook with a 2GHz Intel Core 2 Duo. I installed and ran gnucash on my old PPC iMac with no problems, and sadly got quite dependent on it, so I'm anxious to get this resolved. Has anyone recently (and successfully) installed GnuCash on an Intel Mac? Again, I don't care which version I install or how to do, so long as it works. I've tried gnucash and gnucash2 from fink; I've tried installing the latest GnuCash 2 from source. No dice. Thanks, Mike P.S. here's the output of gnucash --debug: gnucash: [D] files to open: () gnucash: [D] starting up (2). gnucash: [D] gnc:find-file looking for finance-quote-check in (/sw/share/gnucash) gnucash: [D] checking for /sw/share/gnucash/finance-quote-check gnucash: [D] found file /sw/share/gnucash/finance-quote-check gnucash: [D] gnc:find-file looking for finance-quote-helper in (/sw/share/gnucash) gnucash: [D] checking for /sw/share/gnucash/finance-quote-helper gnucash: [D] found file /sw/share/gnucash/finance-quote-helper gnucash: [D] loading system configuration gnucash: [D] gnc:find-file looking for config in (/sw/etc/ gnucash) gnucash: [D] checking for /sw/etc/gnucash/config gnucash: [D] found file /sw/etc/gnucash/config gnucash: [D] loading user configuration gnucash: [D] trying to load /Users/mike/.gnucash/config-1.8.user gnucash: [D] trying to load /Users/mike/.gnucash/config-1.6.user gnucash: [D] trying to load /Users/mike/.gnucash/config.user gnucash: [D] trying to load /Users/mike/.gnucash/config-1.8.auto gnucash: [D] trying to load /Users/mike/.gnucash/config-1.6.auto gnucash: [D] trying to load /Users/mike/.gnucash/config.auto gnucash: [D] loading saved reports gnucash: [D] trying to load /Users/mike/.gnucash/saved-reports-1.8 gnucash: [D] Running functions on hook report-hook #procedure business-report-function () gnucash: [D] Running functions on hook startup-hook #procedure #f () gnucash: [D] Running functions on hook ui-startup-hook #procedure gnc:extensions-menu-setup () gnucash: [D] Running functions on hook add-extension-hook #procedure add-business-test () #procedure add-log-replay-menu-item () #procedure add-business-items () #procedure gnc:main-window-ui-startup-handler () #procedure gnc:tip-of-the-day-startup-func () Bus error You may need to make sure any of the files created when you tried building gnucash from source are deleted (or at least not in your Path). Building gnucash 2.2 or more recent requires swig, an extra guile incantation, and a few other things, so unless you really get in a bind, that probably isn't the way to go. Dave -- David Reiser [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] GnuCash on Intel Mac causes bus error on start-up
On 24 Aug 2007, at 8:54:47 PM, David Reiser wrote: [big snip] You may need to make sure any of the files created when you tried building gnucash from source are deleted (or at least not in your Path). Building gnucash 2.2 or more recent requires swig, an extra guile incantation, and a few other things, so unless you really get in a bind, that probably isn't the way to go. drat. That should say something like building gnucash 2.2... _from source outside fink_ requires... Dave -- David Reiser [EMAIL PROTECTED] -- David Reiser [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users