From pat at nklein.com Wed Dec 30 23:21:11 2009 From: pat at nklein.com (Patrick Stein) Date: Wed, 30 Dec 2009 17:21:11 -0600 Subject: [lispy-devel] Question about installing... Message-ID: I'm not sure this is at all the right forum, but I couldn't find a FAQ and didn't see a help address. I am trying to get Lispy up and running on my Mac. For the most part, it's a dream, but I am having trouble getting some packages installed when Lispy depends on them. For example, look at the following output where I get the Lispy runtime ready and try to ASDF load the OSICAT module which I cannot find. Then, I ASDF load Lispy to try to install OSICAT, but Lispy says it is already installed because it loaded its own version from within the Lispy-0.5/osicat-0.6.0/ directory. Any suggestions? Do I have to sneak in and blow away ASDF's or Lispy's internal idea of what is already installed? or should the OSICAT appear in Lispy's asdf-config.lisp? Thanks, Patrick =================================================== % sbcl --noinform --no-userinit * (require :asdf) ("ASDF") * (load #P"/usr/local/lispy/latest/asdf-config.lisp") T * (require :asdf-binary-locations) NIL * (asdf:oos 'asdf:load-op 'osicat) debugger invoked on a ASDF:MISSING-COMPONENT: component "osicat" not found Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level. (ASDF:FIND-SYSTEM OSICAT T) 0] 0 * (asdf:oos 'asdf:load-op 'lispy :verbose nil) ; ; lots of warnings about implicitly creating new generics like URI-PARSED-PATH and TRANSFORM-OCTET ; WARNING: Lispy configuration not found at /Users/pat/.lispy.lisp 2009-12-30 17:16:53 "Initializing Lispy system on SBCL 1.0.30" 2009-12-30 17:16:53 "Fetching http://common-lisp.net/project/lispy/repository/map.lisp-expr" 2009-12-30 17:16:53 "Fetching http://common-lisp.net/project/lispy/repository/map.lisp-expr.asc" gpg: Signature made Fri Dec 25 12:19:20 2009 CST using DSA key ID 7CF49723 gpg: Good signature from "Matthew Kennedy " gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 1588 AC51 9123 3423 7556 6F67 6912 4FB8 7CF4 9723 2009-12-30 17:16:54 "GPG validation success http://common-lisp.net/project/lispy/repository/map.lisp-expr" 2009-12-30 17:16:54 "Reading /usr/local/lispy/lispy-all-0.5/lispy-0.5/maps/map.lisp-expr" 2009-12-30 17:16:54 "Maps contain contains 101 entries" 2009-12-30 17:16:54 "Reading /usr/local/lispy/lispy-all-0.5/lispy-0.5/installation.lisp-expr" 2009-12-30 17:16:54 "Installation contains 23 entries" 2009-12-30 17:16:54 "Writing /usr/local/lispy/lispy-all-0.5/lispy-0.5/asdf-config.lisp" 2009-12-30 17:16:54 "Loading /usr/local/lispy/lispy-all-0.5/lispy-0.5/asdf-config.lisp" NIL * (lispy:install (lispy:module-by-name :osicat)) 2009-12-30 17:19:11 "Installing OSICAT" 2009-12-30 17:19:11 "Already installed OSICAT 0.6.0." NIL =================================================== From mkennedy at common-lisp.net Thu Dec 31 05:03:07 2009 From: mkennedy at common-lisp.net (Matthew Kennedy) Date: Wed, 30 Dec 2009 23:03:07 -0600 Subject: [lispy-devel] Question about installing... In-Reply-To: <9c1134b50912302100r61ac8c4fh59bc87f93cb90a00@mail.gmail.com> References: <9c1134b50912302100r61ac8c4fh59bc87f93cb90a00@mail.gmail.com> Message-ID: <9c1134b50912302103g91d2f4bqcc6e1a74696433bb@mail.gmail.com> (resend to list) On Wed, Dec 30, 2009 at 11:00 PM, Matthew Kennedy wrote: > Hi Patrick, Some questions in order to help better: > > Could you post the Lispy asdf-config.lisp and installation.lisp-expr > you have as well as a directory listing (ls -l /usr/local/lispy/)? > > Are those files writeable by the user your run SBCL under? ?A system > wide installation (like using /usr/local) is not something Lispy was > designed explicitly for. ?I'm pretty sure it would not work unless it > is writeable. > > What happens if you try it all without using asdf-binary-locations? > That's one configuration I've never tried with Lispy/osicat -- perhaps > it interferes. > > Matt > > On Wed, Dec 30, 2009 at 5:21 PM, Patrick Stein wrote: >> I'm not sure this is at all the right forum, but I couldn't find a FAQ >> and didn't see a help address. >> >> I am trying to get Lispy up and running on my Mac. ?For the most part, >> it's a dream, but I am having trouble getting some packages installed >> when Lispy depends on them. >> >> For example, look at the following output where I get the Lispy >> runtime ready and try to ASDF load the OSICAT module which I cannot >> find. >> Then, I ASDF load Lispy to try to install OSICAT, but Lispy says it is >> already installed because it loaded its own version from within the >> Lispy-0.5/osicat-0.6.0/ directory. >> >> Any suggestions? ?Do I have to sneak in and blow away ASDF's or >> Lispy's internal idea of what is already installed? or should the >> OSICAT appear in Lispy's asdf-config.lisp? >> >> Thanks, >> Patrick >> >> =================================================== >> % sbcl --noinform --no-userinit >> * (require :asdf) >> >> ("ASDF") >> * (load #P"/usr/local/lispy/latest/asdf-config.lisp") >> >> T >> * (require :asdf-binary-locations) >> >> NIL >> * (asdf:oos 'asdf:load-op 'osicat) >> >> debugger invoked on a ASDF:MISSING-COMPONENT: component "osicat" not found >> >> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. >> >> restarts (invokable by number or by possibly-abbreviated name): >> ?0: [ABORT] Exit debugger, returning to top level. >> >> (ASDF:FIND-SYSTEM OSICAT T) >> 0] 0 >> >> * (asdf:oos 'asdf:load-op 'lispy :verbose nil) >> ; >> ; lots of warnings about implicitly creating new generics like >> URI-PARSED-PATH and TRANSFORM-OCTET >> ; >> WARNING: Lispy configuration not found at /Users/pat/.lispy.lisp >> 2009-12-30 17:16:53 "Initializing Lispy system on SBCL 1.0.30" >> 2009-12-30 17:16:53 "Fetching >> http://common-lisp.net/project/lispy/repository/map.lisp-expr" >> 2009-12-30 17:16:53 "Fetching >> http://common-lisp.net/project/lispy/repository/map.lisp-expr.asc" >> gpg: Signature made Fri Dec 25 12:19:20 2009 CST using DSA key ID 7CF49723 >> gpg: Good signature from "Matthew Kennedy " >> gpg: WARNING: This key is not certified with a trusted signature! >> gpg: ? ? ? ? ?There is no indication that the signature belongs to the owner. >> Primary key fingerprint: 1588 AC51 9123 3423 7556 ?6F67 6912 4FB8 7CF4 9723 >> 2009-12-30 17:16:54 "GPG validation success >> http://common-lisp.net/project/lispy/repository/map.lisp-expr" >> 2009-12-30 17:16:54 "Reading >> /usr/local/lispy/lispy-all-0.5/lispy-0.5/maps/map.lisp-expr" >> 2009-12-30 17:16:54 "Maps contain contains 101 entries" >> 2009-12-30 17:16:54 "Reading >> /usr/local/lispy/lispy-all-0.5/lispy-0.5/installation.lisp-expr" >> 2009-12-30 17:16:54 "Installation contains 23 entries" >> 2009-12-30 17:16:54 "Writing >> /usr/local/lispy/lispy-all-0.5/lispy-0.5/asdf-config.lisp" >> 2009-12-30 17:16:54 "Loading >> /usr/local/lispy/lispy-all-0.5/lispy-0.5/asdf-config.lisp" >> NIL >> * (lispy:install (lispy:module-by-name :osicat)) >> 2009-12-30 17:19:11 "Installing OSICAT" >> 2009-12-30 17:19:11 "Already installed OSICAT 0.6.0." >> >> NIL >> =================================================== >> >> _______________________________________________ >> lispy-devel mailing list >> lispy-devel at common-lisp.net >> http://common-lisp.net/cgi-bin/mailman/listinfo/lispy-devel >> > From pat at nklein.com Thu Dec 31 15:29:38 2009 From: pat at nklein.com (Patrick Stein) Date: Thu, 31 Dec 2009 09:29:38 -0600 Subject: [lispy-devel] Question about installing... In-Reply-To: References: <9c1134b50912302100r61ac8c4fh59bc87f93cb90a00@mail.gmail.com> Message-ID: Alright, starting from a blank slate (freshly untarred and --no-userinit on SBCL), I do the following: ====================================== * (require :asdf) ("ASDF") * (load #P"/usr/local/lispy/lispy-all-0.5/asdf-config.lisp") T * (asdf:oos 'asdf:load-op 'lispy) ... ... much spew of compiling packages ... 2009-12-31 09:20:41 "Initializing Lispy system on SBCL 1.0.30" 2009-12-31 09:20:41 "Fetching http://common-lisp.net/project/lispy/repository/map.lisp-expr" 2009-12-31 09:20:42 "Fetching http://common-lisp.net/project/lispy/repository/map.lisp-expr.asc" gpg: Signature made Fri Dec 25 12:19:20 2009 CST using DSA key ID 7CF49723 gpg: Good signature from "Matthew Kennedy " gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 1588 AC51 9123 3423 7556 6F67 6912 4FB8 7CF4 9723 2009-12-31 09:20:43 "GPG validation success http://common-lisp.net/project/lispy/repository/map.lisp-expr" 2009-12-31 09:20:43 "Reading /usr/local/lispy/lispy-all-0.5/maps/map.lisp-expr" 2009-12-31 09:20:43 "Maps contain contains 101 entries" 2009-12-31 09:20:43 "Reading /usr/local/lispy/lispy-all-0.5/installation.lisp-expr" 2009-12-31 09:20:43 "Installation contains 24 entries" 2009-12-31 09:20:43 "Writing /usr/local/lispy/lispy-all-0.5/asdf-config.lisp" 2009-12-31 09:20:43 "Loading /usr/local/lispy/lispy-all-0.5/asdf-config.lisp" ... ... some warnings about LOG5 ... NIL ====================================== At this point, this is exactly what I was expecting: 2009-12-31 09:20:43 "Writing /usr/local/lispy/lispy-all-0.5/asdf-config.lisp" Now, I try to install OSICAT. ====================================== * (lispy:install (lispy:module-by-name :osicat)) 2009-12-31 09:22:54 "Installing OSICAT" ... 2009-12-31 09:22:55 "Writing /usr/local/lispy/lispy-all-0.5/asdf-config.lisp" ====================================== Hmm... still what I was expecting. Interesting. So, it does seem like asdf-binary-locations may be throwing it off into installing things into the lispy-all-0.5/lispy-0.5/ directory instead. Because, with asdf-binary-locations, my lispy *load-truename* is probably not /usr/local/lispy/lispy-all-0.5/lispy-0.5/specials.fasl, but probably instead /usr/local/lispy/lispy-all-0.5/lispy-0.5/sbcl-1.0.30-darwin-x86/specials.fasl Hmmm.... ttyl, Patrick From pat at nklein.com Thu Dec 31 14:51:54 2009 From: pat at nklein.com (Patrick Stein) Date: Thu, 31 Dec 2009 08:51:54 -0600 Subject: [lispy-devel] Question about installing... In-Reply-To: <9c1134b50912302100r61ac8c4fh59bc87f93cb90a00@mail.gmail.com> References: <9c1134b50912302100r61ac8c4fh59bc87f93cb90a00@mail.gmail.com> Message-ID: On Wed, Dec 30, 2009 at 11:00 PM, Matthew Kennedy wrote: > Could you post the Lispy asdf-config.lisp and installation.lisp-expr > you have as well as a directory listing (ls -l /usr/local/lispy/)? ================================================= (LET ((ROOT (MAKE-PATHNAME :DIRECTORY (PATHNAME-DIRECTORY *LOAD-TRUENAME*)))) (DOLIST (PATH '(#P"asdf-binary-locations/" #P"cl-unicode-0.1.1/" #P"cl-ppcre-2.0.1/" #P"lispy-gpgme/" #P"trivial-shell/" #P"log5/" #P"cl-fad-0.6.2/" #P"ironclad_0.27/" #P"archive_0.7.0/" #P"salza-0.7.4/" #P"gzip-stream_0.1/" #P"flexi-streams-1.0.7/" #P"alexandria-2009-08-13/" #P"trivial-features_0.5/" #P"babel_0.3.0/" #P"cffi_0.10.5/" #P"cl+ssl-2008-11-04/" #P"split-sequence-2002-04-10/" #P"usocket-0.4.1/" #P"trivial-gray-streams-2008-11-02/" #P"chunga-1.1.0/" #P"puri-1.5.1/" #P"cl-base64-3.3.3/" #P"drakma-1.0.0/" #P"lispy-0.5/")) (PUSHNEW (MERGE-PATHNAMES PATH ROOT) ASDF:*CENTRAL-REGISTRY* :TEST 'EQUAL))) ================================================= total 112 drwxr-xr-x@ 44 pat wheel 1496 Dec 30 16:54 alexandria-2009-08-13 drwxr-xr-x@ 17 pat wheel 578 Dec 30 16:47 archive_0.7.0 drwxr-xr-x@ 3 pat wheel 102 Jun 23 2007 asdf-1.108 drwxr-xr-x 11 pat wheel 374 Dec 30 16:46 asdf-binary-locations -rw-r--r--@ 1 pat wheel 784 Dec 30 16:46 asdf-config.lisp -rw-r--r--@ 1 pat wheel 46777 Dec 23 14:53 asdf.lisp drwxr-xr-x@ 13 pat wheel 442 Jul 28 2008 babel_0.3.0 drwxr-xr-x@ 19 pat wheel 646 Jun 16 2009 cffi_0.10.5 drwxr-xr-x@ 15 pat wheel 510 Dec 30 16:47 chunga-1.1.0 drwxr-xr-x@ 20 pat wheel 680 Dec 30 16:47 cl+ssl-2008-11-04 drwxr-xr-x@ 9 pat wheel 306 Dec 30 16:47 cl-base64-3.3.3 drwxr-xr-x@ 14 pat wheel 476 Dec 30 16:47 cl-fad-0.6.2 drwxr-xr-x@ 43 pat wheel 1462 Dec 30 16:54 cl-ppcre-2.0.1 drwxr-xr-x@ 16 pat wheel 544 Dec 23 14:57 cl-unicode-0.1.1 drwxr-xr-x@ 3 pat wheel 102 Dec 30 16:46 distfiles drwxr-xr-x@ 13 pat wheel 442 Dec 30 16:47 drakma-1.0.0 drwxr-xr-x@ 27 pat wheel 918 Dec 30 16:47 flexi-streams-1.0.7 drwxr-x---@ 11 pat wheel 374 Dec 30 16:47 gzip-stream_0.1 -rw-r--r--@ 1 pat wheel 2910 Dec 30 16:46 installation.lisp-expr drwxr-xr-x@ 57 pat wheel 1938 Dec 30 16:47 ironclad_0.27 drwxr-xr-x@ 42 pat wheel 1428 Dec 30 16:52 lispy-0.5 drwxr-xr-x@ 15 pat wheel 510 Apr 10 2008 lispy-gpgme drwxr-xr-x@ 9 pat wheel 306 Dec 22 2007 log5 drwxr-xr-x@ 4 pat wheel 136 Dec 23 14:57 maps drwxr-xr-x@ 9 pat wheel 306 Dec 30 16:47 puri-1.5.1 drwxr-xr-x@ 17 pat wheel 578 Dec 30 16:47 salza-0.7.4 drwxr-xr-x@ 6 pat wheel 204 Dec 30 16:47 split-sequence-2002-04-10 drwxr-xr-x@ 10 pat wheel 340 Jun 14 2009 trivial-features_0.5 drwxr-xr-x@ 10 pat wheel 340 Dec 30 16:47 trivial-gray-streams-2008-11-02 drwxr-xr-x@ 11 pat wheel 374 Sep 1 2008 trivial-shell drwxr-xr-x@ 16 pat wheel 544 Dec 30 16:47 usocket-0.4.1 ================================================= > Are those files writeable by the user your run SBCL under? ?A system > wide installation (like using /usr/local) is not something Lispy was > designed explicitly for. ?I'm pretty sure it would not work unless it > is writeable. I understand that neither ASDF nor Lispy are particularly intended for system-wide installation (at least without asdf-binary-locations). But, I am the only user on my machine and I own /usr/local/lispy/. > What happens if you try it all without using asdf-binary-locations? The problem is the same. Before I load Lispy, I do not have OSICAT in my ASDF path. After I load Lispy, I already have OSICAT loaded so I cannot install it. Actually, I just untarred Lispy again to look around. Here is an untouched lispy-all-0.5/lispy-0.5 directory: ================================================= total 152 -rw-r--r--@ 1 pat staff 17992 Dec 23 14:58 COPYING -rw-r--r--@ 1 pat staff 284 Dec 23 14:58 README -rw-r--r--@ 1 pat staff 1014 Dec 23 14:58 TODO -rwxr-xr-x@ 1 pat staff 2318 Dec 23 14:58 bootstrap.sh -rw-r--r--@ 1 pat staff 1360 Dec 23 14:58 lispy.asd -rw-r--r--@ 1 pat staff 17483 Dec 23 14:58 lispy.lisp -rw-r--r--@ 1 pat staff 853 Dec 23 14:58 logging.lisp -rw-r--r--@ 1 pat staff 1141 Dec 23 14:58 packages.lisp -rw-r--r--@ 1 pat staff 1224 Dec 23 14:58 specials.lisp -rw-r--r--@ 1 pat staff 2591 Dec 23 14:58 utils.lisp -rw-r--r--@ 1 pat staff 2647 Dec 23 14:58 verify.lisp ================================================= and, here is my /usr/local/lispy/lispy-all-0.5/lispy-0.5/ directory: ================================================= total 168 -rw-r--r--@ 1 pat wheel 17992 Dec 23 14:58 COPYING -rw-r--r--@ 1 pat wheel 284 Dec 23 14:58 README -rw-r--r--@ 1 pat wheel 1014 Dec 23 14:58 TODO drwxr-xr-x 26 pat wheel 884 Dec 30 16:38 alexandria-2009-08-13 drwxr-xr-x 3 pat wheel 102 Dec 30 16:37 asdf-1.108 drwxr-xr-x 11 pat wheel 374 Dec 30 16:37 asdf-binary-locations -rw-r--r-- 1 pat wheel 721 Dec 30 17:16 asdf-config.lisp drwxr-xr-x 13 pat wheel 442 Dec 30 16:38 babel_0.3.0 -rwxr-xr-x@ 1 pat wheel 2318 Dec 23 14:58 bootstrap.sh drwxr-xr-x 7 pat wheel 238 Dec 30 16:38 bordeaux-threads_0.6.0 drwxr-xr-x 29 pat wheel 986 Dec 30 16:39 cells_2.0 drwxr-xr-x 19 pat wheel 646 Dec 30 16:39 cffi_0.10.5 drwxr-xr-x 13 pat wheel 442 Dec 30 16:39 cl-fad-0.6.2 drwxr-xr-x 25 pat wheel 850 Dec 30 16:40 cl-ppcre-2.0.1 drwxr-xr-x 16 pat wheel 544 Dec 30 16:40 cl-unicode-0.1.1 drwxr-xr-x 8 pat wheel 272 Dec 30 16:41 cl-who-0.11.1 drwxr-xr-x 15 pat wheel 510 Dec 30 16:41 closer-mop_0.55 drwxr-xr-x 25 pat wheel 850 Dec 30 16:52 distfiles drwxr-xr-x 26 pat wheel 884 Dec 30 16:41 flexi-streams-1.0.7 -rw-r--r-- 1 pat wheel 2638 Dec 30 16:52 installation.lisp-expr drwxr-xr-x 56 pat wheel 1904 Dec 30 16:49 ironclad_0.27 drwxr-xr-x 10 pat wheel 340 Dec 30 16:49 iterate-1.4.3 -rw-r--r--@ 1 pat wheel 1360 Dec 23 14:58 lispy.asd -rw-r--r--@ 1 pat wheel 17483 Dec 23 14:58 lispy.lisp -rw-r--r--@ 1 pat wheel 853 Dec 23 14:58 logging.lisp drwxr-xr-x 4 pat wheel 136 Dec 30 16:33 maps drwxr-xr-x 15 pat wheel 510 Dec 30 16:50 osicat_0.6.0 -rw-r--r--@ 1 pat wheel 1141 Dec 23 14:58 packages.lisp drwxr-xr-x 8 pat wheel 272 Dec 30 16:50 puri-1.5.1 drwxr-xr-x 7 pat wheel 238 Dec 30 16:50 s-xml drwxr-xr-x 16 pat wheel 544 Dec 30 16:50 salza-0.7.4 drwxr-xr-x 8 pat wheel 272 Dec 30 16:48 sbcl-1.0.30-darwin-x86 -rw-r--r--@ 1 pat wheel 1224 Dec 23 14:58 specials.lisp drwxr-xr-x 10 pat wheel 340 Dec 30 16:38 trivial-features_0.5 drwxr-xr-x 9 pat wheel 306 Dec 30 16:41 trivial-gray-streams-2008-11-02 drwxr-xr-x 18 pat wheel 612 Dec 30 16:52 uffi-1.6.2 -rw-r--r--@ 1 pat wheel 2591 Dec 23 14:58 utils.lisp -rw-r--r--@ 1 pat wheel 2647 Dec 23 14:58 verify.lisp drwxr-xr-x 9 pat wheel 306 Dec 30 16:52 xmls-1.2 ================================================= So, I've managed to somehow get some stuff installed at the same level as Lispy-0.5 and some stuff installed within the Lispy-0.5/ directory. Erf. Maybe I should try starting over here. But, where are these things supposed to end up? In lispy-all-0.5/ or in lispy-all-0.5/lispy-0.5/ ? More on that later, Patrick From pat at nklein.com Thu Dec 31 17:00:38 2009 From: pat at nklein.com (Patrick Stein) Date: Thu, 31 Dec 2009 11:00:38 -0600 Subject: [lispy-devel] Question about installing... In-Reply-To: References: <9c1134b50912302100r61ac8c4fh59bc87f93cb90a00@mail.gmail.com> Message-ID: I'd suggest something like this in Lispy-0.5/specials.lisp: (defun find-lispy () #+asdf (asdf:component-pathname (asdf:find-system 'lispy nil)) #-asdf (parse-namestring *load-truename*)) Then, using (find-lispy) in place of (parse-namestring *load-truename*) in the defvar of *lispy-pathname*. This gets around the fact that asdf-binary-locations may completely disassociate the install directory from the place where the compiled files get loaded from. This works for me with both SBCL and Clozure (ccl) on MacOSX. ttyl, Patrick