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

Make a linux build #88

Open
marcoM32 opened this issue Jul 11, 2022 · 3 comments
Open

Make a linux build #88

marcoM32 opened this issue Jul 11, 2022 · 3 comments

Comments

@marcoM32
Copy link

Hello, I would like to have this program on linux, would it be possible to make an official buil or not for this system?

@alex-hhh
Copy link
Owner

This was asked before, see #60 and as I mentioned there, unfortunately I don't know enough about Linux packaging to provide pre-built packages myself. This would require help from someone who knows more about making packages on Linux.

You can run this application on Linux (and OSX as well), and you can build your own binary by following the build instructions in the docs/README.md file.

@Monirzadeh
Copy link

Monirzadeh commented Oct 1, 2023

@alex-hhh base on that Readme

This command will create a stand-alone application in the "dist" folder and this application will run even on machines that don't have Racket installed.

where is that dst folder in linux?

i get this

Compiling .zo files...make-directory: cannot make directory
  path: /usr/share/racket/pkgs/gui-lib/mred/private/compiled
  system error: Permission denied; errno=13
  compilation context...:
   /tmp/ActivityLog2/rkt/main.rkt
  context...:
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:686:0: compile-zo*
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:452:15
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:441:12: build
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:412:0: maybe-compile-zo
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:317:16
   /usr/share/racket/collects/compiler/private/cm-util.rkt:14:0: ormap-strict
   [repeats 10 more times]
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:317:16
   /usr/share/racket/collects/compiler/private/cm-util.rkt:14:0: ormap-strict
   [repeats 8 more times]
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:210:0: compile-root
   /usr/share/racket/collects/compiler/private/cm-minimal.rkt:317:16
   /usr/share/racket/collects/compiler/private/cm-util.rkt:14:0: ormap-strict
   [repeats 2 more times]
   ...

i can run that with racket run.rkt

@alex-hhh
Copy link
Owner

alex-hhh commented Oct 1, 2023

The dist folder should be created by build.rkt script in the same directory where you run (usually in the root directory of ActivityLog2 source tree)

Looking at the output of your build error, it looks like racket is trying to compile one of its own source files, and this can happen when there is a problem with the installation itself. When you run "racket run.rkt", racket will only compile things in memory, so this works, but this will take a very long time for the application to start up.

Unfortunately, I don't have expertise with Racket on Linux -- I built the application on an Ubuntu machine with Racket installed as a snap, and that worked, but I don't use this configuration often. What I would recommend, is asking for help from the Racket community. It is most active on Discourse (https://racket.discourse.group/ ) and Discord (here is an invite link https://discord.gg/6Zq8sH5 )

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

No branches or pull requests

3 participants