Содержание
- make: *** [generate] Error 127
- 1. Fast solution
- 2. Reproduce the problem
- Step 1: Clone a GO operator-sdk project from GitHub
- Step 2: Run make generate and get the error
- Step 3: Verify operator-sdk version
- 3. Fix the problem for now
- Step 1: Uninstall operator-sdk we installed with brew
- Thread: Getting error 127
- Getting error 127
- Re: Getting error 127
- Re: Getting error 127
- Re: Getting error 127
- Re: Getting error 127
- Thread: makefile problem (error 127)
- makefile problem (error 127)
- Re: makefile problem (error 127)
- Getting «Build Error 127» when updating #2837
- Comments
- Background
- Your environment
- Steps to reproduce
- Expected behaviour
- Actual behaviour
- openssl: make[1]: *** [test_des] Error 127 on Bash on Windows #292
- Comments
make: *** [generate] Error 127
Maybe you will get the following error when you try to work with a go operator-sdk project you cloned from GitHub.
Here we see that simply the bin directory with the needed controller-gen , kustomize and setup-envtest files, wasn’t created by operator-sdk commands.
This blog post does address that topic for a macOS operating system and is structured in following sections:
- Fast solution
- Reproduce the problem
- Fix the problem
1. Fast solution
In short words we need just to copy the bin directory from an existing operator-sdk project we have on our machine and past it into the cloned project and it will work for our cloned project.
But we will have problems, when we create new projects with that installation setup using brew install operator-sdk .
(even when this is my preferred way 😦 because I want to avoid FATA[0009] failed to create API: unable to run post-scaffold tasks of “base.go.kubebuilder.io/v3”: exit status 2)
2. Reproduce the problem
We are using the currently available operator SDK version 19.1.0 which we installed using brew as described in the operator-sdk documentation.
Step 1: Clone a GO operator-sdk project from GitHub
Step 2: Run make generate and get the error
As we will see, there are files and bin folder missing.
bin/controller-gen: No such file or directory
Step 3: Verify operator-sdk version
Ensure you have operator-sdk version: «v1.19.1» installed.
3. Fix the problem for now
We are using an Operator SDK version that worked before, in my case I used 18.0.0 successfully some time ago. As far as I remember, golang version 1.17.6 was related to operator-sdk 18.0.0 version.
Note: If you want to install an older Operator SDK version with brew, that won’t work as there is only one brew formulae, as I found out. I hope that the brew installation will be fixed in the future.
So, we will do the following sequence to fix the problem:
- Uninstall the operator-sdk we installed with brew
- Install operator-sdk 18.0.0 using the binaries and install golang in version go 1.17.6
- Verify does the creation of a new operator project now include the bin and the related files
Step 1: Uninstall operator-sdk we installed with brew
Follow the steps outlined in one of my blog posts, but only for uninstalling. The current version of the operator-sdk in brew is 1.19.1 .
Источник
Thread: Getting error 127
Thread Tools
Display
Getting error 127
generating Makefile
SUCCESS
root@jeevan-Aspire-V7-482PG:/home/jeevan/Downloads/FLASH4.2.1# cd object
root@jeevan-Aspire-V7-482PG:/home/jeevan/Downloads/FLASH4.2.1/object# make
Calculating dependencies
./setup_depends.py —generateINTERMEDIATElines -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -I/usr/local/hdf5/include -DH5_USE_16_API -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 *.f *.f90 *.F90 *.F
./setup_addcdepends.py -I/usr/local/hdf5/include -DH5_USE_16_API -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 *.c
rm -f reorder.sh
/usr/local/mpich2//bin/mpif90 -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 Burn_interface.F90
make: /usr/local/mpich2//bin/mpif90: Command not found
Makefile:115: recipe for target ‘Burn_interface.o’ failed
make: *** [Burn_interface.o] Error 127
Can anyone help me with this error. It has been killing me for days
Re: Getting error 127
Well, it’s expecting to find a MPI-enabled (parallel) Fortran compiler (mpif90) in /usr/local/mpich2/bin — is there one? if not where is it?
Perhaps take a step back and tell us what software you are trying to build and what preliminary steps (installing prerequisites, configuring build tools etc.) you have taken
Re: Getting error 127
I am trying to insall a software named FLASH code. It has the following prerequisites:
1. F 90 and C compiler
2. Installed copy of Message-Passing interface (MPI)
3. HDF5
4. Parallel net CDF
5. GNU gmake
6. Python
# which mpif90
/home/jeevan/mpich-install/bin/mpif90
I havesuccessfully installed all the prerequisite software. The location of the mpif90 is shown as above. What can I do to run the program successfully. Thank you in advance.
Last edited by jeevan3; January 28th, 2015 at 07:25 PM .
Re: Getting error 127
You will need to figure out where the /usr/local/mpich2//bin/ path is coming from, I think
It may be hard-wired into the makefile, or (if the source package uses GNU autoconf) it may be deriving it from a ./configure script in which case look for a command-line option that allows you to override the default
Re: Getting error 127
I make changes to the the Path of mpif90 in the make file and it worked. Thank you so much
Источник
Thread: makefile problem (error 127)
Thread Tools
Display
makefile problem (error 127)
And everything works fine with it. When I try to add a new target «remake» which should essentially execute «clean» first and then «run», I get error 127.
I tried to switch «run» for «$(APP)» and got the same error. As far as I understand make executes the clean instruction, and then go on to execute the second (either run, whose first line is $(APP), or $(APP)). The problem, I think, is that it searches for a file named $(APP) instead of executing the target $(APP).
From a more general point of view, my real problem is that sometimes my program needs to change some macro value, which means to rewrite a certain header, and to recompile itself, but make does not care if an header has been modified, it only recompiles if a source has been. Also, I do not want to call «system()» twice from my program (C++), I would like to learn to do things more elegantly, which is why I want to create the «remake» target.
Last edited by Dirich; May 7th, 2013 at 01:22 PM .
Re: makefile problem (error 127)
I think the problem with how you’re trying to do it is that ‘run’ is a target, not an action — you could possibly achieve the same effect by using a recursive make
but there may be a better way using an additional phony target — I’m not a makefile expert (there are one or two on here though — so hopefully they will chime in)
I don’t really understand your second question — however there’s nothing to stop you having header files as well as source files as prerequisites for your build targets
Источник
Getting «Build Error 127» when updating #2837
Background
I am attempting to upgrade my installed version of LND and getting this error:
Your environment
version of lnd lnd version 0.5.2-99-beta commit=v0.5.1-beta-814- g2a652455aaea661b147b6adca0ff51edcd268508
which operating system ( uname -a on *Nix)
Ubuntu 16.04.6 x86_64
version of btcd , bitcoind , or other backend
bitcoind
Steps to reproduce
Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.
To update your version of lnd to the latest version run the following commands:
Expected behaviour
I expect to be update to update LND without error message.
Actual behaviour
I get the error message indicated above.
The text was updated successfully, but these errors were encountered:
The go binary is not in your PATH .
@wpaulino why isn’t it? I followed the instructions exactly as written in this repo.
Check your PATH , you may have installed Go in a slightly different directory. Also you can do which go to find where it’s pointing to atm.
As @Roasbeef suggested, use the following command to check your path setting:
I also use Ubuntu so I know the struggle when configuring the Go. If all the above not working, I suggest you remove and install Go again, directly installing tar package. Installation guide here. Following is tested and worked perfectly fine on my Ubuntu 18.04
Источник
openssl: make[1]: *** [test_des] Error 127 on Bash on Windows #292
The text was updated successfully, but these errors were encountered:
@rwhogg What it means «build-error»?
@ginolon it’s the label we add for when a formula does not build correctly.
Is openssl actually usable? I.e. is this just an extra error message or does openssl not work?
I’m afraid I personally cannot debug this problem as I don’t have access to a Windows machine to test with.
openssl doesn’t work. And I can’t install git with brew and many others packages. Why that error? Can I install previous version? Can I skip the make test phase?
To skip the test, run brew install openssl —without-test .
You can install a previous version by using git to checkout an earlier version of openssl.rb if you’d like.
To provide us with some more information, can you run brew gist-logs openssl (on the current version of openssl) please?
Running Linuxbrew on Windows Subsystem for Linux (WSL) has not yet been tested. There will probably be some fixes required. We’re happy to help if you’re up for the necessary troubleshooting.
This error message make[1]: *** [test_des] Error 127 means that make was not able to find the command test_des .
Do you happen to know if there’s a program where I can apply for a free developer’s license of Windows Subsystem for Linux to run in Virtualbox? I don’t have access to a Windows device.
Ok dear @rwhogg, it worked without-test, but many other errors below:
$ brew list makedepend openssl patchelf pkg-config xz zlib iouser@DESKTOP-4DIVL3A:
$ brew doctor Your system is ready to brew.»>
here it is what you ask (brew gist-logs openssl):
and here what strange is coming on my PC:
and then if I try to install something else:
That’s a strange error. I would ask the upstream developers of openssl if it makes sense to them.
I’m glad that the —without-test workaround worked for openssl.
Not sure about this error either. Please report brew gist-logs curl .
Do you happen to know if there’s a program where I can apply for a free developer’s license of Windows Subsystem for Linux to run in Virtualbox? I don’t have access to a Windows device.
Did Microsoft ever get back to you about that? Last I heard, when you asked them it was awaiting moderation.
No, I haven’t heard back from them. The public forum may not have been the right channel to ask, but I’m not sure what the right channel is.
As for the above errors, I’m thinking something like files in /tmp not being executable, but brew doctor checks for that and hasn’t reported any problems.
@sjackman, Here its is brew gist-logs curl :
Here’s the relevant line: https://gist.github.com/anonymous/1b99d5e8d492fc841905a78638c14d6a#file-02-make-L473
I’m afraid I can’t say what’s going on there without hands-on access to the machine. I would suggest contacting the upstream curl developers. I believe that they’re quite responsive.
As a total shot in the dark, try brew install zsh curl
patchelf: cannot execute binary file
Please report patchelf —version and ldd $(which patchelf)
Источник
Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco
- Форум русскоязычного сообщества Ubuntu »
- Поддержка »
- Настройка системы (Модераторы: Дмитрий Бо, www777) »
- make Error 127
- Печать
Страницы: [1] Вниз
Тема: make Error 127 (Прочитано 6851 раз)
0 Пользователей и 1 Гость просматривают эту тему.
w2e
Ubuntu 12.04
трей
—————————————————————————
000@1000:~/dd/dir320$ make kernel_menuconfig
что делать? кто нить знает?
make[1]: Entering directory `/home/000/dd/dir320/target/linux'
make[2]: Entering directory `/home/000/dd/dir320/target/linux/brcm47xx'
if [ -s "/home/000/dd/dir320/build_dir/linux-brcm47xx/linux-2.6.32.27/patches/series" ]; then (cd "/home/000/dd/dir320/build_dir/linux-brcm47xx/linux-2.6.32.27"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
make[2]: *** [/home/000/dd/dir320/build_dir/linux-brcm47xx/linux-2.6.32.27/.quilt_checked] Error 127
make[2]: Leaving directory `/home/000/dd/dir320/target/linux/brcm47xx'
make[1]: *** [menuconfig] Error 2
make[1]: Leaving directory `/home/000/dd/dir320/target/linux'
make: *** [kernel_menuconfig] Ошибка 2
Пользователь решил продолжить мысль 30 Июня 2012, 16:59:41:
проблема решена не хватала пакета quilt.
« Последнее редактирование: 30 Июня 2012, 16:59:41 от w2e »
victor00000
- Печать
Страницы: [1] Вверх
- Форум русскоязычного сообщества Ubuntu »
- Поддержка »
- Настройка системы (Модераторы: Дмитрий Бо, www777) »
- make Error 127
SMF 2.0.19 |
SMF © 2011, Simple Machines | Карта форума
Страница сгенерирована за 0.049 секунд. Запросов: 25.
Background
I am attempting to upgrade my installed version of LND and getting this error:
make clean && make && make install
/bin/sh: 1: go: not found
/bin/sh: 1: go: not found
Cleaning source.
rm -f ./lnd-debug ./lncli-debug
rm -f ./lnd-itest ./lncli-itest
rm -f -r ./vendor .vendor-new
/bin/sh: 1: go: not found
/bin/sh: 1: go: not found
Building debug lnd and lncli.
GO111MODULE=on go build -v -tags="dev" -o lnd-debug -ldflags "-X github.com/lightningnetwork/lnd/build.Commit=queue/v1.0.1-136-g6ad8be25e1aaf4700bd86303ae534cf36c6199bf" github.com/lightningnetwork/lnd
/bin/sh: 1: go: not found
Makefile:94: recipe for target 'build' failed
make: *** [build] Error 127
Your environment
-
version of
lnd
lnd version 0.5.2-99-beta commit=v0.5.1-beta-814- g2a652455aaea661b147b6adca0ff51edcd268508
-
which operating system (
uname -a
on *Nix)
Ubuntu 16.04.6 x86_64 -
version of
btcd
,bitcoind
, or other backend
bitcoind
Steps to reproduce
Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.
Following the update instructions:
To update your version of lnd to the latest version run the following commands:
cd $GOPATH/src/github.com/lightningnetwork/lnd
git pull
make clean && make && make install
Expected behaviour
I expect to be update to update LND without error message.
Actual behaviour
I get the error message indicated above.
/bin/sh: 1: go: not found
The go
binary is not in your PATH
.
@wpaulino why isn’t it? I followed the instructions exactly as written in this repo.
Check your PATH
, you may have installed Go in a slightly different directory. Also you can do which go
to find where it’s pointing to atm.
As @Roasbeef suggested, use the following command to check your path setting:
echo $GOPATH # this should point to your workspace echo $PATH go version # check go version, it should be at least 1.12 gedit ~/.profile # to modify PATH source ~/.profile # to activate changes
I also use Ubuntu so I know the struggle when configuring the Go. If all the above not working, I suggest you remove and install Go again, directly installing tar
package. Installation guide here. Following is tested and worked perfectly fine on my Ubuntu 18.04
which go # output like /usr/local/go/bin/go
rm -rvf /usr/local/go/
sudo apt-get remove golang-go
sudo apt-get remove --auto-remove golang-go
- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- New to Ubuntu
- [ubuntu] Getting error 127
-
generating Makefile
SUCCESS
root@jeevan-Aspire-V7-482PG:/home/jeevan/Downloads/FLASH4.2.1# cd object
root@jeevan-Aspire-V7-482PG:/home/jeevan/Downloads/FLASH4.2.1/object# make
Calculating dependencies
./setup_depends.py —generateINTERMEDIATElines -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -I/usr/local/hdf5/include -DH5_USE_16_API -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 *.f *.f90 *.F90 *.F
./setup_addcdepends.py -I/usr/local/hdf5/include -DH5_USE_16_API -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 *.c
rm -f reorder.sh
/usr/local/mpich2//bin/mpif90 -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 Burn_interface.F90
make: /usr/local/mpich2//bin/mpif90: Command not found
Makefile:115: recipe for target ‘Burn_interface.o’ failed
make: *** [Burn_interface.o] Error 127Can anyone help me with this error. It has been killing me for days
-
Re: Getting error 127
Well, it’s expecting to find a MPI-enabled (parallel) Fortran compiler (mpif90) in /usr/local/mpich2/bin — is there one? if not where is it?
Perhaps take a step back and tell us what software you are trying to build and what preliminary steps (installing prerequisites, configuring build tools etc.) you have taken
-
Re: Getting error 127
I am trying to insall a software named FLASH code. It has the following prerequisites:
1. F 90 and C compiler
2. Installed copy of Message-Passing interface (MPI)
3. HDF5
4. Parallel net CDF
5. GNU gmake
6. Pythonroot@jeevan-Aspire-V7-482PG:~# which mpif90
/home/jeevan/mpich-install/bin/mpif90I havesuccessfully installed all the prerequisite software. The location of the mpif90 is shown as above. What can I do to run the program successfully. Thank you in advance.
Last edited by jeevan3; January 28th, 2015 at 07:25 PM.
-
Re: Getting error 127
You will need to figure out where the /usr/local/mpich2//bin/ path is coming from, I think
It may be hard-wired into the makefile, or (if the source package uses GNU autoconf) it may be deriving it from a ./configure script in which case look for a command-line option that allows you to override the default
-
Re: Getting error 127
I make changes to the the Path of mpif90 in the make file and it worked. Thank you so much