Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can one run it on macOS? #1

Open
certik opened this issue Oct 15, 2021 · 8 comments
Open

How can one run it on macOS? #1

certik opened this issue Oct 15, 2021 · 8 comments

Comments

@certik
Copy link

certik commented Oct 15, 2021

I tried:

fortran-lang/fpm-gui(main) $ tclsh fpm-gui.tcl 
Cloning into 'fpm-registry'...
remote: Enumerating objects: 374, done.
remote: Counting objects: 100% (162/162), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 374 (delta 98), reused 116 (delta 65), pack-reused 212
Receiving objects: 100% (374/374), 88.19 KiB | 1.14 MiB/s, done.
Resolving deltas: 100% (196/196), done.
invalid command name "wm"
    while executing
"wm title      . "fpm - Fortran package manager""
    (procedure "mainWindow" line 2)
    invoked from within
"mainWindow $packageNames"
    (file "fpm-gui.tcl" line 312)

So I think we need to figure out how to install the Tk? How can one install it?

@arjenmarkus
Copy link
Owner

arjenmarkus commented Oct 15, 2021 via email

@certik
Copy link
Author

certik commented Oct 15, 2021

That worked! Very cool. Here is a screenshot on Apple M1:

Screen Shot 2021-10-15 at 7 30 23 AM

Two issues:

Major: it looks like Tk is deprecated on macOS, and will eventually stop working.

$ wish fpm-gui.tcl 
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.

Minor: It could not find fpm, but I think I actually don't have it installed anyway right now:

couldn't execute "\Users\certik\fpm\fpm.exe": no such file or directory
couldn't execute "\Users\certik\fpm\fpm.exe": no such file or directory
    while executing
"open "|$cmd 2>@1" "r""
    (procedure "runCommand" line 38)
    invoked from within
"runCommand build"
    invoked from within
".buttons.build invoke "
    invoked from within
".buttons.build instate {pressed !disabled} { .buttons.build state !pressed; .buttons.build invoke } "
    (command bound to event)

Although when I install it, I would just put fpm into my $PATH.

@certik
Copy link
Author

certik commented Oct 15, 2021

P.S. I see that it created fpm and fpm-packages in my home directory. I don't like polluting my home directory, so I would prefer if it used ~/.fpm-gui/ or something like that for that. Again, that's minor.

@arjenmarkus
Copy link
Owner

arjenmarkus commented Oct 15, 2021 via email

@certik
Copy link
Author

certik commented Oct 15, 2021

If you give me instructions how to do it on macOS, I can try. If we can create a binary tarball that one just unpacks and it will work, that is the way to go. We'll then setup our CI to do that automatically.

I can help too, but will need some guidance from you.

@arjenmarkus
Copy link
Owner

arjenmarkus commented Oct 15, 2021 via email

@certik
Copy link
Author

certik commented Oct 15, 2021

Ok, perfect! Looking forward.

@arjenmarkus
Copy link
Owner

arjenmarkus commented Oct 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants