Whenever I run haxelib selfupdate I get the following error:
Error writing file /usr/bin/haxelib. Please ensure you have write permissions.
[file_open,/usr/bin/haxelib]
I tried to change the owner and group of /usr /usr/bin and /usr/bin/haxelib to my own user and group to no use. I get the same error :/
If I try to run haxelib as administrator, it requires me to make a new haxelib setup (I guess it is one setup per user). Once I did the setup and ran sudo haxelib selfupdate I got the folloing error:
Error compiling haxelib client: Standard library not found
I tried to found more resources on how haxelib works and is organized to try to solve this issue but I couldn't. Could anyone explain me what I am missing? I know it is very silly but I can't get it to word.
Since commit the command haxelib selfupdate is deprecated and will be removed in future. There more changes.
Use haxelib --global update haxelib instead.
Related
When I run the config file for installing GSL library for Windows 10 I get the following error:
error: Something went wrong bootstrapping makefile fragments for
automatic dependency tracking. If GNU make was not used, consider
re-running the configure script with MAKE="gmake" (or whatever is
necessary). You can also try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency
tracking).
If I run ./config MAKE="gmake" I still get the error. I have searched in StackOverflow and on the web and still haven't found a solution.
I am trying to run my Rhizovision Imager software, but when I hit the app to execute, I am prompted with the errors that says I am missing .dll files. I was wondering if anyone else has had this problem? For example, an error pops up that I am missing "gcbase_md_vc120_v3_0_v5_0.dll"
I found this occurs if you have a different version of Pylon installed. Download and install the following "pylon_5_Runtime_5.0.12.11830". If you also wish to install the Pylon Viewer, download and install that first, then re-install the 5_Runtime above. Hope that helps!
I wanted to test out Pocketsphinx in Node.JS. It says I need to install Swig version 3.0.7 or above.
I think I installed all the other dependencies correctly. I can even type Swig commands in the Terminal now, but I keep getting this error whenever I run npm install pocketsphinx:
CMake Error at /usr/local/Cellar/cmake/3.6.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find SWIG (missing: SWIG_DIR) (Required is at least version
"3.0.7")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.6.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.6.3/share/cmake/Modules/FindSWIG.cmake:75 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:4 (find_package)
I tried brew install swig, npm install swig, and npm install -g swig. I tried going to the swig download page and following the installation instructions, but nothing I seem to do stops the error from happening. I'm trying this on a Macbook by the way.
I really have no clue what I'm doing here. I just wanted to test out Pocketsphinx and now I've installed Swig in 4 different places, and CMake can't seem to recognise any of them.
Any help would be wonderful!
Came here looking for the Windows-based error. I found a solution that seems to work for me, so decided to post it here.
Create two environment variables in the "System Variables" section: SWIG_DIR and SWIG_EXECUTABLE. These must point to /path/to/the/swig/dir/ and /path/to/the/swig/dir/swig.exe respectively.
After this, add one more entry to the PATH variable: /path/to/the/swig/dir. Test this out by typing swig in the command prompt. It should display a message must specify an input file. Use -help for available options.
Restart the computer to apply all environment variable changes. find_package(SWIG required) should work correctly now.
Check the source code for the FindSwig.cmake.
Unfortunately, if a find script does not work as expected and you do not see right away why that is the case, you usually have to dig into its source. In your case, it looks like CMake was able to find and run the SWIG executable, but then failed to obtain the swig directory.
Try manually running swig -swiglib and check that the printed directory indeed contains a swig.swg file. Also, be sure that the swig executable found by CMake is actually the correct one (you can verify this by inspecting the value of SWIG_EXECUTABLE in either the cmake-gui, the ccmake curses interface, or in the CMakeCache.txt file directly).
Note that CMake will not update the executable path once it has been found! So if you make changes to your system that influence the executable location, you will have to clear the cache (eg. by deleting the CMakeCache.txt) and re-run CMake for the changes to take effect.
I tried to work it out for myself. The problem was when I typed npm install swig.
I forgot to set up this version of Swig, and the compiler was using it.
I typed sudo npm uninstall swig and it worked perfectly. I feel very stupid!
Everything was working perfectly last month, my Cordova projects were building with no problems but suddenly nothing works. Not even the Cordova Hello World example.
I can create a Cordova project.
But when I try to build it I get errors.
I'm using Ubuntu 14.04. When I try build a project with
cordova build
I get a whole bunch of acces errors
rm: could not remove file (code EACCES):
and
Error: EACCES, permission denied
then when I try to build a project with sudo I get the following errors
[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]
and
Command failed with exit code 2. You may not have the required environment or OS to build this project
Running export in terminal doesn't solve the problem either as my android-sdk is installed in a folder called Software/android-sdk-linux and
echo $ANDROID_HOME
returns the correct path
Any idea whats actually going on here. Do I really need to uninstall everything and start from scratch? say it aint so!
I have been working on that issue for the last two hours. Somehow I managed to make it work. Here's what I did:
I also had those Error: EACCES, permission denied messages when running cordova build. Running ll on the directory of the project showed, that the folders platforms, plugins and www needed root rights. That's why we had to run the cordova build with sudo. Maybe both, you and me, created this cordova project with sudo cordova create .... Try this: Create another cordova project and check if the named folders still need root rights. If yes, change them with chmod. If not, you should now be able to run cordova build without sudo.
Make sure you added the PATH variable in the correct way. Either add the export ANDROID_HOME=... to your ~/.bashrc or to your ~/.profile. When doing the latter, make sure you run source ~/.profile after editing the file. Otherwise your bash won't notice the changes. Best practise would be adding this to your ~/.bashrc.
export ANDROID_HOME=~/.../android-sdk-linux
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
You should be able to run android in your bash, before trying to build a cordova project, because cordova uses that command.
Hope that works for you, too.
I followed the instructions here to install pear and download drush in usr/local/src folder and create the symlink in usr/bin/drush
At the end of the instructions is says you can test by running drush. I get this output:
-bash: /cygdrive/c/xampp/php/drush: No such file or directory
Not the bash root of xampp/php. Does that need to be changed?
So, then I tried running /usr/bin/drush and got this output:
Unable to untar C:\cygwin\usr\local\src\drush\lib\dru6B61.tmp.
[error]
Does anyone know where I'm going wrong here?
I had the same issue. I reinstalled the cygwin packages above in the tutorial you mentioned above(I had them already from other installs, I thought). I think it may have been the 'bsdtar' package.
Good luck!