Installation issues on MacOS 14.4.1 (Sonoma)

19 views
Skip to first unread message

Marc Perlman

unread,
Jun 17, 2025, 11:21:49 PMJun 17
to starstarhug
My apologies for bringing up a problem that is only indirectly about the humdrum tools, but I'm wondering if some of the Mac users out there may have encountered this problem.

This is my first time using a post-Catalina OS (i.e. with the partitioned hard drive).  I've installed the tools (using git) into /usr/local/humdrum-tools, as per the instructions.  When I run the regression test, I get several failure reports.  Most of them seem somewhat random, but there are two that seem to be caused by the new file security system:

"text"
line 90: /32444.cxt: Read-only file system

"yank"
sh: /temp-32700-1: Read-only file system

This looks to me like it's trying to create files in the root directory, which is no longer permitted.

Has anyone else seen this, and found a workaround?

Thanks,
Marc


Craig Sapp

unread,
Jun 18, 2025, 12:56:30 AMJun 18
to stars...@googlegroups.com
Hi Marc et al.,

> This looks to me like it's trying to create files in the root directory, which is no longer permitted.

Yes (it was never permitted for non-superusers to write to /).  The problem is that the $TMPDIR environment variable is not defined so instead of /tmp the text and yank tools are trying to write illegally to /.
 
I adjusted the text and yank tools to default to /tmp rather than / if $TMPDIR is not defined.  To update, go to the humdrum-tools directory and type:

make update
make

to download the updates and install the updates.

Test example:

(1) text:

Test input:

**kern  **silbe

*M4/4   *

      =

4e      Ma-

4d      -ry

4c      had

4d      a

=       =

4e      lit-

4e      -tle

2e      lamb,

=       =

*-      *-


Expected output from the command "text input.krn":

**text

*

=

Mary

.

had

a

=

little

.

lamb,

=

*-


Or: "text input.krn | rid -GLId | grep -v ^= | fmt":

Mary had a little lamb,


Or using Humdrum Extras version of rid (called ridx):

text input.krn | ridx -H | fmt


Where "ridx -H" is equivalent to "rid -GLId | grep -v ^=", where the -H option means remove Humdrum formatting from the non-null data.

(2) yank

This is more complicated since the yank shell script calls 5 possible awk files (yank1.awk, etc.).

Here is an example of extracting the second full measure of music:

Input is the same as above.

Output of the command "yank -o '^=' -r 2 input.krn":

**kern  **silbe

*M4/4   *

=       =

4e      lit-

4e      -tle

2e      lamb,

*-      *-


-=+Craig


Perlman, Marc

unread,
Jun 18, 2025, 11:57:38 PMJun 18
to stars...@googlegroups.com
Hi Craig,
  Thanks so much!

  I did the update, and the problem with the text tool has gone away--thanks! 😃

  However, the problem with the yank tool is still there. ☹️

  I'm not sure if there is some other, unrelated issue with my installation, since there are quite a few other failed tests.

  In case the pattern of failures gives you any clues, I list them all, below.

Thanks and take care,
Marc

TEST 01 for ditto: ditto: No destination

TEST 01 for infot: /usr/bin/awk: can't open file /infotok

TEST 01 for yank: sh: /temp-39046-1: Read-only file system

autodynam        test 001 FAILED            Add termination to crescendo just before next dynmaics item in spine.

autodynam        test 002 FAILED            Add termination to decrescendo just before next dynmaics item in spine.

autodynam        test 003 FAILED            Add termination to crescendo on same line before next dynamics item.

autodynam        test 004 FAILED            Add termination to decrescendo on same line before next dynamics item.

autodynam        test 005 FAILED            Add termination to explicit wedges/hairpins.

autodynam        test 006 FAILED            Add termination to interpretive (hidden) wedges/hairpins.

autostem            test 001 FAILED            Add stems to notes in the treble clef

autostem            test 002 FAILED            Add stems to notes in the bass clef

autostem            test 003 FAILED            Remove stems from notes

autostem            test 004 FAILED            Only add stems to notes which do not have them.

autostem            test 005 FAILED            Add stems to notes, overwriting any which already exist.

autostem            test 006 FAILED            Set the default direction of the middle staff line to point upwards.

autostem            test 007 FAILED            Only override stem direction for non-fixed stems.

autostem            test 008 FAILED            Override fixed stem directions

autostem  test 009 FAILED      Don't add stems to notes which shouldn't have stems.

chorck                        test 001 FAILED      Example with four rule violations

extractx             test 045 FAILED            Extract co-spine information along with a spine.

extractx             test 046 FAILED            Extract co-spine information along with a spine.

extractx             test 047 FAILED            Extract co-spine information along with a spine and its duplicate.

extractx             test 048 FAILED            Extract co-spine information along with a spines in reverse order.

extractx             test 049 FAILED            Extract co-spine information, ignoring rests in **kern data.

extractx   test 050 FAILED      Extract co-spine information for the third spine of music.

harm2kern        test 009 FAILED            Extracting only the root of the chord.

harm2kern                test 010 FAILED      Extracting only the base line of the chord.

prange                test 001 FAILED            Count the pitches in a rising major scale.

prange                test 002 FAILED            Count the pitches in a rising major scale with different rhythms

prange                test 003 FAILED            Count pitches with duration weighting


prange                        test 006 FAILED      Count pitches in music adding histogram fraction ranges

sample[40991]: [fatal] unable to read input graph: The data couldn’t be read because it isn’t in the correct format.

sample                test 001 FAILED            Sample the music every quater-note.

sample[41000]: sample cannot examine process 8 (with name like '8') because it no longer appears to be running.

sample                test 002 FAILED            Sample the music every eighth-note.

sample[41009]: sample cannot find any existing process with a name like '2 8. 16 4'.

sample                test 003 FAILED            Sample the music every eighth-note.

 

scordur                      test 001 FAILED      Measure the duration in quarter notes of a short example

tiefix                   test 001 FAILED            Fix ties which are not correctly terminated.

tiefix                   test 002 FAILED            Fix ties which are not correctly initiated.

tiefix                   test 003 FAILED            Fix ties which are not correctly continued.

 

tindex                 test 001 FAILED            Extract a pitch sequence only.

tindex                         test 002 FAILED      Extract diatonic musical intervals from two spines.



--
--
This is a message is from the **HUG newgroup.
To post to this group, send email to stars...@googlegroups.com
To unsubscribe from this group, send email to
starstarhug...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/starstarhug?hl=en
---
You received this message because you are subscribed to the Google Groups "starstarhug" group.
To unsubscribe from this group and stop receiving emails from it, send an email to starstarhug...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/starstarhug/CAPcjuFd1LYi3oFndJjV5mqx49R14%2BCuDfBq9Zup6ja6S6NoU_Q%40mail.gmail.com.


--
Associate Professor
Department of Music
Brown University
Providence, Rhode Island 02912
USA

http://research.brown.edu/research/profile.php?id=10308

Unplayed Melodies: Javanese Gamelan and the Genesis of Music Theory
http://www.ucpress.edu/book.php?isbn=9780520239562

"From 'Folklore' to 'Knowledge' in Global Governance: On the Metamorphoses of the Unauthored"
http://books.google.com/books?isbn=0226907090

"Traditional Cultural Expressions"

Reply all
Reply to author
Forward
0 new messages