Macaulay2 / Macaulay2/M2

Symbolic link for M2 fails on OS X

Open Beginner friendly
#715 1 comment 0 reactions 0 assignees View on GitHub
build issue
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

Macaulay2-1.9.2-x86_64-Darwin-15.6.0

If one creates a symbolic link to `M2`, it fails, because `"$0"` refers to the location of the symbolic link, not to the actual Macaulay2 installation.

On OS X one can use `readlink` to resolve symbolic links, so one can replace `dirname "$0"` by `"$M2PATH"` where `M2PATH=$(dirname $(readlink "$0"))`.

The attached replacement for `M2` (with .txt removed) works for me.

[M2.txt](https://github.com/Macaulay2/M2/files/1502403/M2.txt)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the M2 launcher and compare it with the attached replacement, focusing on how it determines the Macaulay2 installation when invoked through a symbolic link. Test the launcher on OS X both directly and through a symbolic link, and confirm that the linked command starts successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.