Search code examples
lispcommon-lispasdf

asdf-installing libraries from the command-line


Coming from a Perl background, I have to say I prefer cpan Foo::Bar to the having to start sbcl, (require :asdf-install) and finally (asdf-install:install :foo-bar). Is there anything more convenient than this around?


Solution

  • There is clbuild:

    http://common-lisp.net/project/clbuild/
    

    But I add this to my .bashrc:

    function asdf_install {
        sbcl --eval "(asdf:operate 'asdf:load-op :asdf-install)" --eval "(asdf-install:install :$1)" --eval "(quit)"
    }
    
    function asdf_oos {
        rlwrap sbcl --eval "(asdf:operate 'asdf:$2 :$1)"
    }