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 error: "g++: No such file or directory" #22

Open
mateors opened this issue Dec 17, 2022 · 6 comments
Open

Build error: "g++: No such file or directory" #22

mateors opened this issue Dec 17, 2022 · 6 comments
Assignees

Comments

@mateors
Copy link

mateors commented Dec 17, 2022

make build command gave me the following error

g++  -g   -fmax-errors=2  -Wall  -Wextra      unit.cpp  -o bin/lxroot-unit
make: g++: No such file or directory
make: *** [Makefile:46: bin/lxroot-unit] Error 127

my current os

Ubuntu 22.04.1 LTS

@parke
Copy link
Owner

parke commented Dec 17, 2022 via email

@mateors
Copy link
Author

mateors commented Dec 17, 2022

@parke Thank you very much for your quick response.

after installing the build essentials there is bin folder created with the following files

  1. lxroot
  2. lxroot-unit

then i tried

sudo make unit

and get the following error

unit.sh  test fail

  line       361

  command    env - ./lxr nr -- id -u
  status     0

  expect     '0'
  actual     '0  0'    length 4

  cwd        /tmp/lxroot-unit
  env1       env -
  lxr1
  argv       ./lxr nr -- id -u
  cmd1

make: *** [Makefile:66: unit] Error 1

@parke
Copy link
Owner

parke commented Dec 17, 2022 via email

@parke parke changed the title make build error on ubuntu machine Build error: "g++: No such file or directory" Dec 17, 2022
@parke parke self-assigned this Dec 17, 2022
@parke
Copy link
Owner

parke commented Dec 17, 2022

Update: The above unit test failure (on line 361) is due to a flaw in the unit test, not a flaw in Lxroot. However, this flaw is only exposed when the unit tests are run as root. I will fix the unit test and push an update to Github.

@parke
Copy link
Owner

parke commented Dec 17, 2022

I've pushed the fixed unit test to the master branch: dc153df

So after you do a git pull, the unit tests should now pass (even if you run the unit tests as root).

To repeat myself: I recommend always building, testing, and running Lxroot as a non-root user.

A few of the unit tests are interactive. When prompted, you need to press y and then ENTER to pass these tests.

Thanks again for reporting this issue.

@mateors
Copy link
Author

mateors commented Dec 18, 2022

@parke You are great. I appreciate your hard work and enthusiasm.

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