Function 'xsltParseStylesheetDoc' not found in [libxml2.so] - ruby-on-rails

This error comes up in Redhat Enterprise Linux Server 5.4 - 64 bit.
Linux rhl-64-tibbr5 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
There is also this error in the stack trace.
uninitialized constant Nokogiri::VERSION_INFO
More version details:
jruby-1.4.0RC1
ruby/gems/1.8/gems/activesupport-2.3.4
Any idea?

After wasting a few hours on this issue, we realized we didn't need nokogiri in our application. So we got it rid of it and these errors disappeared.
Note: these errors show up only on a 64 bit Linux machine ( like RHEL, Oracle Linux etc.,). We didn't see any errors with 32-bit operating systems ( both Win and Linux)

I faced similar errors when using Nokogiri with JRuby 1.4.0 (and higher). What turned out to be the problem was that the machine was 64-bit but the JRE that JRuby ended up using was 32-bit. Ensuring that JRuby was run using a 64-bit JRE on a 64-bit machine solved the issues for me.
Some specifics in this blog post.

Related

Delphi 10.4: Connection to a MS Access 2019 Database

After repairing a crashed MS Office 2019 I did not manage to reinstall the correct MS-Access database driver for my ADO Connnections on a X64 Win11 system.
I tried to install alternatively the database engines 2010 and 2016, but neither of them was shown.
Does anyone have a hint?
Oswald
Solution:
Download 32-bit Driver
From command-line: Driver.exe /passive
Oswald
Here a longer description of the way to a solution:
My skills are just scratching the surface, I'm afraid. What I know: The IDE of Delphi 10.4 is 32-bit und doesn't work with the 64-bit database engine of Microsoft.
The complete process for getting a working system has been:
Download both (32-bit and 64-bit) drivers
First install the 64-bit driver (not shown in IDE)
Then install from command-line 32-bit driver: accessdatabaseengine.exe /passive
Trying to install a 32-bit driver on a 64-bit Win11-system will raise an error, while not having installed the 64-bit driver first.
Maybe somebody is able to explain this in more depth. I am not…
Oswald

Getting "Unusable Erlang runtime system!" when trying to run on Amazon Linux 2

I am compiling an elixir app on Ubuntu 18.04 in github actions and trying to run it in an Amazon Linux 2 system and I get the error "Unusable Erlang runtime system! This is likely due to being compiled for another system than the host is running"
I checked to make sure both were running on an x86_64 system and that does appear to be the case.
Github Actions Ubuntu uname: Linux fv-az21-804 5.4.0-1036-azure #38~18.04.1-Ubuntu SMP Wed Jan 6 18:26:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Amazon Linux 2 uname: Linux ip-172-10-201-177.ec2.internal 4.14.209-160.339.amzn2.x86_64 #1 SMP Wed Dec 16 22:44:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
OTP Version: 23.2.1
Elixir Version: 1.11.3
I am at a loss as to what could be going on. Any thoughts?
This is usually the case when there is a mismatch of Erlang versions.
Scenario:
Building with alpine-elixir:1.7.3
Served with alpine:latest
Try and see if the Erlang version is consistent.
The OP asks in the comments:
Is it possible the problem is in the libc mismatch between ubuntu using glibc and alpine using musl?
That is a possible root cause indeed. The test would be to compile it using the same libc.

PyScripter always says: "Python could not be properly initialized. We must quit."

I've googled for a solution, and based on that, let me report a few details:
I've tried 32-bit PyScripter-v2.6.0-Setup.exe with 32-bit python-3.6.1.exe; and 64-bit PyScripter-v2.6.0-x64-Setup.exe with 64-bit python-3.6.1-amd64-webinstall.exe.
I'm on a 64-bit Windows 10 machine.
I uninstalled other versions of Python on the machine.
Tried unzipping rpyc in the \Lib\ folder, as someone suggested that here.
What else should I be looking at?
Here is a tested Solution
Remove old PyScripter
Install Python from Python website. I installed mine from:
http://www.python.org/ftp/python/3.3.2/python-3.3.2.amd64.msi (and it worked)
Now install PyScripter-v2.6.0-x64-Setup.exe from https://sourceforge.net/projects/pyscripter/files/
This should solve the problem.
I got this solution from https: //github.com/pyscripter/pyscripter/issues/715
You are using an old version of Pyscripter. Version 3.4 from https://sourceforge.net/projects/pyscripter/ provides support for all released python versions, virtual environments, conda distibutions and the ability to switch between them without exiting Pyscripter.

Can't insert spaces in code editors

Since i recently installed CodeBlocks, I can't insert spaces in codeblocks, codelite or mysql-workbench editors.
When i press space the editor interprets it as a completion key unless there is no word to complete.
The only way to insert a blank space is to press "Supper+Space".
I tried to remove CodeBlocks and CodeLite but the problem persists in Mysql Workbench.
Configuration :
uname -a :
Linux slxpc 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/version
Linux version 3.2.0-57-generic (buildd#toyol) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013
mysql-workbench --version
MySQL Workbench CE (GPL) 6.0.8 11354 build 833
CodeBlocks version : 10.05
FYI : I don't have this problem in geany and leafpad.
The common base for these 2 editors (codelite / codeblocks) is that both are using wxWidgets as their underlying GUI toolkit.
So its probably related to this fact.
You failed to mention 2 important details:
Your keyboard layout ( I assume that you don't use standard keyboard )
Your codelite version
I can advise you for codelite
Upgrade to the latest version of codelite (which uses a much more recent of wxWidgets). You won't find the latest version of codelite in Ubuntu's repositories since its using an up-to-date version of wxWidgets which is not included by Ubuntu's packagers, you can however, find it in codelite's repository: codelite download page
Once installed, it should fix your problem. If the problem persists, change the code completion keyboard shortcut to something else (e.g. Ctrl-ENTER) from Settings -> Keyboard Shortcut
If both methods fails, you can always switch to work with standard keyboard
HTH,
Eran

Snow Leopard install Ruby on Rails (with MySQL)

I've done a clean re-install of OS X Snow Leopard, so there's nothing on my system at all.
I've installed Xcode and I'm ready to install Rails.
However, my system is a MacBook (MacBook2,1) and apparently it doesn't support 64-bit by default. Apple is going to add this at a later date.
How would I go about installing Rails? Do I go about it the normal way?
How about MySQL, do I need the 64-bit binary?
Most of the time (maybe always, I'm not really sure) you can run binaries compiled for 32 bit even if your system is 64 bit. They just won't have any benefits of 64 bit (either storing bigger things or processing stuff faster).
If your macbook is a recent one it has 64 bit support (Core 2 Duo processor), if it is an older version (Core Duo) it is 32 bit. You can determine the processor type by checking 'About this Mac' in the Apple menu.
You can certainly install the 64-bit packages. They will be able to access the memory space and every advantage of running with 64bits. The only thing that won't boot in 64bit is the Kernel, but it's not something to be worrying about for the moment.
Check out the Hivelogic's guide for installing MySQL, Rails and Ruby on Snow Leopard:
MySQL
Git
Ruby, Rails
Your MacBook does support 64bit, but it cannot boot in 64bit mode. You should be able to install 64bit binary packages just fine.
You should definitely install the 64-bit binory packages such as mysql.

Resources