How to build static libqsqlpsql.so in Qt in Ubuntu - qt

friend!
Please, help me. I am confused and sad. Darkness is embracing me and you, my friends, are the only hope I have.
I have installed qt in Ubuntu 10.10 using aptitude.
Then I have installed libqt4-sql-psql. Now I have *.so files in qt's directory /usr/lib/qt4/plugins/sqldrivers.
Directory contains now 3 files actually.
$ ls -l
-rw-r--r-- 1 root root 47048 2011-03-29 12:11 libqsqlite.so
-rw-r--r-- 1 root root 63668 2011-03-29 12:11 libqsqlmysql.so
-rw-r--r-- 1 root root 71844 2011-03-29 12:11 libqsqlpsql.so
There is no psql.pro or anything I can use to qmake this all.
How can I build driver and use to work with postgres.
What should I do?
Maybe it is a dummy's question... sorry

You have the file you need:
/usr/lib/qt4/plugins/sqldrivers/libqsqlpsql.so
this should allow you to use the driver. You can check which drivers are available using QSqlDatabase::drivers.

Related

I'm unable to delete this folder

Okay, I recently installed snapd on my system, but I later decided to uninstall it. Regardless of me uninstalling it, the folder, /snap/, remains. I initially tried to delete the folder using the
sudo rm -r snap
command, but I keep getting the error message that the folder is a read-only folder. I did the
ls -ld snap
command to see the permissions for that folder and the output I got was
drwxr-xr-x 1 root root 370 Jan 24 19:02 snap
Would anyone be so kind as to tell me how I would go about deleting that folder? Thanks.

How do you make a new directory?

I'm trying to create a new directory. I'm using mkdir, but for some reason it isn't working.
Are there any other ways to make directories I don't know?
Thanks in advance!
Please be more specific, if you mean creating a new directory in CMD the correct syntax is: MKDIR dir_name
i.e:
C:\Users\Thunder>mkdir new_directory
C:\Users\Thunder>dir
04/12/2020 17:50 <DIR> Music
08/12/2020 19:52 <DIR> MyFirstGame
***22/12/2020 16:05 <DIR> new_directory***
24/10/2020 16:11 <DIR> Nox_share
24/10/2020 16:10 45 nuuid.ini
Be sure you have correct access, just in case run CMD as administrator.

What is folder (null).1001.1001

(null).1001.1001
What is this folder? Where does it come from?
drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001
I think it has something to do with Mr. Root impersonating Mr. AppUsr in a background task, but I posted to AskUbuntu last week, and nobody there recognized it.
Why am I asking? Well ...
On an Ubuntu box, I have a restricted-access applications user who is uid 1001 and gid 1001. Root launches Rserve under that user during boot. The Rserve session is writing into a Windows CIFS share. All seems to be functioning as intended ...
I'm finding these folders peppered throughout the application user's file tree:
drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001
I'm finding these subfolders in various folders. Each of these subfolders is different, but they seem to contain partial temporary files, like stuff that I extracted from a tarball, or partial pdf writes.
My primary interest in these folders is that I've found that sometimes I need them and don't have them. There's a particular operation can work or fail depending on whether or not this folder is present. When writing a PDF from inside a knitr document that I call remotely from Rserve, I get this error message
## Error in plot.new(): cannot open file '', reason No such file or directory
I can't find an R reason for this, and it works when called from an rstudio-server session or from a Windows Rstudio IDE, but when called from Rserve, it seems to depend on having that folder present in the filesystem, and I'm quite sure that I didn't put it there! What is it?

where to place htaccess file on openshift for wordpress?

I have read and tried these previous questions on Stack Overflow networks,
these solutions doesn't solved my confusion. So I am asking the same question again.
The questions that I've researched and doesn't solve my problem
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
I'm just trying to install WordPress on OpenShift by custom way than the one click install. I've cloned my openshift git repo on my desktop. Extracted, added and pushed wordpress.tar.gz to the repo and installed correctly so that i could login to the admin site.
my repo files look this way,
deena#home:~/Desktop/wordpress$ ls -al
total 76
drwxrwxr-x 7 deena deena 4096 Feb 4 23:20 .
drwxr-xr-x 13 deena deena 4096 Feb 6 22:11 ..
drwxrwxr-x 8 deena deena 4096 Feb 4 23:20 .git
-rw-rw-r-- 1 deena deena 9 Feb 4 16:41 .gitignore
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 libs
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 misc
drwxrwxr-x 9 deena deena 4096 Feb 4 16:41 .openshift
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 php
-rw-rw-r-- 1 deena deena 2130 Feb 4 16:41 README
I want to put the .htaccess file on this repo so that wordpress can use this in some RW mode. Where can I place the htaccess?
one man said on the listed question to place it on the config directory then action_hook to use it on the base directory,
where's the config directory? should I do any hard work to make it work? (I don't know whats action_hook honestly)
some questions were answered to place it on the base dir, that's the listed dir, some other said to place it in the app directory, the wordpress directory seen here.
I tried placing in the base as well as the app directory nothing happens other than the wordpress is reinstalled the next time I point my browser to the app URL.
So making the question clear again, in layman terms, where to place the htaccess file to make it accessible for WordPress?
thanks.
peace
I think, here you can find a solution.
The .htaccess files needs to go in the same directory as your core WordPress files, wherever your wp-config.php file is. However, since you are deploying this site via git, with all of the WordPress files included, whatever changes that are made to the .htaccess file by WordPress will be reverted once you do another git push. If you don't plan on doing any more git pushes, then everything should be fine. The same thing goes with any of the plugins or themes, they will be removed on a git push if you install them using the WordPress admin interface. You will either need to make your changes locally in your git repo on your workstation (adding themes, adding plugins, updating .htaccess), or you will need to use a quickstart that uses symlinks to store that information on the server in a different location. You could also use the WordPress OpenShift quickstart which is designed just for use with OpenShift, and helps you with a lot of these issues....

Howto copy a folder and all its content in Java recursively, including symbolic links

Currently, using Java 6, I copy a folder and all its content recursively by using FileUtils.copyDirectory(). But that fails (on AIX) because of symbolic links. In particular, one subfolder holds the symbolic link
$ ll javaws
lrwxrwxrwx 1 me staff 13 Feb 21 13:11 javaws -> ../bin/javaws
>>>>> me#machine: /home/me/runtime/jvm/jre/bin <<<<<
I can copy the entire folder hierarchy on AIX with the command "cp -rh". W/o the -r option, cp fails with the same problem as FileUtils.copyDirectory() (There are too many levels of symbolic links to translate a path name.) I haven't tested it. But I suppose the issue is present on other Unix variants, too.
As mentioned above FileUtils does not work. Calling "cp -rh" from Java is no solution either: I need a solution that works across many Unix and Linux variants and would prefer a Java solution.

Resources