I am working on old Rails project. And when I type rake db:create I am getting following error message:
dyld: lazy symbol binding failed: Symbol not found: _vio_blocking
Referenced from: /Users/reboot/.rvm/gems/ruby-1.8.7-head/gems/mysqlplus-0.1.2/lib/mysql.bundle
Expected in: flat namespace
dyld: Symbol not found: _vio_blocking
Referenced from: /Users/reboot/.rvm/gems/ruby-1.8.7-head/gems/mysqlplus-0.1.2/lib/mysql.bundle
Expected in: flat namespace
I don't know how to solve this problem.
Below are some details about project.
Ruby 1.8.7
Rails 2.3.18
DB mysql
Gems
"will_paginate"
"daemons"
"json"
"mysqlplus"
"RedCloth"
"newrelic_rpm"
Path on .zshrc file
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Path set by .rvm
export PATH="$PATH:$HOME/.rvm/bin"
Related
Mac OS Catalina 10.15.5
MySQL Server 8.0.20
Rails 6.0.2.2
Ruby 2.7.1
MySQL2 Gem 0.5.3
When I do a Bundle Install, I get the following error:
Error:[rake --tasks] rake aborted!
LoadError: dlopen(/Users/my-mac/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 9): Library not loaded: libssl.1.1.dylib
Referenced from: /Users/my-mac/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/my-mac/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle
I did a search for the file:
libssl.1.1.dylib
On my drive, and came up with two of them:
/usr/local/Cellar/openssl#1.1/1.1.1g/lib/libssl.1.1.dylib
And
/usr/local/mysql-8.0.20-macos10.15-x86_64/lib/libssl.1.1.dylib
And that last one also has a couple of aliases.
Any idea what's going on here?
I'm new and I have a problem with VSCode. I am getting the following error when running ng serve:
PS C:\Windows\System32\x-app> ng serve --configuration=it
An unhandled exception occurred: Workspace config file cannot le loaded: C:\Windows\System32\x-app\angular.json
Invalid JSON character: "\"" at 73:7.
See "C:\Users\C-PROJ~1\AppData\Local\Temp\ng-LpcKJr\angular-errors.log" for further details
[error] Error: Workspace config file cannot le loaded: C:\Windows\System32\x-app\angular.json
Invalid JSON character: "\"" at 73:7.
at Object.getWorkspace (C:\Windows\System32\x-app\node_modules\#angular\cli\utilities\config.js:59:15)
at ServeCommand.validateScope (C:\Windows\System32\x-app\node_modules\#angular\cli\models\command.js:97:60)
at ServeCommand.validateAndRun (C:\Windows\System32\x-app\node_modules\#angular\cli\models\command.js:122:24)
at Object.runCommand (C:\Windows\System32\x-app\node_modules\#angular\cli\models\command-runner.js:185:38)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
I use prettier, in fa,ct I noticed that there was an oversight about internalization. I fixed the json file, and returned the command ng serve --configuration=it, but the result is another error.
PS C:\Windows\System32\x-app> ng serve --configuration=it
An unhandled exception occurred: Project does not exist.
See "C:\Users\C-PROJ~1\AppData\Local\Temp\ng-IomfPN\angular-errors.log" for further details.
[error] Error: Project does not exist.
at WorkspaceNodeModulesArchitectHost.findProjectTarget (C:\Windows\System32\x-app\node_modules\#angular-devkit\architect\node\node-modules-architect-host.js:94:23)
at WorkspaceNodeModulesArchitectHost.getOptionsForTarget (C:\Windows\System32\x-app\node_modules\#angular-devkit\architect\node\node-modules-architect-host.js:66:33)
at core_1.experimental.jobs.createJobHandler.target (C:\Windows\System32\x-app\node_modules\#angular-devkit\architect\src\architect.js:171:21)
at Observable.rxjs_1.Observable.subject [as _subscribe] (C:\Windows\System32\x-app\node_modules\#angular-devkit\core\src\experimental\jobs\create-job-handler.js:91:26)
at Observable._trySubscribe (C:\Windows\System32\x-app\node_modules\rxjs\internal\Observable.js:44:25)
at Observable.subscribe (C:\Windows\System32\x-app\node_modules\rxjs\internal\Observable.js:30:22)
at C:\Windows\System32\x-app\node_modules\rxjs\internal\util\subscribeTo.js:22:31
at Object.subscribeToResult (C:\Windows\System32\x-app\node_modules\rxjs\internal\util\subscribeToResult.js:10:45)
at SwitchMapSubscriber._innerSub (C:\Windows\System32\x-app\node_modules\rxjs\internal\operators\switchMap.js:65:54)
at SwitchMapSubscriber._next (C:\Windows\System32\x-app\node_modules\rxjs\internal\operators\switchMap.js:55:14)
at SwitchMapSubscriber.Subscriber.next (C:\Windows\System32\x-app\node_modules\rxjs\internal\Subscriber.js:66:18)
at SwitchMapSubscriber.notifyNext (C:\Windows\System32\x-app\node_modules\rxjs\internal\operators\switchMap.js:86:26)
at InnerSubscriber._next (C:\Windows\System32\x-app\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (C:\Windows\System32\x-app\node_modules\rxjs\internal\Subscriber.js:66:18)
at MapSubscriber._next (C:\Windows\System32\x-app\node_modules\rxjs\internal\operators\map.js:55:26)
at MapSubscriber.Subscriber.next (C:\Windows\System32\x-app\node_modules\rxjs\internal\Subscriber.js:66:18)
your angular.json is probably malformed. please check if the file complies to the json standard. you may use tools like prettier to format the json.
I have created new ruby on rails project with mysql database.
I have run mysql server by running mysql.server start
When I try to run rake db:create, I got following error:
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
Expected in: flat namespace
dyld: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
Expected in: flat namespace
Anybody can solve this issue?
Please reachout me. Regards.
The salient details are that you need to update the DYLD_LIBRARY_PATH to include /usr/local/mysql/lib. The easiest way of doing that is to add the following to your ~/.bashrc file:
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
I went into a little more detail in a blog post here: http://www.bartbusschots.ie/blog/?p=2186
Can anyone throw any light on the following error importing System.Data:
/home/baloo/HellooCSharp/HellooCSharp/HellooCSharp.cs(14,14): Error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing `System.Data' assembly reference? (CS0234) (HellooCSharp)
Build command:
Building: HellooCSharp (Debug|x86)
Performing main compilation...
/usr/bin/mcs /noconfig "/r:/usr/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/home/baloo/HellooCSharp/HellooCSharp/bin/Debug/HellooCSharp.exe" "/r:/usr/lib/mono/4.5/System.dll" "/r:/usr/lib/mono/4.5/System.Core.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 /platform:x86 "/define:DEBUG" /t:exe "/home/baloo/HellooCSharp/HellooCSharp/Properties/AssemblyInfo.cs" "/home/baloo/HellooCSharp/HellooCSharp/HellooCSharp.cs"
Compilation failed: 2 error(s), 0 warnings
The assembly ca be found in /usr/lib/mono/4.5, which has been duly configured in the build assembly folders preferences dialog. [Edit: mcs compiles the test code fine with this added to the command line.]
Fedora 23, mono-core and -data rpm version 4.0.5. [Edit: MonoDevelop Version 5.9.7 (build 9)]
Hint: Are you missing `System.Data' assembly reference?
You need to reference System.Data in order for it to be found/resolved.
Importing System does not import System.Data
To resolve this you just need to do edit edit references and check the system.Data.
I've pulled down a new Django repository that uses MySQL and after installing it I'm getting some weird errors when I go to run the syncdb command
I initially get the following error
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Users/splashlin/Developer/project/venv/lib/python2.7/site-packages/_mysql.so, 2): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
Referenced from: /Users/splashlin/Developer/project/venv/lib/python2.7/site-packages/_mysql.so
Reason: image not found
I've tried fixing it with
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib /Library/Python/2.7/site-packages/_mysql.so
but just get
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Library/Python/2.7/site-packages/_mysql.so (No such file or directory)
Anyone have any ideas on how to move forward to resolve the issue? Pretty stuck right now. Thanks!
Try to download and install (or reinstall) the MySql's connector for Python
http://dev.mysql.com/downloads/connector/python/
Greetings