Can't install lua package using luarocks due to conflicting architecture - dll

I'm getting the following error when trying to install the lpeg library using luarocks:
lptree.obj : error LNK2019: unresolved external symbol luaL_checkudata referenced in function lp_gc
C:\Program Files (x86)\Lua\5.1\lib\lua5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
lpeg.dll : fatal error LNK1120: 55 unresolved externals
Error: Build error: Failed installing lpeg.dll in C:\Program Files (x86)\Lua\5.1\rocks/lpeg/1.0.2-1/lib
I'm using the following version of lua:
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
And the following version of luarocks:
luarocks 2.0.2
LuaRocks main command-line interface
I installed lpeg using the command provided here namely:
luarocks install lpeg
I'm not sure what I'm doing wrong. Any ideas?

Related

How can I resolve this installation error of Msys2

I downloaded the Msys2 32bit installer and wanted to set up everything as described here: https://www.msys2.org/
the $pacman -Syu only gives me the following error:
error: mingw32: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown
What does this mean and how can I fix it?

Problems configuring Cmake via macports

I get the following error message when trying to install inkscape via Macports:
$ sudo port install inkscape
---> Computing dependencies for cmake
---> Configuring cmake
Error: Failed to configure cmake: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log for details.
Error: Unable to execute port: upgrade cmake failed Christian-Tofts-MacBook-Pro:~ clta$
Im running High Sierra OS and port version 2.5.4
Any input on how to fix this?

Getting code=10053 error while installing groovy-eclipse on Eclipse IDE (Oxygen) for Eclipse Committers

After following the steps in https://github.com/groovy/groovy-eclipse/blob/master/docs/Getting-Started-with-Groovy-Eclipse-Source-Code.md (on macOS High Sierra) getting an error:
ERROR: org.eclipse.equinox.p2.director code=10053 Cannot complete the install because one or more required items could not be found.
ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1527811536694
ERROR: org.eclipse.equinox.p2.director code=0 Missing requirement: artificial_root 1.0.0.v1527811536694 requires 'org.codehaus.groovy.alltests.feature.feature.group 0.0.0' but it could not be found
I am not sure why org.codehaus.groovy.alltests is not found and whether the version 0.0.0 is legit here.
I tried to make a clean installation too (deleted ~/.gradle, ~/.p2 dirs) - did not help.

Error running puppet

I've just installed puppet 3.8.4 on OSX 10.5.5. When running puppet --version from the command line to check the installation I get the following error:
macbook-MBP:~ richard$ puppet --version
dyld: lazy symbol binding failed: Symbol not found: _rb_ary_new_from_values
Referenced from: /Users/richard/.rvm/gems/ruby-2.2.2#global/gems/psych-2.0.15/lib/psych.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_ary_new_from_values
Referenced from: /Users/richard/.rvm/gems/ruby-2.2.2#global/gems/psych-2.0.15/lib/psych.bundle
Expected in: flat namespace
Any ideas why this is happening?
Puppet 3.x has no support for Ruby 2.2.
You will have to either
try and install Ruby 2.1
try and install Puppet 4
Puppet 4 has limited compatibility with 3, so going for an alternate Ruby will likely be easier, depending on your existing infrastructure.

Error installing ruby packages

I used the following command to run the installation
curl -L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
I then received a error
I then checked the error, and below is the log,
[2013-05-18 12:11:22] requirements_osx_port_libs_install
Error:
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.6.1
Error:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for apple-gcc42
---> Dependencies to be installed: cctools ld64 llvm-3.2 gcc_select
---> Building llvm-3.2
Error: org.macports.build for port llvm-3.2 returned: command execution failed
Error: Failed to install llvm-3.2
Please see the log file for port llvm-3.2 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.2/llvm-3.2/main.log
Error: The following dependencies were not installed: cctools ld64 llvm-3.2 gcc_select
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port apple-gcc42 failed
There were package installation errors, make sure to read the log.
I checked my xcode version (I'm still subscribed to the $99, if that means anything), and it says this
xcode-select version 2003
How do I solve the problem?
I fixed the problem. Thanks for all the comments.
I was installing rvm last night, and my internet connection got cut off. That corrupted the installation. The problem was with Xcode. I uninstalled then install again, and then re install rvm, and it worked.