Error message on bash startup
In the process of installing opencv on my computer, I wound up creating an error that pops up each time I open a new terminal:
bash: /PKG_CONFIG_PATH=$/bin:/usr/local/lib/pkgconfig: No such file or directory Any ideas on what might be causing this? |
Msg means what it says...
Code:
$/bin You could also check the other path /usr/local/lib/pkgconfig does exist as well. |
Quote:
|
Since you don't say what flavor of Linux you use, how you installed opencv,
Look at ~/.bashrc $PATH which could be stored in several places depending on distro. Maybe /etc/profile or ~/.profile Quote:
Quote:
Find out where that $PATH statement is and change it. |
What's happening is that your bash profile thinks you want to execute a command located at a path that doesn't exist (literally: /PKG_CONFIG_PATH=$/bin:/usr/local/lib/pkgconfig).
Check out both ~/.bashrc and ~/.bash_profile and look for this line: /PKG_CONFIG_PATH=$/bin:/usr/local/lib/pkgconfig Remove the the leading forward slash so that it looks like this: PKG_CONFIG_PATH=$/bin:/usr/local/lib/pkgconfig Then save the file. The next time you load up bash, that error should go away. (note: if you've edited /etc/profile in your journeys, you may need to look there as well) |
Quote:
>Find out where that $PATH statement is and change it. This is what I have been trying to do, but none of the files being called at bash launch seem to contain the line. Thanks for the help so far. Code:
~.bashrc: -------------------------------- |
Could you post the contents of "/opt/ros/electric/setup.bash"? And please use code tags.
|
Quote:
Code:
#!/bin/bash |
Hm, not there either. Maybe just grep for "PKG_CONFIG_PATH" in all hidden files in your home directory:
Code:
grep PKG_CONFIG_PATH ~/.* |
Quote:
Code:
/home/russellstewart/.bash_history:PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig Also, upon restarting again, the error on the bash has lost the $/bin: path, so it seems that the problem is in the /usr/local/lib/pkgconfig directory. When I first ran into this problem, that folder contained an opencv.pc file. I have since removed that file along with most of the cv installation to no avail. |
Did you, by chance, check the contents of that .profile file you found?
UPDATE: Reread your reply. You did check that file. I'm high on cold meds apparently. Which distribution are you using? Maybe I can setup a VM and break it on purpose and share in your pain some. Oh, is there a a .bash_login file in your home directory, if yes check that too! |
All times are GMT -5. The time now is 06:16 PM. |