Oh, my mistake: I thought jpkg was an executable for managing J packages.

Why use the jpkg verb when the install verb does the same thing?

Cheers,

Andrew Pennebaker
www.yellosoft.us

On Sun, Nov 6, 2011 at 6:59 PM, Kip Murray <k...@math.uh.edu> wrote:

> I'm coming in late, so may be missing what Andrew's question is.  There
> is no binary for jpkg -- it is a verb defined in the script
>
> ~system/util/pacman.ijs
>
> On my Windows 7 32-bit system that translates to
>
> c:/users/kip murray/j701/system/util/pacman.ijs
>
> Below are the verb jpkg and its cover jpkg_z_ , copied from the above
> script.  More important than the verbs themselves may be the question,
> how did I find them?  The answer is, I knew from examples in
>
> http://www.jsoftware.com/jwiki/JAL/Package%20Manager/jpkg/
>
> that the first step for using jpkg in the J console is to do
>
> load 'pacman'
>
> That told me to look in noun Public_j_ (just type its name) to see the
> file name for pacman (which I give above).  (I can never remember the
> spelling of Public_j_ so I used names_j_'' to find the spelling.) Then
> look through script pacman.ijs to find the two verbs.  For what it's
> worth here are the two verbs.
>
> jpkg=: 4 : 0
>   select. x
>   case. 'history';'manifest' do.
>     x showfiles_console y
>   case. 'install' do.
>     install_console y
>   case. 'reinstall' do.
>     remove_console y
>     install_console y
>   case. 'remove' do.
>     remove_console y
>   case. ;:'show search showinstalled shownotinstalled showupgrade
> status' do.
>     x show_console y
>   case. 'update'  do.
>     updatejal ''
>   case. 'upgrade' do.
>     upgrade_console y
>   case. do.
>     msg=. 'Valid options are:',LF
>     msg=. msg,'  history, install, manifest, remove, reinstall, show,
> search,',LF
>     msg=. msg,'  showinstalled, shownotinstalled, showupgrade, status,',LF
>     msg,'  update, upgrade'
>   end.
> )
> jpkg_z_=: 3 : 0
>   'help' jpkg y
>   :
>   a=. conew 'jpacman'
>   res=. x jpkg__a y
>   destroy__a''
>   res
> )
>
>
> On 11/6/2011 4:43 PM, Björn Helgason wrote:
> > While the package manager is active you will find the jpkg verb active in
> > the z locale
> >
> > 2011/11/6 Andrew Pennebaker<andrew.penneba...@gmail.com>
> >
> >> jpgk may be installed by default, but the binary isn't added to PATH,
> and I
> >> can't find where the jpkg binary is, in any case.
> >>
> >> Cheers,
> >>
> >> Andrew Pennebaker
> >> www.yellosoft.us
> >>
> >> On Sat, Nov 5, 2011 at 6:30 PM, Ric Sherlock<tikk...@gmail.com>  wrote:
> >>
> >>> On Sun, Nov 6, 2011 at 8:21 AM, Ric Sherlock<tikk...@gmail.com>
>  wrote:
> >>>> On Sun, Nov 6, 2011 at 7:20 AM, Andrew Pennebaker
> >>>> <andrew.penneba...@gmail.com>  wrote:
> >>>> \>  I tried using the J GUI to install the base library, but by
> default,
> >>> gtkide
> >>>>> isn't installed. It says to install 'gtkide', so that's what I did.
> >>>>
> >>>> You can also use the GUI in the JHS interface to install addons (i.e.
> >>>> it is not necessary to install GTK to use a GUI). I'd encourage you to
> >>>> update the Wiki where you believe clarification is needed.
> >>>>
> >>>
> >>> I've made some changes to the following pages on the wiki, would they
> >>> have clarified things for you or is something still unclear?
> >>>
> >>> http://www.jsoftware.com/jwiki/JAL/Package%20Manager
> >>> http://www.jsoftware.com/jwiki/JAL/User%20Guide
> >>> ----------------------------------------------------------------------
> >>> For information about J forums see http://www.jsoftware.com/forums.htm
> >>>
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> >
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to