ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

$ printenv | grep ROS command not found

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

malgudi gravatar image

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

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
2

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

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

Comments

1

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 -0500 )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 -0500 )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 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 2,787 times

Last updated: Feb 01 '17