In the process of setting up nginx on a VPS and am getting the generic 'site can't be reached' error as described in the title. Here's /etc/nginx/sites-available/domainname.com
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/domainname.com/public;
index index.php index.html index.htm
server_name domainname.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
This is sym-linked in /etc/nginx/sites-enabled. Both the domain name nor the IP address of the VPS return the same error. I recall a few months ago having a similar problem and ended up needing to alter certain file permissions, and even wrote down what happened, but cannot find my notes on the matter. Still, I suspect permissions to be part of the issue again.
As far as I know, the problem could be permissions on the contents of the nginx directory or of my php directory or the user running the nginx process. To that end, here's what ls -la returns for /etc/nginx:
ls -la -R /etc/nginx
/etc/nginx:
total 64
drwxr-xr-x 6 root root 4096 May 29 22:32 .
drwxr-xr-x 98 root root 4096 May 29 22:34 ..
drwxr-xr-x 2 root root 4096 Oct 27 2016 conf.d
-rw-r--r-- 1 root root 1077 Apr 26 2016 fastcgi.conf
-rw-r--r-- 1 root root 1007 Apr 26 2016 fastcgi_params
-rw-r--r-- 1 root root 2837 Apr 26 2016 koi-utf
-rw-r--r-- 1 root root 2223 Apr 26 2016 koi-win
-rw-r--r-- 1 root root 3957 Apr 26 2016 mime.types
-rw-r--r-- 1 root root 1462 Apr 26 2016 nginx.conf
-rw-r--r-- 1 root root 180 Apr 26 2016 proxy_params
-rw-r--r-- 1 root root 636 Apr 26 2016 scgi_params
drwxr-xr-x 2 root root 4096 May 29 23:25 sites-available
drwxr-xr-x 2 root root 4096 May 29 23:28 sites-enabled
drwxr-xr-x 2 root root 4096 May 29 22:32 snippets
-rw-r--r-- 1 root root 664 Apr 26 2016 uwsgi_params
-rw-r--r-- 1 root root 3071 Apr 26 2016 win-utf
/etc/nginx/conf.d:
total 8
drwxr-xr-x 2 root root 4096 Oct 27 2016 .
drwxr-xr-x 6 root root 4096 May 29 22:32 ..
/etc/nginx/sites-available:
total 12
drwxr-xr-x 2 root root 4096 May 29 23:25 .
drwxr-xr-x 6 root root 4096 May 29 22:32 ..
-rw-r--r-- 1 root root 2129 May 29 22:57 domainname
/etc/nginx/sites-enabled:
total 8
drwxr-xr-x 2 root root 4096 May 29 23:28 .
drwxr-xr-x 6 root root 4096 May 29 22:32 ..
lrwxrwxrwx 1 root root 34 May 29 22:32 default -> /etc/nginx/sites-available/default
lrwxrwxrwx 1 root root 40 May 29 23:28 domainname -> /etc/nginx/sites-available/domainname
/etc/nginx/snippets:
total 16
drwxr-xr-x 2 root root 4096 May 29 22:32 .
drwxr-xr-x 6 root root 4096 May 29 22:32 ..
-rw-r--r-- 1 root root 422 Apr 26 2016 fastcgi-php.conf
-rw-r--r-- 1 root root 217 Apr 26 2016 snakeoil.conf
And the output for /etc/php:
ls -la -R /etc/php
/etc/php:
total 12
drwxr-xr-x 3 root root 4096 May 29 22:34 .
drwxr-xr-x 98 root root 4096 May 29 22:34 ..
drwxr-xr-x 5 root root 4096 May 29 22:34 7.0
/etc/php/7.0:
total 20
drwxr-xr-x 5 root root 4096 May 29 22:34 .
drwxr-xr-x 3 root root 4096 May 29 22:34 ..
drwxr-xr-x 3 root root 4096 May 29 22:34 cli
drwxr-xr-x 4 root root 4096 May 29 22:40 fpm
drwxr-xr-x 2 root root 4096 May 29 22:34 mods-available
/etc/php/7.0/cli:
total 84
drwxr-xr-x 3 root root 4096 May 29 22:34 .
drwxr-xr-x 5 root root 4096 May 29 22:34 ..
drwxr-xr-x 2 root root 4096 May 29 22:34 conf.d
-rw-r--r-- 1 root root 70655 May 11 23:12 php.ini
/etc/php/7.0/cli/conf.d:
total 8
drwxr-xr-x 2 root root 4096 May 29 22:34 .
drwxr-xr-x 3 root root 4096 May 29 22:34 ..
lrwxrwxrwx 1 root root 39 May 29 22:34 10-opcache.ini -> /etc/php/7.0/mods-available/opcache.ini
lrwxrwxrwx 1 root root 35 May 29 22:34 10-pdo.ini -> /etc/php/7.0/mods-available/pdo.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-calendar.ini -> /etc/php/7.0/mods-available/calendar.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-ctype.ini -> /etc/php/7.0/mods-available/ctype.ini
lrwxrwxrwx 1 root root 36 May 29 22:34 20-exif.ini -> /etc/php/7.0/mods-available/exif.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-fileinfo.ini -> /etc/php/7.0/mods-available/fileinfo.ini
lrwxrwxrwx 1 root root 35 May 29 22:34 20-ftp.ini -> /etc/php/7.0/mods-available/ftp.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-gettext.ini -> /etc/php/7.0/mods-available/gettext.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-iconv.ini -> /etc/php/7.0/mods-available/iconv.ini
lrwxrwxrwx 1 root root 36 May 29 22:34 20-json.ini -> /etc/php/7.0/mods-available/json.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-mbstring.ini -> /etc/php/7.0/mods-available/mbstring.ini
lrwxrwxrwx 1 root root 41 May 29 22:34 20-pdo_pgsql.ini -> /etc/php/7.0/mods-available/pdo_pgsql.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-pgsql.ini -> /etc/php/7.0/mods-available/pgsql.ini
lrwxrwxrwx 1 root root 36 May 29 22:34 20-phar.ini -> /etc/php/7.0/mods-available/phar.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-posix.ini -> /etc/php/7.0/mods-available/posix.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-readline.ini -> /etc/php/7.0/mods-available/readline.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-shmop.ini -> /etc/php/7.0/mods-available/shmop.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sockets.ini -> /etc/php/7.0/mods-available/sockets.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sysvmsg.ini -> /etc/php/7.0/mods-available/sysvmsg.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sysvsem.ini -> /etc/php/7.0/mods-available/sysvsem.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sysvshm.ini -> /etc/php/7.0/mods-available/sysvshm.ini
lrwxrwxrwx 1 root root 41 May 29 22:34 20-tokenizer.ini -> /etc/php/7.0/mods-available/tokenizer.ini
/etc/php/7.0/fpm:
total 96
drwxr-xr-x 4 root root 4096 May 29 22:40 .
drwxr-xr-x 5 root root 4096 May 29 22:34 ..
drwxr-xr-x 2 root root 4096 May 29 22:34 conf.d
-rw-r--r-- 1 root root 4421 May 11 23:12 php-fpm.conf
-rw-r--r-- 1 root root 70997 May 29 22:40 php.ini
drwxr-xr-x 2 root root 4096 May 29 22:34 pool.d
/etc/php/7.0/fpm/conf.d:
total 8
drwxr-xr-x 2 root root 4096 May 29 22:34 .
drwxr-xr-x 4 root root 4096 May 29 22:40 ..
lrwxrwxrwx 1 root root 39 May 29 22:34 10-opcache.ini -> /etc/php/7.0/mods-available/opcache.ini
lrwxrwxrwx 1 root root 35 May 29 22:34 10-pdo.ini -> /etc/php/7.0/mods-available/pdo.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-calendar.ini -> /etc/php/7.0/mods-available/calendar.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-ctype.ini -> /etc/php/7.0/mods-available/ctype.ini
lrwxrwxrwx 1 root root 36 May 29 22:34 20-exif.ini -> /etc/php/7.0/mods-available/exif.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-fileinfo.ini -> /etc/php/7.0/mods-available/fileinfo.ini
lrwxrwxrwx 1 root root 35 May 29 22:34 20-ftp.ini -> /etc/php/7.0/mods-available/ftp.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-gettext.ini -> /etc/php/7.0/mods-available/gettext.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-iconv.ini -> /etc/php/7.0/mods-available/iconv.ini
lrwxrwxrwx 1 root root 36 May 29 22:34 20-json.ini -> /etc/php/7.0/mods-available/json.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-mbstring.ini -> /etc/php/7.0/mods-available/mbstring.ini
lrwxrwxrwx 1 root root 41 May 29 22:34 20-pdo_pgsql.ini -> /etc/php/7.0/mods-available/pdo_pgsql.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-pgsql.ini -> /etc/php/7.0/mods-available/pgsql.ini
lrwxrwxrwx 1 root root 36 May 29 22:34 20-phar.ini -> /etc/php/7.0/mods-available/phar.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-posix.ini -> /etc/php/7.0/mods-available/posix.ini
lrwxrwxrwx 1 root root 40 May 29 22:34 20-readline.ini -> /etc/php/7.0/mods-available/readline.ini
lrwxrwxrwx 1 root root 37 May 29 22:34 20-shmop.ini -> /etc/php/7.0/mods-available/shmop.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sockets.ini -> /etc/php/7.0/mods-available/sockets.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sysvmsg.ini -> /etc/php/7.0/mods-available/sysvmsg.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sysvsem.ini -> /etc/php/7.0/mods-available/sysvsem.ini
lrwxrwxrwx 1 root root 39 May 29 22:34 20-sysvshm.ini -> /etc/php/7.0/mods-available/sysvshm.ini
lrwxrwxrwx 1 root root 41 May 29 22:34 20-tokenizer.ini -> /etc/php/7.0/mods-available/tokenizer.ini
/etc/php/7.0/fpm/pool.d:
total 28
drwxr-xr-x 2 root root 4096 May 29 22:34 .
drwxr-xr-x 4 root root 4096 May 29 22:40 ..
-rw-r--r-- 1 root root 18508 May 11 23:12 www.conf
/etc/php/7.0/mods-available:
total 96
drwxr-xr-x 2 root root 4096 May 29 22:34 .
drwxr-xr-x 5 root root 4096 May 29 22:34 ..
-rw-r--r-- 1 root root 74 May 11 23:12 calendar.ini
-rw-r--r-- 1 root root 71 May 11 23:12 ctype.ini
-rw-r--r-- 1 root root 70 May 11 23:12 exif.ini
-rw-r--r-- 1 root root 74 May 11 23:12 fileinfo.ini
-rw-r--r-- 1 root root 69 May 11 23:12 ftp.ini
-rw-r--r-- 1 root root 73 May 11 23:12 gettext.ini
-rw-r--r-- 1 root root 71 May 11 23:12 iconv.ini
-rw-r--r-- 1 root root 68 May 11 23:12 json.ini
-rw-r--r-- 1 root root 76 May 11 23:12 mbstring.ini
-rw-r--r-- 1 root root 79 May 11 23:12 opcache.ini
-rw-r--r-- 1 root root 69 May 11 23:12 pdo.ini
-rw-r--r-- 1 root root 74 May 11 23:12 pdo_pgsql.ini
-rw-r--r-- 1 root root 70 May 11 23:12 pgsql.ini
-rw-r--r-- 1 root root 70 May 11 23:12 phar.ini
-rw-r--r-- 1 root root 71 May 11 23:12 posix.ini
-rw-r--r-- 1 root root 76 May 11 23:12 readline.ini
-rw-r--r-- 1 root root 71 May 11 23:12 shmop.ini
-rw-r--r-- 1 root root 73 May 11 23:12 sockets.ini
-rw-r--r-- 1 root root 73 May 11 23:12 sysvmsg.ini
-rw-r--r-- 1 root root 73 May 11 23:12 sysvsem.ini
-rw-r--r-- 1 root root 73 May 11 23:12 sysvshm.ini
-rw-r--r-- 1 root root 75 May 11 23:12 tokenizer.ini
Here are the relevant processes from ps aux
root 28217 0.0 2.8 287700 29156 ? Ss 22:48 0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data 28221 0.0 0.6 287700 7052 ? S 22:48 0:00 php-fpm: pool www
www-data 28222 0.0 0.6 287700 7052 ? S 22:48 0:00 php-fpm: pool www
root 28405 0.0 0.1 124972 1416 ? Ss 23:00 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 28406 0.0 0.3 125308 3148 ? S 23:00 0:00 nginx: worker process
I have a user created in my name with sudo privileges on which I'm doing the actual work, but I'm not sure if I should be allocating permissions to that user or if I should instead be using www-data?
This error was resolved--now returns a 404 Not Found which is the expected behavior as I haven't pushed the app to the server yet--by modifying the following segment of /etc/nginx/sites-available/domainname
listen 80 default_server;
listen [::]:80 default_server;
Modified to
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
I had suspected this might be the problem but was convinced that in my previous run-in with this issue, I had tried this and had no success. At any rate, I hope this helps someone in the future.
Related
I am working on point of sale bootp terminals. The client application, OS etc. and all its files live under /opt/posterm/x86_64/.../
ll /opt/posterm/x86_64
total 16
lrwxrwxrwx. 1 root root 7 Jul 31 2020 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Sep 21 2021 boot
drwxr-xr-x. 2 root root 30 Jul 21 2021 dev
drwxr-xr-x. 84 root root 8192 Nov 22 2021 etc
drwxr-xr-x. 2 root root 6 Jul 31 2020 home
lrwxrwxrwx. 1 root root 7 Jul 31 2020 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Jul 31 2020 lib64 -> usr/lib64
drwxr-xr-x. 3 root root 27 Jul 29 2021 media
drwxr-xr-x. 2 root root 6 Jul 31 2020 mnt
drwxr-xr-x. 3 root root 24 Sep 15 2021 opt
dr-xr-xr-x. 2 root root 6 Jul 31 2020 proc
dr-xr-x---. 2 root root 112 Sep 29 2021 root
drwxr-xr-x. 14 root root 178 Jul 21 2021 run
lrwxrwxrwx. 1 root root 8 Jul 31 2020 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 Jul 31 2020 srv
dr-xr-xr-x. 2 root root 6 Jul 31 2020 sys
drwxrwxrwt. 7 root root 93 Oct 1 2021 tmp
drwxr-xr-x. 12 root root 144 Jul 21 2021 usr
drwxr-xr-x. 20 root root 278 Sep 21 2021 var
I was able to create the service however im not certain its right since the is-enabled command output shows me nothing. Why?
[root#zzpoxxxx]# systemctl enable posterm.service --root=/opt/posterm/x86_64
Created symlink /opt/posterm/x86_64/etc/systemd/system/multi-user.target.wants/posterm.service → /etc/systemd/system/posterm.service.
systemctl is-enabled --root=/opt/posterm/i386 posterm.service
systemctl is-enabled posterm.service --root=/opt/posterm/i386
[root#zzxxxxx]# echo $?
1
system]# find / -name posterm.service |xargs ls -al
lrwxrwxrwx. 1 root root 35 Nov 15 13:37 /opt/posterm/x86_64/etc/systemd/system/multi-user.target.wants/posterm.service -> /etc/systemd/system/posterm.service
-rw-r--r--. 1 root root 236 Nov 15 11:43 /opt/posterm/x86_64/etc/systemd/system/posterm.service
-rw-r--r--. 1 root root 236 Nov 15 11:38 /opt/posterm/x86_64/usr/lib/systemd/system/posterm.service
any help much appreciated!?
thank you!
My Nginx server threw the warning:
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
I created nginx-group and nginx-user
groupadd --system --gid 7447 nginx-group
adduser --system --gid 7447 --uid 7447 nginx-user
The Nginx process owned by my user "nginx-user"
bash-4.2$ ps -ef | grep [n]ginx
nginx-u+ 1 0 0 08:05 ? 00:00:00 nginx: master process nginx -g daemon off;
nginx-u+ 7 1 0 08:05 ? 00:00:00 nginx: worker process
The /etc/nginx folder and content owned by the root user
bash-4.2$ ls -la /etc/nginx
total 20
drwxr-xr-x 1 root root 20 Aug 1 07:33 .
drwxr-xr-x 1 root root 41 Aug 1 08:05 ..
drwxr-xr-x 1 root root 54 Aug 1 07:33 conf.d
-rw-r--r-- 1 root root 1007 May 24 15:35 fastcgi_params
-rw-r--r-- 1 root root 3957 Aug 1 07:05 mime.types
lrwxrwxrwx 1 root root 29 Aug 1 07:33 modules -> ../../usr/lib64/nginx/modules
-rw-r--r-- 1 root root 2200 Aug 1 07:05 nginx.conf
-rw-r--r-- 1 root root 636 May 24 15:35 scgi_params
drwxr-xr-x 1 root root 22 Aug 1 07:33 sites-available
drwxr-xr-x 1 root root 22 Aug 1 07:33 sites-enabled
-rw-r--r-- 1 root root 664 May 24 15:35 uwsgi_params
Anyone can help to fix this warning ?
I am getting this error when saving QBS:
warning: Dependency 'Qt.webengine' not found for product 'anime-dl'.
Here is the profile in the settings::
This should not be happening because I built this explicitly, as well as it does not happen if I throw this in a QMake Project File:
QT += core gui multimedia webengine webenginewidgets multimediawidgets
And its included in the qt that I built:
➜ Qt-5.15.2 ll include
total 472K
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DAnimation
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DCore
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DExtras
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DInput
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DLogic
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DQuick
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DQuickAnimation
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DQuickExtras
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DQuickInput
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DQuickRender
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 Qt3DQuickScene2D
drwxr-xr-x 3 root root 12K Jan 22 20:16 Qt3DRender
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtAccessibilitySupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtBluetooth
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtBodymovin
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtCharts
drwxr-xr-x 2 root root 4.0K Jan 22 20:15 QtConcurrent
drwxr-xr-x 3 root root 20K Jan 22 20:15 QtCore
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtDataVisualization
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtDBus
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtDesigner
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtDesignerComponents
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtDeviceDiscoverySupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtEdidSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtEglFSDeviceIntegration
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtEglSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtEventDispatcherSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtFbSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtFontDatabaseSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtGamepad
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtGlxSupport
drwxr-xr-x 3 root root 20K Jan 22 20:15 QtGui
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtHelp
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtInputSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtKmsSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtLinuxAccessibilitySupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtLocation
drwxr-xr-x 3 root root 12K Jan 22 20:16 QtMultimedia
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtMultimediaGstTools
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtMultimediaQuick
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtMultimediaWidgets
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtNetwork
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtNetworkAuth
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtNfc
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtOpenGL
drwxr-xr-x 2 root root 4.0K Jan 22 20:15 QtOpenGLExtensions
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtPacketProtocol
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtPdf
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtPdfWidgets
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtPlatformCompositorSupport
drwxr-xr-x 2 root root 4.0K Jan 22 20:15 QtPlatformHeaders
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtPositioning
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtPositioningQuick
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtPrintSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtPurchasing
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQml
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQmlDebug
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQmlModels
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQmlWorkerScript
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQuick
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuick3D
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuick3DAssetImport
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuick3DRender
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuick3DRuntimeRender
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuick3DUtils
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuickControls2
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQuickParticles
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQuickShapes
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtQuickTemplates2
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQuickTest
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtQuickWidgets
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtRemoteObjects
drwxr-xr-x 2 root root 4.0K Jan 22 20:16 QtRepParser
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtScript
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtScriptTools
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtScxml
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtSensors
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtSerialBus
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtSerialPort
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtServiceSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtSql
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtSvg
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtTest
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtTextToSpeech
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtThemeSupport
drwxr-xr-x 2 root root 4.0K Jan 22 20:16 QtUiPlugin
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtUiTools
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtVirtualKeyboard
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtVulkanSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtWaylandClient
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtWaylandCompositor
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtWebChannel
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtWebEngine
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtWebEngineCore
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtWebEngineWidgets
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtWebSockets
drwxr-xr-x 3 root root 4.0K Jan 22 20:17 QtWebView
drwxr-xr-x 3 root root 20K Jan 22 20:15 QtWidgets
drwxr-xr-x 2 root root 4.0K Jan 22 20:15 QtX11Extras
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtXkbCommonSupport
drwxr-xr-x 3 root root 4.0K Jan 22 20:15 QtXml
drwxr-xr-x 3 root root 4.0K Jan 22 20:16 QtXmlPatterns
How can I fix this error? I am fairly certain it must be detecting the system installed version of Qt, as opposed to the one I built, and yet in profiles, it should be pointing to the one I built.
I don't exactly understand what was going on, but I did manage to settle the issue by switching from Desktop Kit to the Imported Kit, despite both of them having as far as I can tell, the same settings.
I have not build file in the binary of my version of R. Should I try to get it to be able to use R CMD BUILD (how?) or should I try to build a package in another way?
While INSTALL is capitalized (to avoid clashes with the existing /usr/bin/install, as are a few others as shown below), the build command is not:
edd#rob:~$ ls -l /usr/lib/R/bin/
total 488
-rwxr-xr-x 1 root root 1837 Jul 2 19:39 BATCH
-rwxr-xr-x 1 root root 350 Jul 2 19:39 build
-rwxr-xr-x 1 root root 317 Jul 2 19:39 check
-rwxr-xr-x 1 root root 2165 Jul 2 19:39 COMPILE
-rwxr-xr-x 1 root root 11377 Jul 2 19:39 config
drwxr-xr-x 2 root root 4096 Jul 15 20:25 exec
-rwxr-xr-x 1 root root 3618 Jul 2 19:39 f77_f2c
-rwxr-xr-x 1 root root 823 Jul 2 19:39 INSTALL
-rwxr-xr-x 1 root root 14530 Jul 2 19:39 javareconf
-rwxr-xr-x 1 root root 355913 Jul 2 19:39 libtool
-rwxr-xr-x 1 root root 1442 Jul 2 19:39 LINK
-rwxr-xr-x 1 root root 3496 Jul 2 19:39 mkinstalldirs
-rwxr-xr-x 1 root root 483 Jul 2 19:39 pager
-rwxr-xr-x 1 root root 8722 Jul 2 19:39 R
-rwxr-xr-x 1 root root 1375 Jul 2 19:39 Rcmd
-rwxr-xr-x 1 root root 316 Jul 2 19:39 Rd2pdf
-rwxr-xr-x 1 root root 359 Jul 2 19:39 Rdconv
-rwxr-xr-x 1 root root 258 Jul 2 19:39 Rdiff
-rwxr-xr-x 1 root root 158 Jul 2 19:39 REMOVE
-rwxr-xr-x 1 root root 310 Jul 2 19:39 Rprof
-rwxr-xr-x 1 root root 14344 Jul 2 19:39 Rscript
-rwxr-xr-x 1 root root 4121 Jul 2 19:39 rtags
-rwxr-xr-x 1 root root 155 Jul 2 19:39 SHLIB
-rwxr-xr-x 1 root root 318 Jul 2 19:39 Stangle
-rwxr-xr-x 1 root root 316 Jul 2 19:39 Sweave
edd#rob:~$
So make sure you type R CMD build ... instead.
Hello I have a directory containing following files:
bomble#master:/mnt/store/test$ ls -lrt /mnt/store/ChemAlive/utilities/
total 46623
-rwxrwxrwx 1 root root 63168 Feb 9 13:48 rungms
-rwxrwxrwx 1 root root 285 Feb 11 10:18 runCP2K.sh
-rwxrwxrwx 1 root root 46535066 Feb 11 10:22 cp2k.popt
-rwxrwxrwx 1 root root 108 Feb 11 10:22 cp2kend
-rwxrwxrwx 1 root root 206 Feb 11 10:22 cp2kendhess
-rwxrwxrwx 1 root root 285 Feb 11 10:22 cp2kstart
-rwxrwxrwx 1 root root 34 Feb 11 10:23 gamessdisphf
-rwxrwxrwx 1 root root 45 Feb 11 10:23 gamesssolvt
-rwxrwxrwx 1 root root 193 Feb 11 10:23 gamessstart
-rwxrwxrwx 1 root root 1110176 Feb 11 10:23 mopac5021mn.exe
-rwxrwxrwx 1 root root 564 Feb 11 10:23 mopacgeom
-rwxrwxrwx 1 root root 95 Feb 11 10:23 nwchemend
-rwxrwxrwx 1 root root 197 Feb 11 10:23 nwchemwaterend
-rwxrwxrwx 1 root root 25110 Feb 11 10:24 rmsperl.pl
-rwxrwxrwx 1 root root 60 Feb 11 10:24 scriptjmol
-rwxrwxrwx 1 root root 15 Feb 11 10:24 triatomicend.mop
-rwxrwxrwx 1 root root 224 Feb 11 10:30 gamessstarthf
I want to remove rungms that appears. If I try it fails:
bomble#master:/mnt/store/test$ sudo rm /mnt/store/ChemAlive/utilities/rungms
rm: cannot remove '/mnt/store/ChemAlive/utilities/rungms': No such file or directory
Any ideas?
Thanks
Firstly, this question does not quite fit this forum and the Unix tag because it's not about programming. It should have been asked at Unix&Linux or Superuser forums.
Anyway, according to your description, the directory seems to be corrupt. You can try the following recipe shared at https://superuser.com/questions/197605/delete-a-corrupt-file-in-linux:
Rename your directory.
Recreate the original directory (empty).
Copy other files back to it.
Delete the directory containing that file.
I think it has a non-printable character or space at the end of the file name.
How about just do sudo rm /mnt/store/ChemAlive/utilities/rung*