ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

$ printenv | grep ROS command not found

asked 2017-02-01 11:55:25 -0600

malgudi gravatar image

updated 2017-02-01 11:58:27 -0600

gvdhoorn gravatar image

I installed ROS kinetic on ubuntu 16.04.

for the command

$ printenv | grep

and i am getting response as "command not found".

What's the problem? Could you help me?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-01 11:58:02 -0600

gvdhoorn gravatar image

You could be missing either printenv or grep.

What is the output of which printenv and of which grep?

edit flag offensive delete link more



i have the same problem . output of which printenv is "/usr/bin/printenv" and which grep is "/bin/grep"

EGYRos gravatar image EGYRos  ( 2018-02-15 16:17:36 -0600 )edit

On Ubuntu, /bin/grep is provided by the grep package. /usr/bin/printenv by coreutils.

Do you have those pkgs installed? You can check with dpkg -l | grep 'coreutils\|grep'.

gvdhoorn gravatar image gvdhoorn  ( 2018-02-16 04:02:55 -0600 )edit

Note btw that you can also use env to print the currently defined environment variables.

gvdhoorn gravatar image gvdhoorn  ( 2018-02-16 04:03:16 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-02-01 11:55:25 -0600

Seen: 2,199 times

Last updated: Feb 01 '17