Install PL/Perl in PostgreSQL [closed] - sql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I using PostgreSQL and I want to create a function in pl/perl, but the PostgreSQL doesn't contain pl/perl.
When I type createlang plperlu databasename it shows:
createlang: language installation failed: ERROR : could not open
extension control file
"/usr/local/pgsql/share/extension/plperlu.control": No such file or
directory
How can I install plperlu?
The PostgreSQL version is 9.1 in CentOS 5.8

Before you do anything else, back up your database. At minimum use pg_dump to take a SQL dump and put it on another computer. Then proceed, but understand that you're likely to cause downtime or even data loss if you muck this up.
(For anyone else reading this, it only applies to PostgreSQL installed from source code. You are probably using a packaged version instead, in which case you should install the package for postgresql-contrib or postgresql-plperl for your distro. Names will vary, so do a search in your package management system.)
It seems highly likely that your co-worker installed PostgreSQL from source code and didn't enable PL/Perl. If you want PL/Perl you will need to re-compile.
Install the Perl development package, which should be called perl-devel, eg:
yum install perl-devel
When you re-compile PostgreSQL use the --with-perl argument to ./configure. You should be able to find the PostgreSQL source code tree that your co-worker used somewhere on the system - try searching for config.log and see if there's a PostgreSQL source code tree in the same place.
If you can't find it you'll have to either:
Download fresh PostgreSQL sources and compile them as per the PostgreSQL documentation; or
Shut down your current server and install the yum.postgresql.org RPMs to replace it.
Honestly, if you don't know Linux this isn't a good way to start. Find somebody to help you who's worked with Linux systems before and is familiar with basic tasks like installing packages. Get them to help you to replace the source-installed PostgreSQL with a PostgreSQL install from the yum.postgresql.org packages, and preferably update your rather outdated operating system install to a current one.

Related

How do I Create a Chromium Distribution Package for Windows? [duplicate]

This question already has an answer here:
How to distribute Chromium binary after compiling? Directory has over 39GB
(1 answer)
Closed 5 months ago.
I really need some help on what I thought was a simple question: How do I Create a Chromium Distribution Package for Windows?
This documentation is exceptional:
Checking out and Building Chromium for Windows
https://chromium.googlesource.com/chromium/src/+/main/docs/windows_build_instructions.md
Now that I have a build, how do I distribute it to others?
I guess I could zip up the entire "chromium/src/out/default" but that directory is 51.6 GB !!!
Is there any documentation on what is needed in a Chromium distribution package for Windows or a simple script that automates the process? I was certain this would be an "easy find" on Googe or Stack Overflow, but not so far.
Thx in advance.
The answer was provided by Rob Rich at https://chromium.woolyss.com/
try building this target:
autoninja -C out\Default mini_installer.exe
That builds an Windows installer executable and a compressed 7z file in the output directory.
The installer is silent, so click it and wait a few seconds to maybe a minute on slower systems for the install to complete.
Alternatively, the 7z archive can be uncompressed and run from whatever directory if desired.
It would be good to add this information to the Chromium documentation (I have notified the Chromium DEV group).
If you Google on the phrase "autoninja -C out\Default mini_installer.exe" you literally get zero results.
There is a similar question on Stack Overflow with a similar response. I am going to keep this question posted in hopes that it will be picked up by the Google machine.

Install Rakudo on termux/android [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Hi everyone I need help how to install rakudo in termux aarch64
I have tried different ways and got different errors, first try:
Second try:
Update See https://borg.moe/building-rakudo-perl-6-on-termux.html
I don't know Termux but thought the following was better than no answer. Perhaps you already know the following, in which case this is just for later readers; if you actually know more, please edit your question and add what else you know.
The closest target for standard Rakudo packages is GNU+Linux, but Termux's own doc emphasizes its differences from Linux. The bottom line is you're going to have to manually patch/compile/build to install on Termux.
The termux user its-pointless claimed they manually built Rakudo, for aarch64, in 2018 and again in 2019, and, per a screenshot in a recent (2021) tweet, did so again for a 2020.05 package, at least for the MoarVM backend.
Perhaps you and/or others can use the existing packages and/or more recent ones and/or build on their success.
Googling
I don't know Termux so don't know where one would look for a more recent package beyond google.
A google for termux raku OR perl6 OR "perl 6" yields some matches.
That's how I discovered some open Raku issues related to Termux, and many comments by its-pointless in one of them, culminating in 2018 with this comment, and another comment leading to info for installing a 2019 moarvm on termux/aarch64 and then a 2019 Rakudo atop that (which depends on moarvm).
How hard are you willing to try?
I personally don't have any of the distro related skills needed to be able to help you to get Rakudo built. But it seems several folk managed to get a working Rakudo with the help of its-pointless. So perhaps you will be able to do so too.
If you have patience, like the folk in the issue I linked, there might be other Rakoons capable and willing to try to help you get Rakudo building on your system.
Termux
While Termux is a Linux, it's not a GNU+Linux. From "Differences from Linux", with my added emphasis:
Termux does not follow Filesystem Hierarchy Standard unlike majority of Linux distributions. You cannot find directories like /bin, /etc, /usr, /tmp and others at the usual locations. Thus, all programs must be patched and recompiled to meet requirements of the Termux environment otherwise they will not be able to find their configuration files or other data.
I presume the packages its-pointless built include the requisite patching, at least as of 2019.
Your first try
[CRIT] No /etc/os-release found. Are you sure you're on a sane GNU+Linux distribution?
A google for "/etc/os-release" reveals:
/etc/os-release
It relieves application developers who just want to know the distribution they are running on to check for a multitude of individual release files.
It provides both a "pretty" name (i.e. one to show to the user), and machine parsable version/OS identifiers (i.e. for use in build systems).
I think a takeaway from your first try is that the build systems of the "official" Rakudo packages presume that a Linux is a GNU+Linux. Termux isn't. So that approach isn't going to work.
Somehow you got past the problem reported in the first try. What did you do?
Second try
At a guess your second try is using the same packages. So it's not going to work.
n't exec "./try": Permission denied at build/probe.pm line 935. Unable to run probe, so something is badly wrong ....
Again, I think the root problem is that you're trying to install a package that presumes a GNU+Linux, which won't work because Termux isn't a GNU+Linux.

How do I properly use NUGET, for MVC (ASP.NET) projects? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've learned that NUGET will "Always" download the latest package and how to use the -version switch. However, on a recent project where different developers had different SUO files (Visual Studio) they would have the need to add other NUGET content to satisfy Build errors. (Yes we shouldn't be doing that ).
But in attempting to clean up the mess, it seems as if NUGET does not clean up everything as it should. I validated this by debugging an issue and finding that the Web.Config still had bad references just last week. The problem of course is that the whole dependency chain on these packages is unknown! This creates circular dependency chains that are most likely the reason why when Uninstalling packages, there is left-over Dlls.
Here's a case in point, last week we were so hosed up, I decided to re-install MVC 4... Couldn't figure out how to do that simple task other than to compare my last known working version and individually download version specific dlls. And good luck in finding the more obscure packages which MSFT includes in their own MVC templates.
Just wondering, what do you do, to make this fool proof and what advise can you give me to become an "expert" at controlling my reference libraries?
I'd recommend setting 'Enable Nuget Package Restore' on your solution. Also ensure that nothing from the packages folder gets into source control. Let the package restore resolve the packages on each machine. Once you have some packages in Source control you are introducing headaches in managing them (versions, missing references etc.)

Firebird installation on Linux as non-root [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to install firebird under Linux on a machine where I don't have root access, but install.sh fails with the error "You need to be 'root' user to do this change." How can this be done?
Edit
I also tried building from source:
./configure.sh --prefix=/home/sergei/firebird
make
These go through fine, but then 'make install' gives:
(cd ../gen; ./install/makeInstallImage.sh)
You must be root to build package
Edit
To be clear, I'm only interested in running it in embedded/standalone mode (single process accessing single file), as an SQLite replacement.
short answer, you can't
Firebird full install need to create a Linux user and to activate a service, so it need root access
you can try a fakeroot, a chroot, or as said Jonathan modify the install script.
or you can try to run it in place if is for testing purpose see http://www.ib-aid.com/articles/item111
but what is your goal ?

Aircrack Ch: -1 Issue on Arch Linux [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 13 days ago.
Improve this question
Currently running Arch Linux, I decided to install Aircrack-ng and try it out on my own wireless network. So I installed it, and I get an error upon Aireplay that states something along the lines of
Either patch this, or use the flag --ignore-negative-one
So I used the flag at first. It seems to work, but I can't get a handshake. This might just be me, but I wasn't sure. So I decided to find that patch. I went to Aircrack's website and found it. I followed the instructions and it was fine up until "make". At that point, it outputted:
config.mk:199: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
make -C /lib/modules/2.6.38-ARCH/build M=/home/kyle/Desktop/compat-wireless-2011-05-16 modules
make: *** /lib/modules/2.6.38-ARCH/build: No such file or directory. Stop.
make: *** modules Error 2
What can I do to fix this so I can use Aircrack?
uname -r outputs "2.6.38-ARCH" (without quotes).
Assuming you are using the default arch linux kernel (i.e. not a patched one, or one that you've compiled yourself), this would appear to be a bug in the aircrack package, so I would suggest you report it here.
I don't know much about aircrack, but based on the error report I think that there are two ways you may be able to fix it yourself.
It looks like CONFIG_CFG80211_WEXT is a configure option in the patch which you may be able to disable. However, this might remove important functionality.
You could try to compile your kernel with CONFIG_LIBIPW=m, as suggested. This is not as difficult as it sounds, but it does mean that you will need to maintain the kernel yourself instead of relying on pacman to do it for you. For a guide on this, see https://wiki.archlinux.org/index.php/Kernels and https://wiki.archlinux.org/index.php/Kernels/Compilation/Arch_Build_System.
Doesn't aircrack require that you have patched drivers for your network card? Have you confirmed that your card has a chipset that is usable ?
It seems that you are using the Wireless Drivers 'compat-wireless-2011-05-16', I would check that these arew suited to your Wireless Card. You may require MadWiFi Drivers depending. What is your Wireless Card Make/Model?