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

2023-08-23 Thread Kenneth Wolcott
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 PM William Welliver  wrote:
>
> Hi Ken,
>
> If you’ve installed pike from a package, there will usually be a set of 
> additional packages for modules that have extra dependencies, like gtk and 
> various databases. You can use your package manager to explore and install 
> those “add on” packages.
>
> If you’ve installed pike by compiling from source, then chances are you 
> didn’t have a necessary dependency installed when you did the build. The 
> easiest way to get just the module you want compiled and installed is to do 
> this:
>
> $ cd src/post_modules/GTK2
> $ pike -x module
> $ sudo pike -x module install
>
> I’m 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’t hesitate to reply back if you have any additional 
> questions or problems.
>
> Bill
>
> > On Aug 23, 2023, at 8:03 PM, Kenneth Wolcott  
> > wrote:
> >
> > Hi!
> >
> > 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
> >
>



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

2023-08-23 Thread Kenneth Wolcott
Hi!

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