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

Build instructions #17

Closed
rkeene opened this issue Mar 5, 2019 · 22 comments
Closed

Build instructions #17

rkeene opened this issue Mar 5, 2019 · 22 comments
Assignees
Labels
docs Documentation related

Comments

@rkeene
Copy link

rkeene commented Mar 5, 2019

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

@kylecarbs
Copy link
Member

kylecarbs commented Mar 5, 2019

This is planned. For now you can do:

yarn
yarn task build:server:binary

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

@grant
Copy link

grant commented Mar 6, 2019

Also use node >=8 and <9.

@muojp
Copy link

muojp commented Mar 6, 2019

@bketelsen
Copy link

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.

@nhooyr
Copy link
Contributor

nhooyr commented Mar 7, 2019

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

@nhooyr
Copy link
Contributor

nhooyr commented Mar 8, 2019

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

@uddmorningsun
Copy link

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

@tvarwig
Copy link

tvarwig commented Mar 12, 2019

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

@activatedgeek
Copy link

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?

@activatedgeek
Copy link

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

@bpmct
Copy link
Member

bpmct commented Mar 22, 2019

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

@NGTmeaty
Copy link
Contributor

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

I'd reference our Dockerfile.

@wongxingjun
Copy link

wongxingjun commented Mar 27, 2019

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.

@nol166
Copy link
Contributor

nol166 commented Apr 3, 2019

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

@MichaelDesantis
Copy link
Contributor

A new issue was opened on this #417

@code-asher
Copy link
Member

Closing in favor of #417.

@qinzehua
Copy link

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?

@code-asher
Copy link
Member

code-asher commented Jan 11, 2022 via email

@code-asher
Copy link
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

@qinzehua
Copy link

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?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 12, 2022

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

@codegzx
Copy link

codegzx commented Sep 25, 2023

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
Labels
docs Documentation related
Projects
None yet
Development

No branches or pull requests