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
Problem with installation with brew on ubuntu 16 #2835
Comments
Can you please check if commit eb4da7e3 fixes the bug? |
~$ brew update
Updated 1 tap (elektrainitiative/elektra).
==> Updated Formulae
elektrainitiative/elektra/elektra
eduardo@eduardo-Inspiron-7472:~$ date
Ter Jul 30 08:11:12 -03 2019
eduardo@eduardo-Inspiron-7472:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
eduardo@eduardo-Inspiron-7472:~$ brew install elektra
==> Downloading https://www.libelektra.org/ftp/elektra/releases/elektra-0.8.26.tar.gz
Already downloaded: /home/eduardo/.cache/Homebrew/downloads/9b3f4a8687a4ca17fbdcf3ad47b5801411ef9597313652cc087f7969622c67fe--elektra-0.8.26.tar.gz
==> cmake .. -DBINDINGS=cpp -DTOOLS=kdb; -DPLUGINS=NODEP -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/home/eduardo/.linuxbrew/Cellar/elektra/0.8.26 -DCMAKE_B
==> make install
Last 15 lines from /home/eduardo/.cache/Homebrew/Logs/elektra/02.make:
-- Installing: /home/eduardo/.linuxbrew/Cellar/elektra/0.8.26/lib/elektra/tool_exec/mountpoint-info
-- Installing: /home/eduardo/.linuxbrew/Cellar/elektra/0.8.26/lib/elektra/tool_exec/mount-list-all-files
-- Installing: /home/eduardo/.linuxbrew/Cellar/elektra/0.8.26/lib/elektra/tool_exec/check-env-dep
-- Installing: /home/eduardo/.linuxbrew/Cellar/elektra/0.8.26/lib/elektra/tool_exec/install-sh-completion
-- Installing: /usr/share/bash-completion/completions/kdb
CMake Error at scripts/cmake_install.cmake:137 (file):
file INSTALL cannot copy file
"/tmp/elektra-20190730-21584-dkbr3u/elektra-0.8.26/scripts/kdb-bash-completion"
to "/usr/share/bash-completion/completions/kdb".
Call Stack (most recent call first):
cmake_install.cmake:48 (include)
Makefile:76: recipe for target 'install' failed
make: *** [install] Error 1
READ THIS: https://docs.brew.sh/Troubleshooting Like this? |
|
After that the kdb command is not available: $ kdb
O programa 'kdb' não está instalado no momento. Você pode instalá-lo digitando:
sudo apt install elektra-bin
eduardo@eduardo-Inspiron-7472:~$ brew install elektrainitiative/elektra/elektra --with-dep-plugins
Warning: elektrainitiative/elektra/elektra 0.8.26_1 is already installed and up-to-date
To reinstall 0.8.26_1, run `brew reinstall elektra`
eduardo@eduardo-Inspiron-7472:~$ kdb
O programa 'kdb' não está instalado no momento. Você pode instalá-lo digitando:
sudo apt install elektra-bin
eduardo@eduardo-Inspiron-7472:~$ brew reinstall elektra
==> Reinstalling elektrainitiative/elektra/elektra --with-dep-plugins
==> Downloading https://www.libelektra.org/ftp/elektra/releases/elektra-0.8.26.tar.gz
Already downloaded: /home/eduardo/.cache/Homebrew/downloads/9b3f4a8687a4ca17fbdcf3ad47b5801411ef9597313652cc087f7969622c67fe--elektra-0.8.26.tar.gz
==> cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/eduardo/.linuxbrew/Cellar/elektra/0.8.26_1 -DBINDINGS='cpp' -DTOOLS='kdb;gen' -DPLUGINS='NODEP;augeas;dbus;gitresolver;tcl;yajl;yamlcpp
==> make install
==> Caveats
Bash completion has been installed to:
/home/eduardo/.linuxbrew/etc/bash_completion.d
==> Summary
🍺 /home/eduardo/.linuxbrew/Cellar/elektra/0.8.26_1: 2,045 files, 43.8MB, built in 2 minutes 9 seconds
eduardo@eduardo-Inspiron-7472:~$ kdb
O programa 'kdb' não está instalado no momento. Você pode instalá-lo digitando:
sudo apt install elektra-bin
eduardo@eduardo-Inspiron-7472:~$ date
Ter Jul 30 08:29:26 -03 2019 |
Thank you for the quick reply. As you noted the formula from homebrew-core/linuxbrew-core was not fixed yet.
Can you please add the output of the commands brew ls --verbose elektra and ls $HOME/.linuxbrew/bin below? @markus2330 Would it be okay, if we disable |
|
Sorry about that, |
How to test the bash-completion feature? |
I think you need to follow the steps here. Afterwards,
. Now |
Yes, it is okay (There is also the
The bash completion is rudimentary, currently not maintained and we currently rewrite it. Instructions were given by @sanssecours a second ago. |
$ tail -n 11 ~/.bashrc
HOMEBREW_PREFIX=$(brew --prefix)
if type brew &>/dev/null; then
if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]]; then
source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
else
for COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"*; do
[[ -r "$COMPLETION" ]] && source "$COMPLETION"
done
fi
fi For me the bash-completion did not work.
|
As Markus already said above, the Bash completions are unfortunately not maintained any more. Something like The text below shows the completion output for
. |
Edit the file local commands=($(${kdbpath} 2> /dev/null | sed -e '0,/^Known commands are/d' | awk '{print $1}')) to this: local commands=($(${kdbpath} 2> /dev/null | sed -e '0,/^Known commands are/d' | awk '{print $1}' | sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g" )) And it will work. |
This commit resolves issue ElektraInitiative#2835.
This commit resolves issue ElektraInitiative#2835.
This commit resolves issue ElektraInitiative#2835.
This issue should be fixed now. Commits 1639e98, and https://github.com/Homebrew/linuxbrew-core/commit/27526d860049e382487f484eaea4078d3cec42b1 contain the relevant changes that fixed the problem. |
Thank you for maintaining homebrew! |
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: