Comments (23)
Hi @blitzter. I did the following:
[smoss@bioserva ~]$ locate bash-completion.pc
/usr/share/pkgconfig/bash-completion.pc
So I added export PKG_CONFIG_PATH=/usr/share/pkgconfig:$PKG_CONFIG_PATH
to my .bashrc
.
from legacy-linuxbrew.
Is the formula bash-completion
installed? If you remove the package bash-completion
, does the error go away?
brew remove bash-completion
from legacy-linuxbrew.
The formula bash-completion
was installed and removing it didn't fix it. Other formulas installed were autoconf
, libyaml
, pkg-config
, and ruby-build
. I removed all of them an rebooted and then the error message disappeared.
Will try installing pkg-config
again and see what happens. If it is connected to that formula. It might be a bug with pkg-config
since in the error message "Package bash-completion was not found in the pkg-config search path."
from legacy-linuxbrew.
I can confirm that the bug is related to the formula pkg-config
. Reinstalling pkg-config
and rebooting resulted in the same error message as before when I open the terminal. Only now the formula bash-completion
was not installed as it was before although the same error message appeared back then when bash-completion
was installed.
from legacy-linuxbrew.
That's pretty strange. Can you post your .bashrc
and .bash_profile
in a gist?
from legacy-linuxbrew.
Here is the gist: https://gist.github.com/villimagg/8293858
from legacy-linuxbrew.
Ok.. so pkg-config
came as a dependency with ruby-build
which I installed along with rbenv
. bash-completion
came as a dependency with rbenv
.
The original error message say's:
"Package bash-completion was not found in the pkg-config search path.
Perhaps you should add the directory containing `bash-completion.pc'
to the PKG_CONFIG_PATH environment variable
No package 'bash-completion' found
bash: /yum: No such file or directory"
Which must mean that anyone can add the path to bash-completion
to the PKG_CONFIG_PATH environment variable within pkg-config
?
And now I've been searching where I can add the bash-completion
path to the PKG_CONFIG_PATH and I have no idea.
from legacy-linuxbrew.
I don't see that rbenv
has any build dependencies.
➜ ~ brew deps rbenv
➜ ~ brew deps ruby-build
autoconf
openssl
pkg-config
➜ ~
from legacy-linuxbrew.
Thanks for the link. I'll take a look at it.
Here is the output when running brew install rbenv ruby-build
:
$ brew install rbenv ruby-build
==> Downloading https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz
Already downloaded: /home/vmag/.cache/Homebrew/rbenv-0.4.0.tar.gz
==> Caveats
To use Homebrew's directories rather than ~/.rbenv add to your profile:
export RBENV_ROOT=/home/vmag/.linuxbrew/var/rbenv
To enable shims and autocompletion add to your profile:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
==> Summary
/home/vmag/.linuxbrew/Cellar/rbenv/0.4.0: 31 files, 164K, built in 2 seconds
==> Installing dependencies for ruby-build: autoconf, pkg-config, libyaml
==> Installing ruby-build dependency: autoconf
==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
Already downloaded: /home/vmag/.cache/Homebrew/autoconf-2.69.tar.gz
==> ./configure --prefix=/home/vmag/.linuxbrew/Cellar/autoconf/2.69
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /home/vmag/.linuxbrew.
Xcode (up to and including 4.2) provides (a rather old) Autoconf.
==> Summary
/home/vmag/.linuxbrew/Cellar/autoconf/2.69: 65 files, 2.1M, built in 2 seconds
==> Installing ruby-build dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
Already downloaded: /home/vmag/.cache/Homebrew/pkg-config-0.28.tar.gz
==> ./configure --prefix=/home/vmag/.linuxbrew/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib --with-pc-path=/home/
==> make
==> make check
==> make install
/home/vmag/.linuxbrew/Cellar/pkg-config/0.28: 10 files, 644K, built in 22 seconds
==> Installing ruby-build dependency: libyaml
==> Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Already downloaded: /home/vmag/.cache/Homebrew/libyaml-0.1.4.tar.gz
==> ./configure --prefix=/home/vmag/.linuxbrew/Cellar/libyaml/0.1.4
==> make install
/home/vmag/.linuxbrew/Cellar/libyaml/0.1.4: 7 files, 344K, built in 6 seconds
==> Installing ruby-build
==> Downloading https://github.com/sstephenson/ruby-build/archive/v20131122.1.tar.gz
Already downloaded: /home/vmag/.cache/Homebrew/ruby-build-20131122.1.tar.gz
==> ./install.sh
/home/vmag/.linuxbrew/Cellar/ruby-build/20131122.1: 96 files, 440K, built in 2 seconds
pkg-config comes as a dependency for ruby-build and then after running brew install rbenv ruby-build
my terminal starts complaining about bash-completion
.
from legacy-linuxbrew.
Unable to reproduce.
from legacy-linuxbrew.
I'm having the same issue. I needed to install pkg-config
for another package (it is a depend of makedepend
which was required for openssl
) and have been getting the same error:
Package bash-completion was not found in the pkg-config search path.
Perhaps you should add the directory containing `bash-completion.pc'
to the PKG_CONFIG_PATH environment variable
No package 'bash-completion' found
bash: /yum: No such file or directory
from legacy-linuxbrew.
@gawbul Do you have bash-completion
installed? brew list --versions bash-completion
from legacy-linuxbrew.
@sjackman tried it both with and without bash-completion
installed.
When installed I get:
$ brew list --versions bash-completion
bash-completion 1.3
from legacy-linuxbrew.
Doing a find ~/ -name "bash-completion.pc"
doesn't find the bash-completion.pc
file?
from legacy-linuxbrew.
bash-completion
doesn't appear to install bash-completion.pc
.
❯❯❯ brew list bash-completion |grep -c 'pc$'
0
from legacy-linuxbrew.
I bet that your .bashrc
or .bash_profile
uses pkg-config
to set up bash-completion
and that fails if the PKG_CONFIG_PATH
is changed to not include that search directory. Linuxbrew does change the PKG_CONFIG_PATH
when it's building software. I would recommend hard-coding the path to bash-completion.pc
in your BASH startup file.
from legacy-linuxbrew.
Hard coded into .bashrc
and that worked, thanks 👍
from legacy-linuxbrew.
Grand. Thanks for the feedback.
from legacy-linuxbrew.
Hi @gawbul ,
I'm getting the exact same issue in my Fedora 22 machine.
What exactly was added to .bashrc as bash-completion.pc is not really there.
Can you please provide the addition to .bashrc so I and possibly others can fix the issue?
from legacy-linuxbrew.
Thanks @gawbul ,
The error message is gone if the line mentioned above is added on top of .bashrc (before /etc/bashrc processing).
from legacy-linuxbrew.
Sorry, @blitzter, yes, I added it to the top of my .bashrc
!
from legacy-linuxbrew.
I've started getting this message too (in a VM that is also using Fedora 20).
I understand where the message is being generated, from a stock fedora package ("yum-utils"):
$ grep -n pkg-config /etc/bash_completion.d/yum-utils.bash
2:type -t _yum >/dev/null || . $(pkg-config --variable=completionsdir bash-completion)/yum
As I understand it, this message is "switched on" when a linuxbrew "pkg-config" binary is preferentially used over (earlier in the PATH than) the stock one by the yum-utils package in fedora.
So, then... ignoring the workaround for a moment... isn't the root issue either:
- that linuxbrew pkg-config should be bottled (if it does not work for in the more general system-wide use), or
- that linuxbrew pkg-config should also loop-in system package definitions by default (or as a fallback? if it is intended to replace the stock pkg-config)
?
from legacy-linuxbrew.
that linuxbrew pkg-config should be bottled
I think perhaps you mean keg_only
. You can brew unlink pkg-config
if you like.
that linuxbrew pkg-config should also loop-in system package definitions by default
We explicitly do not include system pkg-config
files to avoid using system host libraries unintended, which may conflict with Linuxbrew libraries. You can modify your PKG_CONFIG_PATH
to use both.
Neither of these workarounds is a clear win as both of these solutions have their own downsides.
from legacy-linuxbrew.
Related Issues (20)
- vim not getting build HOT 4
- `cairo` fails on Linux Mint 17.3 Rosa XFCE x64 HOT 3
- CEGMA 2.5 ? HOT 1
- where is the file .bashrc or .zshrc? HOT 8
- 'brew install llvm --with-lldb' fails HOT 1
- Error: SHA256 mismatch
- -e:1:in `flock': Function not implemented (Errno::ENOSYS) HOT 1
- Advantage of Linuxbrew over Chromebrew? HOT 2
- cannot execute binary file: Exec format error HOT 3
- Error: undefined method `rebuild' HOT 6
- util-linux: Conflicts with bash-completions HOT 25
- Error: Unsupported special dependency :perl HOT 1
- libxcb install but not exist HOT 2
- Support installation with out git installed HOT 4
- brew instal mpd HOT 1
- node: Error: Unsupported special dependency :perl HOT 1
- Unsupported special dependency: Perl HOT 1
- troubleshooting link is not working HOT 2
- gcc bad configured after fresh installation HOT 15
- homebrew upgrade error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legacy-linuxbrew.