When running Go code on Mac M2 (important, because installation of related libs work differently on Linux) that imports "github.com/zergon321/reisen" I got this:
# github.com/zergon321/reisen
/Users/ido/go/pkg/mod/github.com/zergon321/reisen#v0.1.4/audio.go:4:11: fatal error: 'libavcodec/avcodec.h' file not found
#include <libavcodec/avcodec.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
I have ffmpeg (includes the libavcodec/avcodec.h header) installed using brew
brew install ffmpeg
but it doesn't get picked up by itself.
This worked to fix it:
If you indeed installed ffmpeg with brew, the header file should be there -> /opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavcodec/avcodec.h (lib version could be different).
If it is not there for some reason, you can try to locate the header file using find / -name "avcodec.h"
Once you have established avcodec.h's location, note the full path to the /include directory and run your go code passing the following flag:
CGO_CPPFLAGS="-I<path/to/include/directory>" go run <your file name or a period>
The full command for me looked like this:
CGO_CPPFLAGS="-I/opt/homebrew/Cellar/ffmpeg/5.1.2/include" go run .
# Been stuck on this for a day and a half, am very new to python and am trying to create a virtual >environment with python=3.6 anaconda
everything downloads and I run into the >following error:
>Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
ERROR conda.core.link:_execute(733): An error >occurred while installing package 'defaults::qt->5.9.7-vc14h73c81de_0'.
Rolling back transaction: ...working... done
LinkError: post-link script failed for package >defaults::qt-5.9.7-vc14h73c81de_0
location of failed script: >C:\Anaconda\envs\PythonData\Scripts.qt-post->link.bat
==> script messages <==
>
==> script output <==
stdout: 1 file(s) copied.
stderr: 'chcp' is not recognized as an internal >or external command,
operable program or batch file.
'chcp' is not recognized as an internal or >external command,
operable program or batch file.
'chcp' is not recognized as an internal or >external command,
operable program or batch file.
return code: 1
()
Any ideas would be greatly appreciated, online
>searches return minimal results.
We are experimenting with using RSPec for our UI tests and noted that while attempting to integrate these with TeamCity we end up with environment related errors. The problem is that when we run these tests locally on the build server they run without any errors.
We are trying to execute the login test within a working directory located on the build server with a Command Line or Powershell:
cd D:\web_smoke_tests-master
gem install bundler
rake cloud:chrome
We are returning the following error in our build log despite the environment containing all of the ruby dependencies. Note that this is a windows build server / build agent.
[21:31:30]Step 3/5: Execute login test (Command Line)
[21:31:30][Step 3/5] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script #edited out
[21:31:30][Step 3/5] in directory: D:\web_smoke_tests-master
[21:31:30][Step 3/5] 'gem' is not recognized as an internal or external command,
[21:31:30][Step 3/5] operable program or batch file.
[21:31:30][Step 3/5] 'rake' is not recognized as an internal or external command,
[21:31:30][Step 3/5] operable program or batch file.
[21:31:30][Step 3/5] Process exited with code 1
[21:31:30][Step 3/5] Step Execute login test (Command Line) failed
Regarding the above. This was due to the user containing the build agent not having any ruby dependencies installed and as a result "gem" or "rake" were not recognized.
C:\rabbitmq-server-3.6.0\scripts>rabbitmq-plugins enable rabbitmq_management
'realpath' is not recognized as an internal or external command,
operable program or batch file.
init terminating in do_boot ()
'realpath' is not recognized as an internal or external command,
operable program or batch file.
init terminating in do_boot ()
'realpath' is not recognized as an internal or external command,
operable program or batch file.
{"init terminating in do_boot",{undef,[{rabbit_plugins_main,start,[],[]},{init,start_it,1,[{file,"init.erl"},{line,1053}]},{init,start_em,1[{file,"init.erl"},{line,1034}]}]}}
init terminating in do_boot ()
C:\rabbitmq-server-3.6.0\scripts>rabbitmq-server
realpath' is not recognized as an internal or external command,
operable program or batch file.
{"init terminating in do_boot",{undef,[{rabbit_prelaunch,start,[],[]},{init,start_it,1,[{file,"init.erl"},{line,1053}]},{init,start_em,1[{file,"init.erl"},{line,1034}]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
I am using erlang version 7.0 and rabbitmq 3.6.0
I have set environment variables as follows
ERLANG_HOME - C:\Program Files\erl7.0
RABBITMQ_SERVER - C:\rabbitmq-server-3.6.0
Please Help
For windows
Open command prompt
change directory to C:\Program Files\RabbitMQ Server\rabbitmq_server-
3.7.12\sbin
type command rabbitmq-plugins enable rabbitmq_management
There are likely some additional steps you need to follow for Windows OS:
Rabbitmq manual for Windows
I am trying to run a Makefile, and coming up with this error:
thrift/TDispatch processor.h No such file or directory
compilation terminated
Thrift is installed in /usr/local/bin/thrift, I have make sure by writing thrift in terminal.