Upgrade sqlite3 to custom package - sqlite

I have a server running centos7 with sqlite3 installed using Yum/rpm. By default the sqlite package is not compiled with the extension JSON1 which I need. The extension can be enabled when the package is compiled using the flag -DSQLITE_ENABLE_JSON1 After working at it for a full day I've managed to find the RPM source files, updated the spec so it compiles with the flag, and recompiled it into a new package. Now I can run rpm -U current-sqlite-package.rpm custom-sqlite-package.rpm and upgrade to my custom package. Both yum and rpm say that the package but when I run /user/bin/sqlite3 --version it is still the old version.
How do I upgrade to my custom package?
How does yum/rpm packages tie to the software in /user/bin?

Current versions of SQLite3 support runtime extension loading. So you can just download and compile the JSON1 extension as a separate .so file and load it via .load ~/path/to/json1.so
This will allow you to receive updates for SQLite via the default package manager and no need to rebuild it yourself.

Related

Drupal 9 - Unable to install package with composer

How can I add a new package to the vendor folder by using the composer. I tried to use the composer command composer require [package-name]. However, I tried but I was getting an error telling me "./compose.json" is not a UTF-8. After several attempts to configure some PHP options and execute the same command, the package was downloaded, but in a different path than the drupal-9.x.x/vendor/package-name-folder path. But there is another path inside the drupal-9.x.x/core folder. The package name is included in the composer.json file in the drupal-9.x.x/core folder path.
The question here is how can I insert a new package using the composer command into the Drupal project, and is it possible to link this package to a custom module so that it is from the installation dependencies?
I found the problem seems to be related to eclipse ide and trying to open the composer .json file through the ide and using the ide options to download and install the package
What I did was use the git bash and I executed the composer command and the package was downloaded as required

How to Install qt4 on macOS with homebrew?

I need to install the qt4 C++ framework for one of my classes. I tried using the regular installer from the download archives page for both qt4.7 and qt4.8, however I get the warning:
"Installing this package may damage your system, and the installation may fail."
So I looked into installing it via homebrew and initially tried:
brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt#4
However, that gives me this error:
Error: Calling brew tap-pin user/tap is disabled! Use fully-scoped user/tap/formula naming instead.
I looked online for a solution and was able to install it by omitting the brew tap-pin cartr/qt4 command:
brew tap cartr/qt4
brew install qt#4
I then tried to create a sample qt program in the CLion IDE and checked the version I was using, and it said I was using qt5 (from the python anaconda distribution). So my question is, can I install both qt4 and qt5 on my system simultaneously? How do I select which version to use?
You can install both simultaneously. You can select which to use.
When you install qt (meaning qt5) using homebrew, it produces a "Caveats" message that answers your question.
It says will need to set certain environment variables yourself.
It says that, in only those shell sessions where you set those environment variables, qt (meaning qt5) will be available.
It says, if you want qt always available, then you can simply put those settings in your dot files.
If you install qt#4 and set those same variables to point to qt#4, then qt#4 will be available instead.
You can view the same "Caveats" message again using brew info qt. Here is the whole message:
qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.
If you need to have qt first in your PATH run:
echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.zshrc
For compilers to find qt you may need to set:
export LDFLAGS="-L/usr/local/opt/qt/lib"
export CPPFLAGS="-I/usr/local/opt/qt/include"
For pkg-config to find qt you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig"
The same commands with qt#4 made qt#4 available for me:
export PATH="/usr/local/opt/qt#4/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/qt#4/lib"
export CPPFLAGS="-I/usr/local/opt/qt#4/include"
export PKG_CONFIG_PATH="/usr/local/opt/qt#4/lib/pkgconfig"
By the way, I installed qt#4 using the user/tap/formula syntax: brew install cartr/qt4/qt#4

Installing CodeDOM providers with command line

I am trying to install "CodeDOM Providers for .NET Compiler Platform ("Roslyn")". I have downloaded the command line executable from here : https://dist.nuget.org/index.html
But when I launch it, it opens, writes something and instantly closes.
I do not have time to write any command to install a package.
nuget.exe is a command line application. If you open a command prompt or terminal window and run nuget.exe it will show you help information about supported commands.
The commands for nuget.exe are also documented on the nuget.org web site.
To download a NuGet package using nuget.exe you run:
nuget install PackageId
Replacing the PackageId with the id of the NuGet package you want. In your case it should be something like:
nuget install Microsoft.CodeDom.Providers.DotNetCompilerPlatform

QtWebKit gstreamer1.0 not found

I want to compile PhantomJS with gstreamer. I downloaded the source code and started the build process with
./build.sh --qmake-args WEBKIT_CONFIG+='use_gstreamer'
I get the following Error
Project ERROR: gstreamer-1.0 development package not found
I have an debian 8.0 system with installed libgstreamer1.0 and glib2.0 (installed with apt-get).
Can someone help me?
If you haven't installed them, you'll need the development packages as well which should be something like libgstreamer(X.X.X)-dev, where X.X.X is whichever version of gstreamer you have installed. The development package has the necessary header files required for compilation.
you may need to modify the build script to add "{GStreamerInstallDir}/1.0/{architecture}/lib/pkgconfig" to the CMAKE_MODULE_PATH configuration so cmake can find the package.
Not sure how to do this in your environment as I build on a windows OS where I just specify this using an environment variable from a wrapping batch script.

R install package globally

How do I install an R package globally, so it's available to all users? Currently I'm doing
R.exe CMD INSTALL *.zip
But it does
* installing to library 'C:/Users/Matt/Documents/R/win-library/2.15'
I would like to install the packages alongside R in Windows' 'program files'.
Your big problem here is installing to C:\Program Files\. This means on versions of windows with file permissions, you need admin permissions to write to that folder. As R does not commonly request admin permissions, it will on default install to an user subdirectory, unless you run R as administrator (by right clicking on the shortcut). In which case you can use the GUI to install packages and it will install them globally by default. For working on the command line, you can also run the cmd session as administrator.
In future, it's recommended that you install R to say, C:\R\ to avoid this.
What worked for me was running:
install.packages("MyPackage", lib="C:\\Program Files\\R\\R-3.0.1\\library")
Installing it to Program Files wasn't a problem for me - the problem was that the default installation directory was in C:\\Users\\Mike\\Documents\\R\\...
Ultimately you just want to install it to wherever .libPaths() looks by default, and in my environment that was most commonly C:\\Program Files\\R\\R-3.0.1\\library
Here is a way to specify where to find or install libraries. You can put the libraries in a common directory.
http://cran.r-project.org/doc/manuals/R-admin.html#Managing-libraries

Resources