Re: How to install modules in Pike? I'd like to do GTK2 in Pike, but the module is not installed

Kenneth Wolcott <[email protected]> Wed, 23 Aug 2023 21:34:57 -0700
Newsgroups gmane.comp.lang.pike.user
Message-ID <CADex0xwz1_jCJU00cftM-+xMvkVZygk5sW-FN_F=yR4obbMMtg@mail.gmail.com>
Hi Bill;

  Thanks for your response.

  It looks like I'm in a crippled state :-(

  I am unable to build from source because I can't seem to get the
correct and functional version of the autoconf family installed (I'm
on a Mac, M1 chip and using MacPorts).

  The version of pike on MacPorts fails to build (supposedly
unofficially unsupported on MacPorts for 15 years??!!)

  I was able to download and install the Pike binary
(Pike-v8.0.1738-MacOSX-12.0-arm64 from
https://pike.lysator.liu.se/download/pub/pike/latest-stable/), install
it and use it, but it looks like all I have is a binary.

  So it looks like all I can have is a Pike binary with the modules
that come with the binary, no ability to build or import additional
packages (as far as I can tell).

  I have lots of pertinent MacPorts ports (packages) installed, such
as gtk2 and gtk3...

  Anyway, the most important thing for me right now is to enjoy the
builtin big integer support and the fact that Pike is interpreted (no
edit/build/run cycle) and test out some things that is harder to do in
C.  I'm coming from a Perl background (retired software build
engineer) and am exploring things now that I never had time to do
before.  I really liked Ada when I was in college, so I'm re-learning
it and intending to master it,  I'm learning a lot from the Rosetta
Code web site.  I'm also fiddling around with Pike, Wren, Lua, Go, D,
Ruby and Rust.

Thanks,
Ken



On Wed, Aug 23, 2023 at 7:12=E2=80=AFPM William Welliver <william@welliver.=
org> wrote:
>
> Hi Ken,
>
> If you=E2=80=99ve installed pike from a package, there will usually be a =
set of additional packages for modules that have extra dependencies, like g=
tk and various databases. You can use your package manager to explore and i=
nstall those =E2=80=9Cadd on=E2=80=9D packages.
>
> If you=E2=80=99ve installed pike by compiling from source, then chances a=
re you didn=E2=80=99t have a necessary dependency installed when you did th=
e build. The easiest way to get just the module you want compiled and insta=
lled is to do this:
>
> $ cd src/post_modules/GTK2
> $ pike -x module
> $ sudo pike -x module install
>
> I=E2=80=99m remembering the path from memory so you might need to adjust =
that. Also, you should inspect the output of the configure step during the =
module build to make sure it found the needed components.
>
> Hope this helps! Don=E2=80=99t hesitate to reply back if you have any add=
itional questions or problems.
>
> Bill
>
> > On Aug 23, 2023, at 8:03 PM, Kenneth Wolcott <[email protected]>=
 wrote:
> >
> > =EF=BB=BFHi!
> >
> > Brand-new noob here.
> >
> > How to install modules in Pike?  I'd like to do GTK2 in Pike, but the
> > module is not installed
> >
> > I read the beginner guide and a great deal of the main manual.
> >
> > The hello.pike example won't execute because I don't have the GTK
> > module installed.
> >
> > I have not yet seen any instructions on how to add a Pike module that
> > was not installed as a part of Pike.
> >
> > Thanks,
> > Ken Wolcott
> >
>