'Lazy symbol binding failed: Symbol not found: __OSSwapInt16' on jailbroken iPhone when using gem commands - iphone

I'm having issues with Ruby on iOS 5.1.1. Any gem command fails. If I try to gem update:
mobile$ gem update
Updating installed gems
dyld: lazy symbol binding failed: Symbol not found: __OSSwapInt16 Referenced from: /usr/lib/ruby/1.9.1/arm-darwin9/socket.bundle
Expected in: flat namespace
dyld: Symbol not found: __OSSwapInt16
Referenced from: /usr/lib/ruby/1.9.1/arm-darwin9/socket.bundle
Expected in: flat namespace
Trace/BPT trap: 5
What's interesting is ruby -v shows 1.9.2:
mobile$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [arm-darwin9]
Any ideas on how to fix? I've tried removing Ruby package via Cydia and reinstalling but it's the same. I figured this might be relevant for people trying to use gems on their iOS device as I am.

I'm having the same issue. Removing (renaming) socket.bundle unsurprisingly yielded the following results:
ERROR: Loading command: update (LoadError)
no such file to load -- socket.so
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::UpdateCommand
Edit: I was able to get gem update to run successfully by downgrading from ruby 1.9.2-p0-10 to ruby 1.9.1-p429-6. When using 1.9.2, there were still references to 1.9.1 that seem to have been causing the error above.

Related

How to fix dyld: Library not loaded: #rpath/libtbb.dylib

i'm using HiC-Pro mapping program on macOS Catalina. When it's running the log says:
dyld: Library not loaded: #rpath/libtbb.dylib
Referenced from: /Applications/anaconda3/bin/bowtie2-align-s
Reason: image not found
(ERR): Description of arguments failed!
Exiting now ...
Does anyone know how to fix this library not loaded error message?
I just started getting this error, as well -- environments I had installed just a couple weeks ago that included Bowtie2 still work, but when I install a new environment with the same Conda yaml file today it is no longer working, with this same error.
Try installing tbb through
brew install tbb
This fixed the error for me for a different binary that threw the same error.

psql error dyld: lazy symbol binding failed: Symbol not found:

When I try to connect PostgreSQL locally by running as below,
$ /usr/local/pg10.11/bin/psql
Throghing below error,
dyld: lazy symbol binding failed: Symbol not found: _PQsetErrorContextVisibility
Referenced from: /usr/local/pg10.11/bin/psql
Expected in: /usr/lib/libpq.5.dylib
dyld: Symbol not found: _PQsetErrorContextVisibility
Referenced from: /usr/local/pg10.11/bin/psql
Expected in: /usr/lib/libpq.5.dylib
Abort trap: 6
This is started when I was upgraded PostgreSQL v10.11 to v11, before that it worked fine.
even I tried steps mentioned here but no luck.
Please help me here and appreciated the response.
Note: I didn't install PostgreSQL through brew, installed from source code.
Enviranment:
psql (PostgreSQL) 10.11
macOS Catalina version 10.15.1

mongodb dyld: Symbol not found: _fchmodat

I use OSX 10.9 and I've just installed Mongo DB in my /usr/local directory. Followed all the instructions, but when I type mongod in the command line I get this error:
dyld: Symbol not found: _fchmodat
Referenced from: /usr/local/mongodb/bin/mongod
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/mongodb/bin/mongod
Trace/BPT trap: 5
My ~/.bash_profile looks like this:
export MONGO_PATH=/usr/local/mongodb
export PATH=$PATH:$MONGO_PATH/bin
The item /usr/lib/libSystem.B.dylib does exist. I tried moving mongodb to my home directory and changed the path but still got the same error. What could be the problem?
Not really a solution but I downloaded an older version of Mongo DB and it works. Probably a bug that hasn't been fixed in 3.6.2

perlbrew _Perl_xs_apiversion_bootcheck error with perl 5.22.2

Using perlbrew to move from perl 5.16.0 to 5.22.2
Running on a MacBook Pro, OS X El Capitan
Install of new version of perl seemed to work just fine. However when I switch to 5.22.2 and attempt to run any of my scripts I see this error message.
dyld: lazy symbol binding failed: Symbol not found:
_Perl_xs_apiversion_bootcheck Referenced from: /Users/davidartus/perl5/lib/perl5/darwin-2level/auto/List/Util/Util.bundle
Expected in: dynamic lookup
dyld: Symbol not found: _Perl_xs_apiversion_bootcheck Referenced
from:
/Users/davidartus/perl5/lib/perl5/darwin-2level/auto/List/Util/Util.bundle
Expected in: dynamic lookup
Trace/BPT trap: 5
I've seen that some folks have had similar errors when their paths have been incorrect. My path is set by perlbrew and looks plausible to me.
/Users/me/perl5/perlbrew/bin:/Users/me/perl5/perlbrew/perls/perl-5.22.2/bin:/Users/me/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Suggestions please.

Cannot commit on Subversion using Xcode 4

I would know how can I solve this issue when I try to commit a file:
The working copy "PROJECT-NAME" failed
to commit files.
dyld: lazy symbol binding failed:
Symbol not found: _apr_stat$INODE64
Referenced from: /usr/bin/svn
Expected in: /usr/lib/libapr-1.0.dylib
dyld: Symbol not found:
_apr_stat$INODE64 Referenced from: /usr/bin/svn Expected in:
/usr/lib/libapr-1.0.dylib
I can list, checkout but I can't commit with Xcode.
I can use Versions or command line to commit. But I would like to be able to commit with Xcode too.
So I tried to change the dynamic library libapr-1.0 to a more recent library with this command from the shell:
sudo install_name_tool -change /usr/lib/libapr-1.0.dylib /usr/lib/libapr-1.0.3.8.dylib /usr/bin/svn
It appears Xcode won't list anymore, so what should I do? Any suggestion?
It looks like your 'svn' binary is broken.
You can update it to newest version by downloading and compiling source code of svn. There is really easy guide on apple.com:
http://developer.apple.com/tools/subversionxcode.html
(just skip to "Installing Subversion" section).
You can also ask someone to send you compiled binary.
I would suggest the following:
Install/reinstall the latest version of svn
If that doesn't work, reinstall Xcode