Setting up postgres Contrib packages - nitrousio

I created a box on Nitrous.io and installed postgres database using autoparts. Now I want to enable UUID so was trying to add the uuid-ossp extension when I run the command
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
I get the following error
ERROR: could not open extension control file "/home/action/.parts/packages/postgresql/9.2.4/share/postgresql/extension/uuid-ossp.control": No such file or directory
It appears like the uuid-ossp extension is not included with the postgres installation.
I thought if I can provide the required files it would work and I copied out the following files into the above folder -
uuid-ossp--1.0.sql
uuid-ossp--unpackaged--1.0.sql
uuid-ossp.control
Now when I tried creating the extension I got a new error -
ERROR: could not access file "$libdir/uuid-ossp": No such file or directory
Looks like I am missing something.
Any help is appreciated.
Thanks

Related

Translate MySQL error messages to new language

I want to translate MySQL's error messages. I tried:
Added new language to sql/share/errmsg-utf8.txt's top line.
(image)
Translated some error messages.
(image)
But there is no comp_err or sql/share/cmake_install.cmake in mysql folder and in shell.
I'm using xampp v3.3.0. Also tried MySQL 8.0.
Never edit directly the file installed.
Instead, modify the source code and build the error messages file again.
What you should do:
Create a git branch based on MySQL source tree (https://github.com/mysql/mysql-server), for the proper release (say 8.0)
Do a full build (this will create the comp_err utility too)
Read instructions in file share/errmsg_readme.txt
Edit file share/messages_to_clients.txt with the new translation
Commit the changes in git
Do a build again
This will create the file containing error messages with the new translation, which can be installed.

xxx.mex: failed to load: No such file or directory

For some time, I've been using some .mex files I created. Now I have a new computer. I copied all the files over and reinstalled Cygwin and Octave. When I try to execute any of the .mex routines I get a message like:
error: testm: /cygdrive/c/A/Cwin/...../quad.mex: failed to load: No such file or directory
The file is definitely there and I'm having no trouble loading .m files from the same directory. It does not say there is anything wrong with the file. I'm guessing this is some sort of configuration problem. I am running Octave 4.2.1. When I start it, I get the following message:
Octave was configured for "x86_64-unknown-cygwin".
Could that have something to do with it? I think I'm developing x64 paranoia, since all my Excel .dll macros no longer work either. Thanks.

an error occurred while processing this directive in justhost

when i upload my website to my hosting Justhost it not working and it show only error like this
an error occurred while processing this directive
Please help me to correct this error
try the steps that follow:
Go to cPanel
Open File Manager from Files section
Navigate to domain folder
Check "Perms" column on far right hand side
Files should be set to: 0644 (this is the UNIX file permissions)
Folders should be set to: 0755
This will change your file permissions to their proper settings for the justhost file system. Additionally, if you have PHP code within.htm or .html files, you will need to add an additional Apache handler to tell justhost to parse these files as PHP. Do this using Apache Handlers in cPanel:

Fatal Error when accessing /index.php/Special:Specialpages MediaWiki page

I recently upgraded our MediaWiki installation to version 1.24.2
Now when I access the Special pages at http://www.myserver.com/index.php/Special:Specialpages I get this error:
Warning: require(/www/local/path/to/web_directory/public_html/includes/specials/SpecialAllPages.php) [function.require]: failed to open stream: No such file or directory in /www/local/path/to/web_directory/public_html/includes/AutoLoader.php on line 1282
Fatal error: require() [function.require]: Failed opening required '/www/local/path/to/web_directory/public_html/includes/specials/SpecialAllPages.php' (include_path='.:/usr/local/share/pear') in /www/local/path/to/web_directory/public_html/includes/AutoLoader.php on line 1282
Can someone please point me at the right direction to solve this problem?
I have already searched the entire interweb for an answer...
PHP version: 5.3.10
MySQL version: 5.5.31
Apache version: 2.2.22
It seems there was an error while upgrading/transferring the files to your server.
It seems you solved your problem by yourself, however: You shouldn't update mediawiki's files on top of another version. Instead, you should delete the old installation (keeping the files you need like LocalSettings.php, images/ and so on) and upload a new copy of the new version you want to use. See https://www.mediawiki.org/wiki/Manual:Upgrading for a detailed upgrading tutorial. Following these steps should avoid such problems the next time :)
I found out what the problem was.
I installed v 1.24.2 on top of version 1.21
By some reason the file SpecialAllPages.php was named SpecialAllpages.php with a small 'p'.
After renaming the file to SpecialAllPages.php the same error was triggered regarding the file SpecialAllMessages.php that was named SpecialAllmessages.php
After renaming that file also, everything works fine again.

What is the format of Mediawiki's AdminSettings.php

I am trying to run dumpBackup.php and I get
php dumpBackup.php --current
DB connection error: Unknown error
My understanding is I need to copy the file AdminSettings.sample to .php.
But I don't seem to have such a file. What is the format of it. Probably looking in the wrong place but all references refer to the sample file
You should find AdminSettings.sample in the root of your MediaWiki install - in the same directory as LocalSettings.php, one directory up from the "maintenance" directory.
Details:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/AdminSettings.sample?view=markup
http://www.mediawiki.org/wiki/Manual:AdminSettings.php