Discussion:
[Simh] simh OS X missing dependencies with brew packages
Mark Pizzolato
2018-03-19 17:54:10 UTC
Permalink
Now that brew is supported for simh package dependencies, it turns
out that not all simulator functionality can be realized with the current
set of available packages on brew. Specifically, the besm6 simulator's
front panel needs sdl ttf support. On Linux (Ubuntu) this is provided
by the libsdl2-ttf-dev package. Maybe someone here can influence
the brew package maintainers to also add the OS X equivalent package
to brew's library...

- Mark
Paul Koning
2018-03-19 17:58:30 UTC
Permalink
Post by Mark Pizzolato
Now that brew is supported for simh package dependencies, it turns
out that not all simulator functionality can be realized with the current
set of available packages on brew. Specifically, the besm6 simulator's
front panel needs sdl ttf support. On Linux (Ubuntu) this is provided
by the libsdl2-ttf-dev package. Maybe someone here can influence
the brew package maintainers to also add the OS X equivalent package
to brew's library...
The unfortunate problem with OSX is that there are several Unix package systems -- brew and fink and possibly others. And they are different. And they keep stuff isolated from OSX so you end up with duplicate copies of stuff.

It is perfectly straightforward to do a standard install on various packages, which lands them in the GNU standard prefix /usr/local. So for those of us who prefer to do it that way rather than mess with unhelpful tools, it would be nice if SIMH would understand this.

paul
Warren Young
2018-03-19 19:25:44 UTC
Permalink
Post by Mark Pizzolato
the besm6 simulator's
front panel needs sdl ttf support. On Linux (Ubuntu) this is provided
by the libsdl2-ttf-dev package. Maybe someone here can influence
the brew package maintainers to also add the OS X equivalent package
to brew's library...
It seems to be there already:

$ brew search ttf

==> *Searching local taps...*

sdl2_ttf sdl_ttf ttf2eot ttf2pt1
ttfautohint

==> *Searching taps on GitHub...*

==> *Searching blacklisted, migrated and deleted formulae...*

$ brew install sdl2_ttf

==> *Installing dependencies for sdl2_ttf: **sdl2*

==> *Installing sdl2_ttf dependency: **sdl2*

==> *Downloading
https://homebrew.bintray.com/bottles/sdl2-2.0.8.high_sierra.bottle.tar.gz
<https://homebrew.bintray.com/bottles/sdl2-2.0.8.high_sierra.bottle.tar.gz>*

########################################################################
100.0%

==> *Pouring sdl2-2.0.8.high_sierra.bottle.tar.gz*

🍺 /usr/local/Cellar/sdl2/2.0.8: 86 files, 4.2MB

==> *Installing **sdl2_ttf*

==> *Downloading
https://homebrew.bintray.com/bottles/sdl2_ttf-2.0.14.high_sierra.bottle.tar.gz
<https://homebrew.bintray.com/bottles/sdl2_ttf-2.0.14.high_sierra.bottle.tar.gz>*

########################################################################
100.0%

==> *Pouring sdl2_ttf-2.0.14.high_sierra.bottle.tar.gz*

🍺 /usr/local/Cellar/sdl2_ttf/2.0.14: 10 files, 72.2KB

It's part of homebrew-core, so you shouldn't need to "tap" anything special
to get this:

https://github.com/Homebrew/homebrew-core/blob/master/Formula/sdl2_ttf.rb

If the "install" command fails for you, what does the "search" command give?
Mark Pizzolato
2018-03-19 19:45:04 UTC
Permalink
Ahh
 Great!

Not being an OS X/HomeBrew user, I searched for it with the wrong command.

Thanks.


- Mark

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Warren Young
Sent: Monday, March 19, 2018 12:26 PM
To: ***@trailing-edge.com
Subject: Re: [Simh] simh OS X missing dependencies with brew packages

On Mon, Mar 19, 2018 at 11:54 AM, Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>> wrote:
the besm6 simulator's
front panel needs sdl ttf support. On Linux (Ubuntu) this is provided
by the libsdl2-ttf-dev package. Maybe someone here can influence
the brew package maintainers to also add the OS X equivalent package
to brew's library...

It seems to be there already:


$ brew search ttf

==> Searching local taps...

sdl2_ttf sdl_ttf ttf2eot ttf2pt1 ttfautohint

==> Searching taps on GitHub...

==> Searching blacklisted, migrated and deleted formulae...

$ brew install sdl2_ttf

==> Installing dependencies for sdl2_ttf: sdl2

==> Installing sdl2_ttf dependency: sdl2

==> Downloading https://homebrew.bintray.com/bottles/sdl2-2.0.8.high_sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring sdl2-2.0.8.high_sierra.bottle.tar.gz

&#127866; /usr/local/Cellar/sdl2/2.0.8: 86 files, 4.2MB

==> Installing sdl2_ttf

==> Downloading https://homebrew.bintray.com/bottles/sdl2_ttf-2.0.14.high_sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring sdl2_ttf-2.0.14.high_sierra.bottle.tar.gz

&#127866; /usr/local/Cellar/sdl2_ttf/2.0.14: 10 files, 72.2KB

It's part of homebrew-core, so you shouldn't need to "tap" anything special to get this:

https://github.com/Homebrew/homebrew-core/blob/master/Formula/sdl2_ttf.rb

If the "install" command fails for you, what does the "search" command give?
Loading...