Skip to content

Build instructions #17

Closed
Closed

Description

@rkeene

No build instructions for this software. It would be helpful to know how to build it from the release tarball.

Activity

  1. kylecarbs commented on Mar 5, 2019

    @kylecarbs
    Member

    This is planned. For now you can do:

    yarn
    yarn task build:server:binary

    It should output to packages/server/cli-[platform]

  2. grant commented on Mar 6, 2019

    @grant

    Also use node >=8 and <9.

  3. muojp commented on Mar 6, 2019

    @muojp
  4. bketelsen commented on Mar 6, 2019

    @bketelsen

    be sure that the node version you have installed has an appropriate release for nexe/nexe, I had node 8.15.1, but there's only 8.15.0 in nexe, so I downgraded node to get this to build.

  5. nhooyr commented on Mar 7, 2019

    @nhooyr
    Contributor

    Dockerfile is available for those of you who want to dev for linux.

  6. nhooyr commented on Mar 8, 2019

    @nhooyr
    Contributor

    So lets just document the existence of the Dockerfile and for other platforms, people can look at the .travis.yml.

  7. self-assigned this
    on Mar 8, 2019
  8. uddmorningsun commented on Mar 9, 2019

    @uddmorningsun

    I have tried in CentOS, record in #23 (comment) , hope that help others

  9. tvarwig commented on Mar 12, 2019

    @tvarwig

    After I run yarn task build:server:binary everything builds successfully from what I can see but there are no binaries in packages/server/cli- there are no cli directories under packages/server

  10. activatedgeek commented on Mar 13, 2019

    @activatedgeek

    I was able to get a full build working however on running I get the following error:

    Error: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found`.

    I installed the latest library which contains that version but is on a non-standard path. I updated LD_LIBRARY_PATH but to no effect. Any suggestions?

  11. activatedgeek commented on Mar 13, 2019

    @activatedgeek

    I actually realized that I was building from master. When I built from the latest tag, it worked. Thanks!

  12. bpmct commented on Mar 22, 2019

    @bpmct
    Member

    Is there no way to build from master and get a binary?

  13. NGTmeaty commented on Mar 22, 2019

    @NGTmeaty
    Contributor

    I believe there's a yarn task to build and get a binary.

    I'd reference our Dockerfile.

  14. wongxingjun commented on Mar 27, 2019

    @wongxingjun

    I was able to get a full build working however on running I get the following error:

    Error: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found`.

    I installed the latest library which contains that version but is on a non-standard path. I updated LD_LIBRARY_PATH but to no effect. Any suggestions?

    I met the same problem recently, build instructions are needed for users to run this software on some old versions of OSes.

  15. nol166 commented on Apr 3, 2019

    @nol166
    Contributor

    We are adding better documentation to our April to-do list. Sorry it has taken so long 🤕

  16. MichaelDesantis commented on Apr 3, 2019

    @MichaelDesantis
    Contributor

    A new issue was opened on this #417

  17. code-asher commented on Apr 25, 2019

    @code-asher
    Member

    Closing in favor of #417.

  18. added a commit that references this issue on Jun 19, 2019
  19. qinzehua commented on Jan 11, 2022

    @qinzehua

    I believe there's a yarn task to build and get a binary.

    I'd reference our Dockerfile.

    hi, the Dockerfile is missing, can you share it?

  20. code-asher commented on Jan 11, 2022

    @code-asher
    Member
  21. code-asher commented on Jan 11, 2022

    @code-asher
    Member

    If you are looking for our release image though (it takes an already-built code-server as input) that can be found here: https://github.com/coder/code-server/blob/main/ci/release-image/Dockerfile

  22. qinzehua commented on Jan 12, 2022

    @qinzehua

    We no longer have a Dockerfile that builds code-server but we have documentation for building here: https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md#build

    I am follow the steps to do building.
    When run node . in release folder. Got error Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /home/cddev/Downloads/code-server-4.0.1/release/node_modules/argon2/lib/binding/napi-v3/argon2.node)

    My centos 7 mechine's GLIBC version is 2.17. So i attempt to upgrade GLIBC to 2.25. But fail.
    Is there any other way to resolve the GLIBC_2.25 error?

  23. jsjoeio commented on Jan 12, 2022

    @jsjoeio
    Contributor

    What happens if you run npm_config_build_from_source=true node . in the release folder? see here

  24. codegzx commented on Sep 25, 2023

    @codegzx

    We no longer have a Dockerfile that builds code-server but we have documentation for building here: https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md#build

    I am follow the steps to do building. When run node . in release folder. Got error Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /home/cddev/Downloads/code-server-4.0.1/release/node_modules/argon2/lib/binding/napi-v3/argon2.node)

    My centos 7 mechine's GLIBC version is 2.17. So i attempt to upgrade GLIBC to 2.25. But fail. Is there any other way to resolve the GLIBC_2.25 error?

    I meet the same problem, can you tell me how do you fix it?

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

Metadata

Metadata

Assignees

Labels

docsDocumentation related

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions