question_id
int64 82.3k
79.7M
| title_clean
stringlengths 15
158
| body_clean
stringlengths 62
28.5k
| full_text
stringlengths 95
28.5k
| tags
stringlengths 4
80
| score
int64 0
1.15k
| view_count
int64 22
1.62M
| answer_count
int64 0
30
| link
stringlengths 58
125
|
|---|---|---|---|---|---|---|---|---|
29,600,090
|
How to add svn plug-in to Eclipse Juno in RHEL 6.5 using command line?
|
I have installed Eclipse Juno on RHEL 6.5 64 Bit Workstation. Now I have to add svn plug-ins to Eclipse using command line, I dont have access to GUI Interface. Any idea how to achieve this through command line?
|
How to add svn plug-in to Eclipse Juno in RHEL 6.5 using command line? I have installed Eclipse Juno on RHEL 6.5 64 Bit Workstation. Now I have to add svn plug-ins to Eclipse using command line, I dont have access to GUI Interface. Any idea how to achieve this through command line?
|
svn, eclipse-plugin, redhat
| 2
| 34
| 0
|
https://stackoverflow.com/questions/29600090/how-to-add-svn-plug-in-to-eclipse-juno-in-rhel-6-5-using-command-line
|
29,274,221
|
Mysql INTO OUTFILE nested unions with NULL causing a formatting issue with integer
|
I have strange behavior with SELECT INTO OUFILE and I didn't find an answer. To resume I have a table like this : CREATE TABLE mytable ( id int(11) NOT NULL auto_increment, field1 decimal(10,2) default NULL, field2 int(11) default NULL, field3 tinyint(4) default NULL, PRIMARY KEY (id), ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; When I execute a query like this : SELECT * INTO OUTFILE '/tmp/output.dat' FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '\"' ESCAPED BY '' LINES TERMINATED BY '\n' FROM mytable; I obtain a result like this in the output.dat : "12345678"|"20.00^@^@^@^@^@^@^@"|"1426513906^@"|"0^@^@^@" "95863214"|"20.00^@^@^@^@^@^@^@"|"1426514075^@"|"1^@^@^@" without ESCAPED BY : SELECT * INTO OUTFILE '/tmp/output.dat' FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' FROM mytable; I have a result like this : "12345678"|"20.00\0\0\0\0\0\0\0"|"1426513906\0"|"0\0\0\0" "95863214"|"20.00\0\0\0\0\0\0\0"|"1426514075\0"|"1\0\0\0" Mysql environment: "protocol_version";"10" "version";"5.0.67-community-log" "version_comment";"MySQL Community Edition (GPL)" "version_compile_machine";"x86_64" "version_compile_os";"redhat-linux-gnu" It seem like mysql try to fill with this special characters to have the size set in the structure of mytble. With TRIM I don't have this characters. But I want to know if it's normal to have this behavior only with integer and decimal or it's bug ? I want to know also if there are another solution to avoid using TRIM with each field ? Because I have a lot of queries more complex then this one. Thank you for your help and the time that you took to read my post Regards EDIT: I thought that the problem probably comes from INTO OUFILE and type fields only. I didn't think to mention nested unions in this case. So I changed the title and I'm responding to my question.
|
Mysql INTO OUTFILE nested unions with NULL causing a formatting issue with integer I have strange behavior with SELECT INTO OUFILE and I didn't find an answer. To resume I have a table like this : CREATE TABLE mytable ( id int(11) NOT NULL auto_increment, field1 decimal(10,2) default NULL, field2 int(11) default NULL, field3 tinyint(4) default NULL, PRIMARY KEY (id), ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; When I execute a query like this : SELECT * INTO OUTFILE '/tmp/output.dat' FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '\"' ESCAPED BY '' LINES TERMINATED BY '\n' FROM mytable; I obtain a result like this in the output.dat : "12345678"|"20.00^@^@^@^@^@^@^@"|"1426513906^@"|"0^@^@^@" "95863214"|"20.00^@^@^@^@^@^@^@"|"1426514075^@"|"1^@^@^@" without ESCAPED BY : SELECT * INTO OUTFILE '/tmp/output.dat' FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' FROM mytable; I have a result like this : "12345678"|"20.00\0\0\0\0\0\0\0"|"1426513906\0"|"0\0\0\0" "95863214"|"20.00\0\0\0\0\0\0\0"|"1426514075\0"|"1\0\0\0" Mysql environment: "protocol_version";"10" "version";"5.0.67-community-log" "version_comment";"MySQL Community Edition (GPL)" "version_compile_machine";"x86_64" "version_compile_os";"redhat-linux-gnu" It seem like mysql try to fill with this special characters to have the size set in the structure of mytble. With TRIM I don't have this characters. But I want to know if it's normal to have this behavior only with integer and decimal or it's bug ? I want to know also if there are another solution to avoid using TRIM with each field ? Because I have a lot of queries more complex then this one. Thank you for your help and the time that you took to read my post Regards EDIT: I thought that the problem probably comes from INTO OUFILE and type fields only. I didn't think to mention nested unions in this case. So I changed the title and I'm responding to my question.
|
mysql, union, redhat, myisam, into-outfile
| 2
| 539
| 1
|
https://stackoverflow.com/questions/29274221/mysql-into-outfile-nested-unions-with-null-causing-a-formatting-issue-with-integ
|
28,683,549
|
Python OpenSSL : Importerror : cannot import name integer_types
|
Need to execute the following procedure on a Red Hat server: [URL] Python is version 2.7.9 - installed with Makefile. However, we're encountering an error when trying to validate the OpenSSL version. Need advice on how to proceed from here. It was previously suggested to install Python six to fix compatibility issues, but there was no improvement. % python -c "import OpenSSL; print OpenSSL._version_" Traceback (most recent call last): File "", line 1, in < module > File "build/bdist.linux-x86_64/egg/OpenSSL/ init .py", line 8, in < module > File "build/bdist.linux-x86_64/egg/OpenSSL/rand.py", line 9, in < module > ImportError: cannot import name integer_types
|
Python OpenSSL : Importerror : cannot import name integer_types Need to execute the following procedure on a Red Hat server: [URL] Python is version 2.7.9 - installed with Makefile. However, we're encountering an error when trying to validate the OpenSSL version. Need advice on how to proceed from here. It was previously suggested to install Python six to fix compatibility issues, but there was no improvement. % python -c "import OpenSSL; print OpenSSL._version_" Traceback (most recent call last): File "", line 1, in < module > File "build/bdist.linux-x86_64/egg/OpenSSL/ init .py", line 8, in < module > File "build/bdist.linux-x86_64/egg/OpenSSL/rand.py", line 9, in < module > ImportError: cannot import name integer_types
|
python, linux, cassandra, redhat, importerror
| 2
| 1,186
| 0
|
https://stackoverflow.com/questions/28683549/python-openssl-importerror-cannot-import-name-integer-types
|
28,272,265
|
Display average disk performance over time
|
I am new to Linux and am looking for the command to show A. View disk Performance B. View avg disk performance over time. so far I have come up with iostat, and iostat 1 which should refresh every second. But I'm not sure if this is the best method.
|
Display average disk performance over time I am new to Linux and am looking for the command to show A. View disk Performance B. View avg disk performance over time. so far I have come up with iostat, and iostat 1 which should refresh every second. But I'm not sure if this is the best method.
|
linux, redhat
| 2
| 429
| 1
|
https://stackoverflow.com/questions/28272265/display-average-disk-performance-over-time
|
28,102,720
|
Unable to install Varnish 3 on Centos 7
|
Varnish 3 package is in the repo /etc/yum.repos.d/varnish.repo When I do yum --enablerepo=varnish install varnish . It says repo doesn't exist. [root@VR1gb yum.repos.d]# rpm -qf varnish.repo varnish-release-3.0-1.el6.noarch [root@VR1gb yum.repos.d]# yum --enablerepo=varnish-3.0 install varnish It prompts to install Varnish 4 again if I do that. Same thing as I do. [root@VR1gb yum.repos.d]# yum install varnish Instruction on Varnish page clearly doesn't work. [URL] Within varnish.repo [root@VR1gb yum.repos.d]# cat varnish.repo [varnish-3.0] name=Varnish 3.0 for Enterprise Linux el6 - $basearch baseurl=[URL] enabled=1 gpgcheck=0 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH yum --disablerepo=* --enablerepo=varnish-3.0 install varnish Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package varnish.x86_64 0:3.0.6-1.el6 will be installed --> Processing Dependency: varnish-libs = 3.0.6-1.el6 for package: varnish-3.0.6-1.el6. x86_64 --> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.6-1.el6.x86_64 --> Finished Dependency Resolution Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0) Requires: varnish-libs = 3.0.6-1.el6 Installed: varnish-libs-4.0.2-1.el7.x86_64 (@epel) varnish-libs = 4.0.2-1.el7 Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-0.rc1.el6 Available: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-1.el6 Available: varnish-libs-3.0.4-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.4-1.el6 Available: varnish-libs-3.0.5-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.5-1.el6 Available: varnish-libs-3.0.6-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.6-1.el6 Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0) Requires: libpcre.so.0()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@VR1gb yum.repos.d]# rpm -qa ' varnish ' varnish-release-3.0-1.el6.noarch [root@VR1gb yum.repos.d]# service varnish start Starting varnish (via systemctl):
|
Unable to install Varnish 3 on Centos 7 Varnish 3 package is in the repo /etc/yum.repos.d/varnish.repo When I do yum --enablerepo=varnish install varnish . It says repo doesn't exist. [root@VR1gb yum.repos.d]# rpm -qf varnish.repo varnish-release-3.0-1.el6.noarch [root@VR1gb yum.repos.d]# yum --enablerepo=varnish-3.0 install varnish It prompts to install Varnish 4 again if I do that. Same thing as I do. [root@VR1gb yum.repos.d]# yum install varnish Instruction on Varnish page clearly doesn't work. [URL] Within varnish.repo [root@VR1gb yum.repos.d]# cat varnish.repo [varnish-3.0] name=Varnish 3.0 for Enterprise Linux el6 - $basearch baseurl=[URL] enabled=1 gpgcheck=0 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH yum --disablerepo=* --enablerepo=varnish-3.0 install varnish Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package varnish.x86_64 0:3.0.6-1.el6 will be installed --> Processing Dependency: varnish-libs = 3.0.6-1.el6 for package: varnish-3.0.6-1.el6. x86_64 --> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.6-1.el6.x86_64 --> Finished Dependency Resolution Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0) Requires: varnish-libs = 3.0.6-1.el6 Installed: varnish-libs-4.0.2-1.el7.x86_64 (@epel) varnish-libs = 4.0.2-1.el7 Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-0.rc1.el6 Available: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-1.el6 Available: varnish-libs-3.0.4-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.4-1.el6 Available: varnish-libs-3.0.5-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.5-1.el6 Available: varnish-libs-3.0.6-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.6-1.el6 Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0) Requires: libpcre.so.0()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@VR1gb yum.repos.d]# rpm -qa ' varnish ' varnish-release-3.0-1.el6.noarch [root@VR1gb yum.repos.d]# service varnish start Starting varnish (via systemctl):
|
centos, redhat, varnish, yum
| 2
| 1,563
| 0
|
https://stackoverflow.com/questions/28102720/unable-to-install-varnish-3-on-centos-7
|
27,917,486
|
connecting from red hat 6.4 to MSSQL 2012
|
I am trying to connect from my red hat 6.4 to a MSSQL 2012 server to monitor some parameters. Long story short: I have Icinga 1.9.4 configured on that Red Hat and I am monitoring lots of hosts/services. Also successfully monitoring MSSQL 2000, 2005, 2008, 2008 R2 with check_mssql_health (and freetds) from labs.consol.de The problem appears when trying to monitor MSSQL 2012, plugin cannot connect to it. Asked my MSSQL admin to double check that everything is configured OK, he confirmed that, he also successfully connected to MSSQL 2012 from another working MSSQL 2008. So, I thought, I should at least make a connection from anything (perl, isql, tsql) to see if actually is working and that I can get some data from that server but nothing can connect. Perl/isql/tsql cannot connect also to working MSSQL servers (the ones that I am successfully monitoring with Icinga / check_mssql_health) so I am guessing the problem is my linux setup. I could (desperately) use your help in finding out what the problem is. I do not know if check_mssql_health is compatible with MSSQL 2012 server, but, if I could make a successful connection from Perl to that MSSQL 2012, I should be able to get what I need with the help of Perl. Some details of my setup: perl -MDBI -e 'DBI->installed_versions;' Perl : 5.010001 (x86_64-linux-thread-multi) OS : linux (2.6.18-398.el5) DBI : 1.633 DBD::mysql : 4.013 DBD::Sybase : 1.15 DBD::Sponge : 12.010003 DBD::Proxy : 0.2004 DBD::Oracle : 1.74 DBD::ODBC : 1.50 DBD::Gofer : 0.015327 DBD::File : 0.44 DBD::ExampleP : 12.014311 DBD::DBM : 0.08 cat /etc/odbc.ini [SASSQL26DEV] Driver = FreeTDS Description = MSSQL database pt serverul meu Trace = Yes TraceFile = /usr/local/src/traceFile.log # Servername corresponds to the section in freetds.conf Servername = SASSQL26DEV Database = tempdb #port = 1433 cat /etc/odbcinst.ini [PostgreSQL] Description = ODBC for PostgreSQL Driver = /usr/lib/psqlodbc.so Setup = /usr/lib/libodbcpsqlS.so Driver64 = /usr/lib64/psqlodbc.so Setup64 = /usr/lib64/libodbcpsqlS.so FileUsage = 1 [MySQL] Description = ODBC for MySQL Driver = /usr/lib/libmyodbc5.so Setup = /usr/lib/libodbcmyS.so Driver64 = /usr/lib64/libmyodbc5.so Setup64 = /usr/lib64/libodbcmyS.so FileUsage = 1 [FreeTDS] Description = FreeTDS unixODBC Driver Driver = /usr/lib64/libtdsodbc.so cat /usr/local/freetds/etc/freetds.conf [SASSQL26DEV] host = 10.101.1.39 #port = 1433 tds version = 8.0 instance = CRMDEV The following Nagios user is a domain user isql -v SASSQL26DEV DOMAIN\nagios 'password' [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [ISQL]ERROR: Could not SQLConnect The following testnagios user, is a MSSQL user isql -v SASSQL26DEV testnagios 'ZAQ!2wsx' [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [ISQL]ERROR: Could not SQLConnect cat 11sql2012_test.pl #!/usr/bin/perl use DBI; my $user = "nagios"; my $passwd = "password"; my $server = "SASSQL26DEV"; my $dbh = DBI->connect("DBI:Sybase:server=$server", $user, $passwd, {PrintError => 0}); my $sth; unless ($dbh) { die "ERROR: Failed to connect to server ($server).\nERROR MESSAGE: $DBI::errstr"; } else { print "\n"; print "Successful Connection."; print "\n\n"; } ./11sql2012_test.pl ERROR: Failed to connect to server (SASSQL26DEV). ERROR MESSAGE: at ./11sql2012_test.pl line 13. Thanks
|
connecting from red hat 6.4 to MSSQL 2012 I am trying to connect from my red hat 6.4 to a MSSQL 2012 server to monitor some parameters. Long story short: I have Icinga 1.9.4 configured on that Red Hat and I am monitoring lots of hosts/services. Also successfully monitoring MSSQL 2000, 2005, 2008, 2008 R2 with check_mssql_health (and freetds) from labs.consol.de The problem appears when trying to monitor MSSQL 2012, plugin cannot connect to it. Asked my MSSQL admin to double check that everything is configured OK, he confirmed that, he also successfully connected to MSSQL 2012 from another working MSSQL 2008. So, I thought, I should at least make a connection from anything (perl, isql, tsql) to see if actually is working and that I can get some data from that server but nothing can connect. Perl/isql/tsql cannot connect also to working MSSQL servers (the ones that I am successfully monitoring with Icinga / check_mssql_health) so I am guessing the problem is my linux setup. I could (desperately) use your help in finding out what the problem is. I do not know if check_mssql_health is compatible with MSSQL 2012 server, but, if I could make a successful connection from Perl to that MSSQL 2012, I should be able to get what I need with the help of Perl. Some details of my setup: perl -MDBI -e 'DBI->installed_versions;' Perl : 5.010001 (x86_64-linux-thread-multi) OS : linux (2.6.18-398.el5) DBI : 1.633 DBD::mysql : 4.013 DBD::Sybase : 1.15 DBD::Sponge : 12.010003 DBD::Proxy : 0.2004 DBD::Oracle : 1.74 DBD::ODBC : 1.50 DBD::Gofer : 0.015327 DBD::File : 0.44 DBD::ExampleP : 12.014311 DBD::DBM : 0.08 cat /etc/odbc.ini [SASSQL26DEV] Driver = FreeTDS Description = MSSQL database pt serverul meu Trace = Yes TraceFile = /usr/local/src/traceFile.log # Servername corresponds to the section in freetds.conf Servername = SASSQL26DEV Database = tempdb #port = 1433 cat /etc/odbcinst.ini [PostgreSQL] Description = ODBC for PostgreSQL Driver = /usr/lib/psqlodbc.so Setup = /usr/lib/libodbcpsqlS.so Driver64 = /usr/lib64/psqlodbc.so Setup64 = /usr/lib64/libodbcpsqlS.so FileUsage = 1 [MySQL] Description = ODBC for MySQL Driver = /usr/lib/libmyodbc5.so Setup = /usr/lib/libodbcmyS.so Driver64 = /usr/lib64/libmyodbc5.so Setup64 = /usr/lib64/libodbcmyS.so FileUsage = 1 [FreeTDS] Description = FreeTDS unixODBC Driver Driver = /usr/lib64/libtdsodbc.so cat /usr/local/freetds/etc/freetds.conf [SASSQL26DEV] host = 10.101.1.39 #port = 1433 tds version = 8.0 instance = CRMDEV The following Nagios user is a domain user isql -v SASSQL26DEV DOMAIN\nagios 'password' [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [ISQL]ERROR: Could not SQLConnect The following testnagios user, is a MSSQL user isql -v SASSQL26DEV testnagios 'ZAQ!2wsx' [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [ISQL]ERROR: Could not SQLConnect cat 11sql2012_test.pl #!/usr/bin/perl use DBI; my $user = "nagios"; my $passwd = "password"; my $server = "SASSQL26DEV"; my $dbh = DBI->connect("DBI:Sybase:server=$server", $user, $passwd, {PrintError => 0}); my $sth; unless ($dbh) { die "ERROR: Failed to connect to server ($server).\nERROR MESSAGE: $DBI::errstr"; } else { print "\n"; print "Successful Connection."; print "\n\n"; } ./11sql2012_test.pl ERROR: Failed to connect to server (SASSQL26DEV). ERROR MESSAGE: at ./11sql2012_test.pl line 13. Thanks
|
sql-server, perl, redhat
| 2
| 452
| 0
|
https://stackoverflow.com/questions/27917486/connecting-from-red-hat-6-4-to-mssql-2012
|
26,755,241
|
Renamea file with new suffix
|
how can i rename a file eith new suffix known only the prefix ? Example: I have a file called: a_proof.txt How can i rename in: a_proof.tmp I have to use the linux shell like CSH and KSH, and the most used programs on linux Red Hat.
|
Renamea file with new suffix how can i rename a file eith new suffix known only the prefix ? Example: I have a file called: a_proof.txt How can i rename in: a_proof.tmp I have to use the linux shell like CSH and KSH, and the most used programs on linux Red Hat.
|
linux, shell, redhat
| 2
| 43
| 2
|
https://stackoverflow.com/questions/26755241/renamea-file-with-new-suffix
|
24,766,834
|
redhat wget with zero timeout ignored
|
I'm running wget command wget -O - -q -t 1 --timeout=0 ' [URL] ' which invokes nodejs script running in the background. Once nodejs script completes, it shows detail in the output. If it's running for 2-3 minutes then everything is ok, but if it's running longer than 5 minutes, wget command just quits\ends\terminates without output and the script still remains running in the background. This can only be seen in the application server logs. Basically, the required output is lost. Why does wget close even though the timeout is set to 0? It should wait for hours (on Debian it works btw, but on Redhat I see the above behavior)? Any solution that can be suggested? Thanks.
|
redhat wget with zero timeout ignored I'm running wget command wget -O - -q -t 1 --timeout=0 ' [URL] ' which invokes nodejs script running in the background. Once nodejs script completes, it shows detail in the output. If it's running for 2-3 minutes then everything is ok, but if it's running longer than 5 minutes, wget command just quits\ends\terminates without output and the script still remains running in the background. This can only be seen in the application server logs. Basically, the required output is lost. Why does wget close even though the timeout is set to 0? It should wait for hours (on Debian it works btw, but on Redhat I see the above behavior)? Any solution that can be suggested? Thanks.
|
timeout, wget, redhat
| 2
| 114
| 0
|
https://stackoverflow.com/questions/24766834/redhat-wget-with-zero-timeout-ignored
|
24,720,329
|
How do I install xvfb and phantomjs on openshift (I'm getting permission denied error)
|
I'm logged in via SSH through my local ubuntu to this openshift machine. I've cloned the repo in my local system, added a script, pushed the code and I can see in my openshift account. However I want to install few dependencies which are not available by default on openshift. e.g. Xvfb and phantomJS. I tried to install it via yum and npm but getting permission denied error. How could I install these packages or in general if want to install any thing in future how could I. yum install xorg-x11-server-Xvfb or even yum install xvfb npm -g install phantomjs PS: I'm in /var/lib/openshift/<some_alphanum_string> directory and trying to install here. is this ok?
|
How do I install xvfb and phantomjs on openshift (I'm getting permission denied error) I'm logged in via SSH through my local ubuntu to this openshift machine. I've cloned the repo in my local system, added a script, pushed the code and I can see in my openshift account. However I want to install few dependencies which are not available by default on openshift. e.g. Xvfb and phantomJS. I tried to install it via yum and npm but getting permission denied error. How could I install these packages or in general if want to install any thing in future how could I. yum install xorg-x11-server-Xvfb or even yum install xvfb npm -g install phantomjs PS: I'm in /var/lib/openshift/<some_alphanum_string> directory and trying to install here. is this ok?
|
linux, openshift, redhat, rhel, xvfb
| 2
| 733
| 0
|
https://stackoverflow.com/questions/24720329/how-do-i-install-xvfb-and-phantomjs-on-openshift-im-getting-permission-denied
|
24,113,522
|
RHC not working on OpenShift instance
|
I am just getting started with Node, so I created an instance on OpenShift and am trying to install rhc so that I can setup aliases for my domain name. I ran the following and the installation was successful for rhc (1.25.2). gem install rhc The next step was to run: rhc setup However, I'm getting the error bash: rhc: command not found Help would be appreciated. Ultimately, the problem I am trying to fix is stopping my website from redirecting [URL] -> [URL] -- Update: I found rhc located in /var/lib/openshift/[MYUSERDIR]/.gem/bin and I tried to run the setup and I ended up with this message: ./rhc setup OpenShift Client Tools (RHC) Setup Wizard This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed. An unexpected error occured: undefined method []' for nil:NilClass Update 2: rhc setup now runs, but fails when attempting to generate a token: Generate a token now? (yes|no) yes Generating an authorization token for this client ... /usr/lib/ruby/1.8/fileutils.rb:243:in mkdir': Permission denied - /var/lib/openshift/[hidden]/.openshift (Errno::EACCES)
|
RHC not working on OpenShift instance I am just getting started with Node, so I created an instance on OpenShift and am trying to install rhc so that I can setup aliases for my domain name. I ran the following and the installation was successful for rhc (1.25.2). gem install rhc The next step was to run: rhc setup However, I'm getting the error bash: rhc: command not found Help would be appreciated. Ultimately, the problem I am trying to fix is stopping my website from redirecting [URL] -> [URL] -- Update: I found rhc located in /var/lib/openshift/[MYUSERDIR]/.gem/bin and I tried to run the setup and I ended up with this message: ./rhc setup OpenShift Client Tools (RHC) Setup Wizard This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed. An unexpected error occured: undefined method []' for nil:NilClass Update 2: rhc setup now runs, but fails when attempting to generate a token: Generate a token now? (yes|no) yes Generating an authorization token for this client ... /usr/lib/ruby/1.8/fileutils.rb:243:in mkdir': Permission denied - /var/lib/openshift/[hidden]/.openshift (Errno::EACCES)
|
rubygems, openshift, redhat, openshift-client-tools
| 2
| 1,768
| 0
|
https://stackoverflow.com/questions/24113522/rhc-not-working-on-openshift-instance
|
23,853,756
|
run an OpenShift gear on-demand
|
I have a gear with JBoss Fuse and Apache Camel consuming a considerable amount of memory that needs to run a nightly task, i.e. it needs to be activated only at a specific time of the day, run its routes, and then shutdown. Is there a way to accomplish this on OpenShift?
|
run an OpenShift gear on-demand I have a gear with JBoss Fuse and Apache Camel consuming a considerable amount of memory that needs to run a nightly task, i.e. it needs to be activated only at a specific time of the day, run its routes, and then shutdown. Is there a way to accomplish this on OpenShift?
|
apache-camel, openshift, redhat
| 2
| 79
| 1
|
https://stackoverflow.com/questions/23853756/run-an-openshift-gear-on-demand
|
21,905,601
|
ImageMagick library in CI on OpenShift RedHat not working
|
I have a codeigniter website and i cant get ImageMagick to work. I have checked with phpinfo() and imagemagick is enabled on the server. This is the config code for the library: $image_conf = array( 'image_library' => 'ImageMagick', 'library_path' => '/usr/bin/', ..... I keep getting the same error: Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct. is 'library_path' => '/usr/bin/' ? I cant seem to find anything regarding this on their forums, people usually had different problems that were solved... And i have no other problems with paths on the website or similar... Here is some server information ask for more if you need: $config['base_path']= "/var/lib/openshift/12341234...appcode/app-root/runtime/repo/php/"; $config['base_dir']= "/var/lib/openshift/1234324..appcode/app-root/runtime/repo/php/"; imagick 2.2.2 PHP 5.3.3, ZendServer Linux Apache/2.2.22 (Red Hat Enterprise Web Server)
|
ImageMagick library in CI on OpenShift RedHat not working I have a codeigniter website and i cant get ImageMagick to work. I have checked with phpinfo() and imagemagick is enabled on the server. This is the config code for the library: $image_conf = array( 'image_library' => 'ImageMagick', 'library_path' => '/usr/bin/', ..... I keep getting the same error: Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct. is 'library_path' => '/usr/bin/' ? I cant seem to find anything regarding this on their forums, people usually had different problems that were solved... And i have no other problems with paths on the website or similar... Here is some server information ask for more if you need: $config['base_path']= "/var/lib/openshift/12341234...appcode/app-root/runtime/repo/php/"; $config['base_dir']= "/var/lib/openshift/1234324..appcode/app-root/runtime/repo/php/"; imagick 2.2.2 PHP 5.3.3, ZendServer Linux Apache/2.2.22 (Red Hat Enterprise Web Server)
|
php, codeigniter, imagemagick, redhat, openshift
| 2
| 916
| 1
|
https://stackoverflow.com/questions/21905601/imagemagick-library-in-ci-on-openshift-redhat-not-working
|
20,855,516
|
change file open mode with a kernel module
|
I'm doing some test with a kernel module for change a file open mode of a process from write to readonly with the following code, I take the file descriptor number from lsof -p <pid of process> and compile the module && insmod changefilemode.ko it works on fedora 19, but if Ido it on RedHat 5, the file descriptor is closed. #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/file.h> #include <linux/fs.h> struct files_struct *get_files_struct(struct task_struct *task) { struct files_struct *files; task_lock(task); files = task->files; if (files) atomic_inc(&files->count); task_unlock(task); return files; } MODULE_LICENSE("GPL"); static int __init myinit(){ struct task_struct *tsk; for_each_process(tsk){ if(tsk->pid == 11923){ struct files_struct *files = get_files_struct(tsk); task_lock(tsk); printk("\tpid %d - file mode %d\n",tsk->pid, files->fd_array[6]->f_mode); files->fd_array[6]->f_mode = FMODE_READ; printk("\tpid %d - file mode %d\n",tsk->pid, files->fd_array[6]->f_mode); task_unlock(tsk); } } return 0; } static void __exit myexit(){ printk("Good Bye from exit"); } module_init(myinit); module_exit(myexit);
|
change file open mode with a kernel module I'm doing some test with a kernel module for change a file open mode of a process from write to readonly with the following code, I take the file descriptor number from lsof -p <pid of process> and compile the module && insmod changefilemode.ko it works on fedora 19, but if Ido it on RedHat 5, the file descriptor is closed. #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/file.h> #include <linux/fs.h> struct files_struct *get_files_struct(struct task_struct *task) { struct files_struct *files; task_lock(task); files = task->files; if (files) atomic_inc(&files->count); task_unlock(task); return files; } MODULE_LICENSE("GPL"); static int __init myinit(){ struct task_struct *tsk; for_each_process(tsk){ if(tsk->pid == 11923){ struct files_struct *files = get_files_struct(tsk); task_lock(tsk); printk("\tpid %d - file mode %d\n",tsk->pid, files->fd_array[6]->f_mode); files->fd_array[6]->f_mode = FMODE_READ; printk("\tpid %d - file mode %d\n",tsk->pid, files->fd_array[6]->f_mode); task_unlock(tsk); } } return 0; } static void __exit myexit(){ printk("Good Bye from exit"); } module_init(myinit); module_exit(myexit);
|
linux, linux-kernel, fedora, redhat
| 2
| 770
| 1
|
https://stackoverflow.com/questions/20855516/change-file-open-mode-with-a-kernel-module
|
19,801,634
|
How do I use audispd to send messages forwareded from a remote system to local syslog
|
Using RHEL6, I currently have audispd setup to send logs to a remote server. The remote server successfully receives the messages, and writes them to the remote audit log. My problem is, I can't seem to get the forwarded messages(local ones work) to be processed by audispd and to be written to rsyslog. This doesn't work. box1 auditd ===> box1 audispd ===> box2 auditd XXX> box2 audispd XXX> box2 rsyslog This does. box2 auditd ===> box2 audispd ===> box2 rsyslog I know generally how to configure audispd to send local logs to rsyslog, but the forwarded logs are not going to rsyslog. The X's above show where the traffic is not reaching its destination. I'm not looking to use imfile or other workarounds unless it is not possible to send forwarded messages through audispd on box2. I know I can send to rsyslog on box1, but it is my intention not to.
|
How do I use audispd to send messages forwareded from a remote system to local syslog Using RHEL6, I currently have audispd setup to send logs to a remote server. The remote server successfully receives the messages, and writes them to the remote audit log. My problem is, I can't seem to get the forwarded messages(local ones work) to be processed by audispd and to be written to rsyslog. This doesn't work. box1 auditd ===> box1 audispd ===> box2 auditd XXX> box2 audispd XXX> box2 rsyslog This does. box2 auditd ===> box2 audispd ===> box2 rsyslog I know generally how to configure audispd to send local logs to rsyslog, but the forwarded logs are not going to rsyslog. The X's above show where the traffic is not reaching its destination. I'm not looking to use imfile or other workarounds unless it is not possible to send forwarded messages through audispd on box2. I know I can send to rsyslog on box1, but it is my intention not to.
|
redhat, rsyslog
| 2
| 1,867
| 0
|
https://stackoverflow.com/questions/19801634/how-do-i-use-audispd-to-send-messages-forwareded-from-a-remote-system-to-local-s
|
18,899,791
|
PDF Orientation Ignored on Brother QL1060 with RHEL6
|
We are working on migrating our application server from our existing RHEL 4 server to RHEL 6. The application will print via cups a PDF output file to the printer, and usually this doesn't cause us any issues. On one specific printer type - Brother QL1060n - the orientation seems to be ignored. On the same printer, if going from Windows XP/7, it will maintain the print output orientation. Off of our RHEL 6 server - it ignores it. The command we're using to simulate and test is: lp -d brotherql1060 -o landscape filename.pdf Our other printers - HP's, Konicas, Oki, etc, all seem to print the same file without issue using the same command - however the Brother units will ignore the landscape argument and print portrait. We tried printing portrait, and it will print exactly the same. We are using the latest driver from Brother's website. We also tried the older driver from the RHEL 4 platform, and when we try that, nothing prints - the job leaves the queue, but the printer does nothing. We also updated the printer firmware to the latest version -and no change to the behavior. So far Google-fu has yielded a few ideas, but no solutions.
|
PDF Orientation Ignored on Brother QL1060 with RHEL6 We are working on migrating our application server from our existing RHEL 4 server to RHEL 6. The application will print via cups a PDF output file to the printer, and usually this doesn't cause us any issues. On one specific printer type - Brother QL1060n - the orientation seems to be ignored. On the same printer, if going from Windows XP/7, it will maintain the print output orientation. Off of our RHEL 6 server - it ignores it. The command we're using to simulate and test is: lp -d brotherql1060 -o landscape filename.pdf Our other printers - HP's, Konicas, Oki, etc, all seem to print the same file without issue using the same command - however the Brother units will ignore the landscape argument and print portrait. We tried printing portrait, and it will print exactly the same. We are using the latest driver from Brother's website. We also tried the older driver from the RHEL 4 platform, and when we try that, nothing prints - the job leaves the queue, but the printer does nothing. We also updated the printer firmware to the latest version -and no change to the behavior. So far Google-fu has yielded a few ideas, but no solutions.
|
linux, printing, redhat, rhel
| 2
| 430
| 0
|
https://stackoverflow.com/questions/18899791/pdf-orientation-ignored-on-brother-ql1060-with-rhel6
|
16,272,555
|
How to configure logging for libreoffice standard installation on RedHat
|
I have a standard libreoffice installation installed by rpm on a RedHat EL6 system. Is it possible to configure the logging for this libreoffice installation (lower the level-treshold, set the output-logfile, ...) - and if yes: how would I do that?
|
How to configure logging for libreoffice standard installation on RedHat I have a standard libreoffice installation installed by rpm on a RedHat EL6 system. Is it possible to configure the logging for this libreoffice installation (lower the level-treshold, set the output-logfile, ...) - and if yes: how would I do that?
|
logging, redhat, rpm, configure, libreoffice
| 2
| 204
| 0
|
https://stackoverflow.com/questions/16272555/how-to-configure-logging-for-libreoffice-standard-installation-on-redhat
|
15,649,486
|
Do I have to build my program on the oldest Linux OS minor version I want to support?
|
If I want my software to run on Red Hat Linux 6.0, do I have to build it on 6.0? Or can I build it on 6.3? (Similar question for 5.X) I'm asking a general question about runtime implications of shared libraries and similar "automatic" dependencies that get sucked in during the build process. And I'm interested only in the divergence between minor releases. I know that more things change between major releases. I'm interesting specifically in RH and RH-derived distributions. My program is written in C and C++. I think the biggest dependency I need to worry about is the GCC runtime libraries for C and C++. Is there a web page I can use to verify which GCC updates were used in which RH minor releases? To be clear: I understand the goal and commitment to compatibility between update releases going forward. Upgrading from 6.1 to 6.2 should not break my existing applications. In order to build on a newer update and run on an older update, I would need the reverse kind of compatibility. I need 6.1 to be compatible with things built on 6.2. In general this kind of compatibility is impossible to achieve on a wide-spread basis, across all config files, libraries etc. But I only need a narrow slice of reverse compatibility. I have an app that was designed, written and built successfully on 6.1. Now I want to build it on 6.2, but I want it to still run correctly on 6.1. Is there a general software release practice on Linux that you always have to build on the oldest update release that you want to support? Or do most people use trial-and-error to determine whether their app runs on older update releases? If you use trial-and-error, how much "error" shows up in the equation?
|
Do I have to build my program on the oldest Linux OS minor version I want to support? If I want my software to run on Red Hat Linux 6.0, do I have to build it on 6.0? Or can I build it on 6.3? (Similar question for 5.X) I'm asking a general question about runtime implications of shared libraries and similar "automatic" dependencies that get sucked in during the build process. And I'm interested only in the divergence between minor releases. I know that more things change between major releases. I'm interesting specifically in RH and RH-derived distributions. My program is written in C and C++. I think the biggest dependency I need to worry about is the GCC runtime libraries for C and C++. Is there a web page I can use to verify which GCC updates were used in which RH minor releases? To be clear: I understand the goal and commitment to compatibility between update releases going forward. Upgrading from 6.1 to 6.2 should not break my existing applications. In order to build on a newer update and run on an older update, I would need the reverse kind of compatibility. I need 6.1 to be compatible with things built on 6.2. In general this kind of compatibility is impossible to achieve on a wide-spread basis, across all config files, libraries etc. But I only need a narrow slice of reverse compatibility. I have an app that was designed, written and built successfully on 6.1. Now I want to build it on 6.2, but I want it to still run correctly on 6.1. Is there a general software release practice on Linux that you always have to build on the oldest update release that you want to support? Or do most people use trial-and-error to determine whether their app runs on older update releases? If you use trial-and-error, how much "error" shows up in the equation?
|
build, dependencies, build-process, compatibility, redhat
| 2
| 56
| 0
|
https://stackoverflow.com/questions/15649486/do-i-have-to-build-my-program-on-the-oldest-linux-os-minor-version-i-want-to-sup
|
14,468,779
|
richface fileupload file size restricted error
|
I am using richface 3.3.3 with Seam 2.2., Jboss 6.1 I am using the trying to use rich:fileupload component. i get error on files above 10 MB when i deploy my Code on a linux server, when i try the exact same code on my windows server it works fine with files upto 1.9GB. Windows 7,Ubuntu as server works fine. Red Hat Enterprise Linux Server release 6.2 (Santiago) dosn't work. I go the following settings in web.xml <filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> <init-param> <param-name>maxRequestSize</param-name> <param-value>1900000000</param-value> </init-param> <init-param> <param-name>createTempFiles</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>Seam Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> My file uppload component. <rich:fileUpload id="fileUploadId" uploadControlLabel="Ladda Ner" addControlLabel="Filer..." cancelEntryControlLabel="Ta bort" maxFilesQuantity="1000" uploadButtonClassDisabled="invisible" stopButtonClass="invisible" onadd="_onaddHandler(event);" onerror="_onerrorhandle(event);" fileUploadListener="#{deliveryInAction.fileUploadListener}" onupload="Richfaces.showModalPanel('wait-dialog-upload');" onuploadcomplete="archive();" allowFlash="auto" styleClass="syll-file-upload"/>
|
richface fileupload file size restricted error I am using richface 3.3.3 with Seam 2.2., Jboss 6.1 I am using the trying to use rich:fileupload component. i get error on files above 10 MB when i deploy my Code on a linux server, when i try the exact same code on my windows server it works fine with files upto 1.9GB. Windows 7,Ubuntu as server works fine. Red Hat Enterprise Linux Server release 6.2 (Santiago) dosn't work. I go the following settings in web.xml <filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> <init-param> <param-name>maxRequestSize</param-name> <param-value>1900000000</param-value> </init-param> <init-param> <param-name>createTempFiles</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>Seam Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> My file uppload component. <rich:fileUpload id="fileUploadId" uploadControlLabel="Ladda Ner" addControlLabel="Filer..." cancelEntryControlLabel="Ta bort" maxFilesQuantity="1000" uploadButtonClassDisabled="invisible" stopButtonClass="invisible" onadd="_onaddHandler(event);" onerror="_onerrorhandle(event);" fileUploadListener="#{deliveryInAction.fileUploadListener}" onupload="Richfaces.showModalPanel('wait-dialog-upload');" onuploadcomplete="archive();" allowFlash="auto" styleClass="syll-file-upload"/>
|
richfaces, seam, redhat, jboss6.x
| 2
| 887
| 1
|
https://stackoverflow.com/questions/14468779/richface-fileupload-file-size-restricted-error
|
13,228,305
|
How to setup a Node.js application as a service on Red Hat Linux
|
I created a node.js application. It is a web server with the Express framework. I can start it with the command node server.js . This application is deployed on a Red Hat Enterprise server. I want this applicaion can: Start automatically when the OS is started. Restart automatically when it crashes. I think OS service can meet my requirements, right? Is there any clue how to setup the Node.js application as service on Red Hat?
|
How to setup a Node.js application as a service on Red Hat Linux I created a node.js application. It is a web server with the Express framework. I can start it with the command node server.js . This application is deployed on a Red Hat Enterprise server. I want this applicaion can: Start automatically when the OS is started. Restart automatically when it crashes. I think OS service can meet my requirements, right? Is there any clue how to setup the Node.js application as service on Red Hat?
|
linux, node.js, service, redhat
| 2
| 2,439
| 1
|
https://stackoverflow.com/questions/13228305/how-to-setup-a-node-js-application-as-a-service-on-red-hat-linux
|
12,976,746
|
SELinux and multiple httpd service context
|
Using CentOS 6 I have 2 Apache httpd services running. The first one provides REST interfaces and a UI to manage the operating system (start/stop services, execute system command using suid, modify system settings, etc.). This httpd service (running on port 5555) will only be accessible from a certain ip range (firewall) since it will be used for administrative purposes. The second httpd service (port 80 and 443) will be visible on the Internet. It will serve a web application to external customers. The first httpd needs selinux policies that give it more access to the OS files/processes. The second needs selinux policies that are strict to what it is allowed to do within its context. The second needs to be this way for better web application security and prevent any web app exploits from even being able to touch the OS. Both of the httpd processes are running as different users. Can selinux be used with 2 different sets of policies for the same httpd executable? How do I/is it possible to set the httpd process context to switch to another set of policies when httpd starts? Is it just a matter of making a copy of the httpd binary and change its selinux context that uses all new policies (relabel the httpd binary, but I'm sure it will take more than this)? What are the steps to copy the existing httpd selinux settings to a new name? I think this comes down to needing a httpdpublic and httpdprivate selinux context. Anyone done anything like this before that could give some guidance or suggest alternative solutions? Thanks
|
SELinux and multiple httpd service context Using CentOS 6 I have 2 Apache httpd services running. The first one provides REST interfaces and a UI to manage the operating system (start/stop services, execute system command using suid, modify system settings, etc.). This httpd service (running on port 5555) will only be accessible from a certain ip range (firewall) since it will be used for administrative purposes. The second httpd service (port 80 and 443) will be visible on the Internet. It will serve a web application to external customers. The first httpd needs selinux policies that give it more access to the OS files/processes. The second needs selinux policies that are strict to what it is allowed to do within its context. The second needs to be this way for better web application security and prevent any web app exploits from even being able to touch the OS. Both of the httpd processes are running as different users. Can selinux be used with 2 different sets of policies for the same httpd executable? How do I/is it possible to set the httpd process context to switch to another set of policies when httpd starts? Is it just a matter of making a copy of the httpd binary and change its selinux context that uses all new policies (relabel the httpd binary, but I'm sure it will take more than this)? What are the steps to copy the existing httpd selinux settings to a new name? I think this comes down to needing a httpdpublic and httpdprivate selinux context. Anyone done anything like this before that could give some guidance or suggest alternative solutions? Thanks
|
centos, apache, redhat, centos6, selinux
| 2
| 617
| 0
|
https://stackoverflow.com/questions/12976746/selinux-and-multiple-httpd-service-context
|
8,357,770
|
Rake spec fails with no error message
|
I have a Rails app that runs on Phusion+Apache in the following environment: RHEL 5 x64 Ruby 1.9.2 p290 x64 Rails 3.0.4 Rake 0.9.2.2 I'm using and Oracle 11g database so I've also installed: activerecord-oracle_enhanced-adapter (1.4.0) ruby-oci8 (2.0.6) database.yml is correctly configured. My application correctly runs in production mode. The problem is when I try to run my tests with rake spec I have the following Warnings and then the rake process stops with no error message at all. Here is the output: alex@rhel:~/projects/app$ rake spec WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /usr/local/lib/ruby/gems/1.9.1/lib/rake/rdoctask.rb WARNING: Global access to Rake DSL methods is deprecated. Please include ... Rake::DSL into classes and modules which use the Rake DSL methods. WARNING: DSL method Api::Application#task called at /usr/local/lib/ruby/gems/1.9.1/railties-3.0.4/lib/rails/application.rb:214:in `initialize_tasks' alex@rhel:~/projects/app$ I've checked the exit code of the rake process and is set on 0 -> success. Do you have any ideas ? Thanks
|
Rake spec fails with no error message I have a Rails app that runs on Phusion+Apache in the following environment: RHEL 5 x64 Ruby 1.9.2 p290 x64 Rails 3.0.4 Rake 0.9.2.2 I'm using and Oracle 11g database so I've also installed: activerecord-oracle_enhanced-adapter (1.4.0) ruby-oci8 (2.0.6) database.yml is correctly configured. My application correctly runs in production mode. The problem is when I try to run my tests with rake spec I have the following Warnings and then the rake process stops with no error message at all. Here is the output: alex@rhel:~/projects/app$ rake spec WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /usr/local/lib/ruby/gems/1.9.1/lib/rake/rdoctask.rb WARNING: Global access to Rake DSL methods is deprecated. Please include ... Rake::DSL into classes and modules which use the Rake DSL methods. WARNING: DSL method Api::Application#task called at /usr/local/lib/ruby/gems/1.9.1/railties-3.0.4/lib/rails/application.rb:214:in `initialize_tasks' alex@rhel:~/projects/app$ I've checked the exit code of the rake process and is set on 0 -> success. Do you have any ideas ? Thanks
|
ruby-on-rails, ruby, rake, redhat, specifications
| 2
| 652
| 1
|
https://stackoverflow.com/questions/8357770/rake-spec-fails-with-no-error-message
|
6,596,830
|
How to stacically compile DBD::mysql and move the files on a shared hosting where i have my own perl installation
|
I have downloaded and installed locally on my Ubuntu ActiveState Perl(ActivePerl-5.14.1.1401-x86_64-linux-glibc-2.3.5-294969.tar.gz). I did "~$ sudo apt-get install libmysqlclient-dev" I downloaded from CPAN DBD::mysql I read INSTALL.html And here is my problem: I am not sure how to compile a statically linked DBD::mysql which i can copy from my local ActivePerl installation to the same perl instalaltion but on my shared hosting provider mashine. Note that the uploaded via ftp(no ssh there) perl directory structure works on the shared hosting (also x86_64-linux) after changing executable file permissions in ActivePerl/bin/ directory. My CGI scripts run well under mod_cgi and mod_fast_cgi on the shared hosting. I tried the advises in the installation document( INSTALL.html#source_installation ) but no luck. On another shared hosting with i586 Active Perl DBD::mysql just works because I first installed it locally using PPM and then uploaded via FTP. However there is no x86_64 PPM package provided by ActiveState. Can sonmebody provide the magick spells for the commandline(ubuntu 11.04), something like: me@mine:~$ mkdir /tmp/mysql-static me@mine:~$ cp /usr/lib/libmysqlclien* /tmp/mysql-static me@mine:~$ cd ~/install/Perl/DBD-mysql-4.019/ me@mine:~/install/Perl/DBD-mysql-4.019$ perl Makefile.PL --libs="-L/tmp/mysql-static -lmysqlclient" me@mine:~/install/Perl/DBD-mysql-4.019$ make me@mine:~/install/Perl/DBD-mysql-4.019$ make install ... ...hm :D seems it worked this time, but anyway I wrote all of the above... it might be useful to others. I will upload later today on the shared hosting to see if it works.
|
How to stacically compile DBD::mysql and move the files on a shared hosting where i have my own perl installation I have downloaded and installed locally on my Ubuntu ActiveState Perl(ActivePerl-5.14.1.1401-x86_64-linux-glibc-2.3.5-294969.tar.gz). I did "~$ sudo apt-get install libmysqlclient-dev" I downloaded from CPAN DBD::mysql I read INSTALL.html And here is my problem: I am not sure how to compile a statically linked DBD::mysql which i can copy from my local ActivePerl installation to the same perl instalaltion but on my shared hosting provider mashine. Note that the uploaded via ftp(no ssh there) perl directory structure works on the shared hosting (also x86_64-linux) after changing executable file permissions in ActivePerl/bin/ directory. My CGI scripts run well under mod_cgi and mod_fast_cgi on the shared hosting. I tried the advises in the installation document( INSTALL.html#source_installation ) but no luck. On another shared hosting with i586 Active Perl DBD::mysql just works because I first installed it locally using PPM and then uploaded via FTP. However there is no x86_64 PPM package provided by ActiveState. Can sonmebody provide the magick spells for the commandline(ubuntu 11.04), something like: me@mine:~$ mkdir /tmp/mysql-static me@mine:~$ cp /usr/lib/libmysqlclien* /tmp/mysql-static me@mine:~$ cd ~/install/Perl/DBD-mysql-4.019/ me@mine:~/install/Perl/DBD-mysql-4.019$ perl Makefile.PL --libs="-L/tmp/mysql-static -lmysqlclient" me@mine:~/install/Perl/DBD-mysql-4.019$ make me@mine:~/install/Perl/DBD-mysql-4.019$ make install ... ...hm :D seems it worked this time, but anyway I wrote all of the above... it might be useful to others. I will upload later today on the shared hosting to see if it works.
|
mysql, perl, ubuntu, static, redhat
| 2
| 435
| 1
|
https://stackoverflow.com/questions/6596830/how-to-stacically-compile-dbdmysql-and-move-the-files-on-a-shared-hosting-wher
|
3,319,022
|
How to keep one of my application windows on top of the other windows of the same application?
|
I have a Motif-based notepad-like legacy application. I would like the modeless "Find/Replace" dialog (which is a Motif TopLevelShell) to always stay on top of the other windows of my application, but not on top of other applications. I don't see any Motif-specific setting to do this. KDE allows me to set window-specific behavior, but I can only make the "Find/Replace" window stay on top of all windows, which isn't right. What is the correct way to force one of my application windows to stay on top of the other windows of the same application? Is it possible at all? Is there a way to do it in Motif? KDE? Do I have to drop down to an X call?
|
How to keep one of my application windows on top of the other windows of the same application? I have a Motif-based notepad-like legacy application. I would like the modeless "Find/Replace" dialog (which is a Motif TopLevelShell) to always stay on top of the other windows of my application, but not on top of other applications. I don't see any Motif-specific setting to do this. KDE allows me to set window-specific behavior, but I can only make the "Find/Replace" window stay on top of all windows, which isn't right. What is the correct way to force one of my application windows to stay on top of the other windows of the same application? Is it possible at all? Is there a way to do it in Motif? KDE? Do I have to drop down to an X call?
|
c++, c, redhat, kde-plasma, motif
| 2
| 551
| 2
|
https://stackoverflow.com/questions/3319022/how-to-keep-one-of-my-application-windows-on-top-of-the-other-windows-of-the-sam
|
67,808,500
|
yum install openssl-devel dependency error caused by openssl-libs-1.0.2k-21.el7_9.x86_64
|
im trying to yum install openssl-devel on redhat 7.9, getting the following dependency error, it seems that a newer version of openssl-libs has been installed, and openssl-devel is still depending on the old version: Error: Package: 1:openssl-devel-1.0.2k-19.el7.x86_64 (rhel7.9-server) Requires: openssl-libs(x86-64) = 1:1.0.2k-19.el7 Installed: 1:openssl-libs-1.0.2k-21.el7_9.x86_64 (@rhel7.9-fix) openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 Available: 1:openssl-libs-1.0.2k-19.el7.x86_64 (rhel7.9-server) openssl-libs(x86-64) = 1:1.0.2k-19.el7 the thing is i can't seems to downgrade or remove openssl-libs 7.9-fix: sudo yum downgrade openssl-libs [sudo] password for idm: Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Resolving Dependencies --> Running transaction check ---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be a downgrade ---> Package openssl-libs.x86_64 1:1.0.2k-21.el7_9 will be erased --> Finished Dependency Resolution Error: Package: 1:openssl-1.0.2k-21.el7_9.x86_64 (@rhel7.9-fix) Requires: openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 Removing: 1:openssl-libs-1.0.2k-21.el7_9.x86_64 (@rhel7.9-fix) openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 Downgraded By: 1:openssl-libs-1.0.2k-19.el7.x86_64 (rhel7.9-server) openssl-libs(x86-64) = 1:1.0.2k-19.el7 sudo yum remove openssl-libs ... Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected so im not sure at this point what should i do to get openssl-devel installed. thanks in advance
|
yum install openssl-devel dependency error caused by openssl-libs-1.0.2k-21.el7_9.x86_64 im trying to yum install openssl-devel on redhat 7.9, getting the following dependency error, it seems that a newer version of openssl-libs has been installed, and openssl-devel is still depending on the old version: Error: Package: 1:openssl-devel-1.0.2k-19.el7.x86_64 (rhel7.9-server) Requires: openssl-libs(x86-64) = 1:1.0.2k-19.el7 Installed: 1:openssl-libs-1.0.2k-21.el7_9.x86_64 (@rhel7.9-fix) openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 Available: 1:openssl-libs-1.0.2k-19.el7.x86_64 (rhel7.9-server) openssl-libs(x86-64) = 1:1.0.2k-19.el7 the thing is i can't seems to downgrade or remove openssl-libs 7.9-fix: sudo yum downgrade openssl-libs [sudo] password for idm: Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Resolving Dependencies --> Running transaction check ---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be a downgrade ---> Package openssl-libs.x86_64 1:1.0.2k-21.el7_9 will be erased --> Finished Dependency Resolution Error: Package: 1:openssl-1.0.2k-21.el7_9.x86_64 (@rhel7.9-fix) Requires: openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 Removing: 1:openssl-libs-1.0.2k-21.el7_9.x86_64 (@rhel7.9-fix) openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 Downgraded By: 1:openssl-libs-1.0.2k-19.el7.x86_64 (rhel7.9-server) openssl-libs(x86-64) = 1:1.0.2k-19.el7 sudo yum remove openssl-libs ... Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected so im not sure at this point what should i do to get openssl-devel installed. thanks in advance
|
openssl, redhat, yum
| 2
| 4,913
| 1
|
https://stackoverflow.com/questions/67808500/yum-install-openssl-devel-dependency-error-caused-by-openssl-libs-1-0-2k-21-el7
|
53,197,923
|
Installing Chrome on Red hat
|
We have failed trying to install Chrome version google-chrome-stable-70.0.3538.77-1.x86_64 on Redhat linux environment version 7.2. We have created a yum repository and had done yum install google-chrome-stable but it fails at a step looking up for liberation-fonts stating requires liberation-fonts. All the fonts with latest version are installed on it. I am attaching the installation logs and list of fonts installed on server. I also tried install with .rpm link still had the same issue, and just to filter it out installed on different server of same os- still had same error. Link to Logs: Link to List of fonts: Just to add we had no trouble with version 69.0.3497.92 and Google doesn't allow us to download previous versions of Chrome - at least for Redhat OS.
|
Installing Chrome on Red hat We have failed trying to install Chrome version google-chrome-stable-70.0.3538.77-1.x86_64 on Redhat linux environment version 7.2. We have created a yum repository and had done yum install google-chrome-stable but it fails at a step looking up for liberation-fonts stating requires liberation-fonts. All the fonts with latest version are installed on it. I am attaching the installation logs and list of fonts installed on server. I also tried install with .rpm link still had the same issue, and just to filter it out installed on different server of same os- still had same error. Link to Logs: Link to List of fonts: Just to add we had no trouble with version 69.0.3497.92 and Google doesn't allow us to download previous versions of Chrome - at least for Redhat OS.
|
google-chrome, installation, redhat, yum
| 2
| 2,093
| 1
|
https://stackoverflow.com/questions/53197923/installing-chrome-on-red-hat
|
45,513,099
|
RedHat Redis Cluster port permission trouble
|
I am running into a problem trying to create a redis cluster following the instructions outlined here: [URL] The error I am getting in the logs when calling sudo service redis start : /etc/log/redis/redis.log: 3432:M 04 Aug 13:38:57.411 * Node configuration loaded, I'm 7442dbd9342231844b12ede7513470c092bd4646 3432:M 04 Aug 13:38:57.411 # Creating Server TCP listening socket *:16379: bind: Permission denied Interestingly enough when I start service using sudo with the same configuration file the service starts as expected according to the redis.log file: command copied from the service script: sudo /usr/bin/redis-server /etc/redis.conf : 3484:M 04 Aug 13:59:14.900 * DB loaded from disk: 0.000 seconds 3484:M 04 Aug 13:59:14.900 * The server is now ready to accept connections on port 6379 From what I know it seems like a permission issue, but I am failing to understand or to find out where there is such thing as user/usergroup -> port binding permissions. The same service is able to bind the redis port 6379 but unable to bind port 16379. Any suggestions/thoughts?
|
RedHat Redis Cluster port permission trouble I am running into a problem trying to create a redis cluster following the instructions outlined here: [URL] The error I am getting in the logs when calling sudo service redis start : /etc/log/redis/redis.log: 3432:M 04 Aug 13:38:57.411 * Node configuration loaded, I'm 7442dbd9342231844b12ede7513470c092bd4646 3432:M 04 Aug 13:38:57.411 # Creating Server TCP listening socket *:16379: bind: Permission denied Interestingly enough when I start service using sudo with the same configuration file the service starts as expected according to the redis.log file: command copied from the service script: sudo /usr/bin/redis-server /etc/redis.conf : 3484:M 04 Aug 13:59:14.900 * DB loaded from disk: 0.000 seconds 3484:M 04 Aug 13:59:14.900 * The server is now ready to accept connections on port 6379 From what I know it seems like a permission issue, but I am failing to understand or to find out where there is such thing as user/usergroup -> port binding permissions. The same service is able to bind the redis port 6379 but unable to bind port 16379. Any suggestions/thoughts?
|
linux, redis, permissions, redhat, rhel
| 2
| 614
| 1
|
https://stackoverflow.com/questions/45513099/redhat-redis-cluster-port-permission-trouble
|
42,260,960
|
Inconsistent change in VmRSS or VmSize when looking at /proc/self/status
|
I have been investigating an issue with a customer on Red Hat Enterprise Linux 6. I have seen similar behavior on Ubuntu as well. The customer is tracking the memory usage by outputting /proc/self/status This happens in an ODBC application when using a specific ODBC driver but I suspect that is relevant to the problem. The memory usage is being tracked (via calling /proc/self/status function pasted in then end) in various stages of the program, once before allocating some memory on the heap, once after freeing that memory and once after unloading the dynamic library. When the amount of the allocated memory exceeds some value, the VmRSS does not go down immediately after freeing the memory, but does go down immediately after unloading the so file. When the amount of the allocated memory is small VmRSS goes down immediately after freeing the memory. I have run valgrind on the application and I could not find any memory leak. Any help, explanations, pointers to articles is very much appreciated. void print_proc_status_vm() { std::ifstream proc_status_fhandle; proc_status_fhandle.open("/proc/self/status"); std::string s; int line=0; static std::map<std::string, int> memoryUsage; while(std::getline(proc_status_fhandle, s)){ ++line; if( (line >=12) and (line <=17 ) and (line !=14) ) { char* str = new char[s.size()+1]; strcpy(str, s.c_str()); std::string key(strtok(str, "\t ")); int value = atoi(strtok(NULL, "\t ")); printf("%s %d \n", key.c_str(), value - memoryUsage[key] ); memoryUsage[key] = value; delete[] str; } } }
|
Inconsistent change in VmRSS or VmSize when looking at /proc/self/status I have been investigating an issue with a customer on Red Hat Enterprise Linux 6. I have seen similar behavior on Ubuntu as well. The customer is tracking the memory usage by outputting /proc/self/status This happens in an ODBC application when using a specific ODBC driver but I suspect that is relevant to the problem. The memory usage is being tracked (via calling /proc/self/status function pasted in then end) in various stages of the program, once before allocating some memory on the heap, once after freeing that memory and once after unloading the dynamic library. When the amount of the allocated memory exceeds some value, the VmRSS does not go down immediately after freeing the memory, but does go down immediately after unloading the so file. When the amount of the allocated memory is small VmRSS goes down immediately after freeing the memory. I have run valgrind on the application and I could not find any memory leak. Any help, explanations, pointers to articles is very much appreciated. void print_proc_status_vm() { std::ifstream proc_status_fhandle; proc_status_fhandle.open("/proc/self/status"); std::string s; int line=0; static std::map<std::string, int> memoryUsage; while(std::getline(proc_status_fhandle, s)){ ++line; if( (line >=12) and (line <=17 ) and (line !=14) ) { char* str = new char[s.size()+1]; strcpy(str, s.c_str()); std::string key(strtok(str, "\t ")); int value = atoi(strtok(NULL, "\t ")); printf("%s %d \n", key.c_str(), value - memoryUsage[key] ); memoryUsage[key] = value; delete[] str; } } }
|
c++, bash, memory, redhat, virtual-memory
| 2
| 966
| 1
|
https://stackoverflow.com/questions/42260960/inconsistent-change-in-vmrss-or-vmsize-when-looking-at-proc-self-status
|
76,705,101
|
ansible yum remove - Failed to download packages
|
When I try to uninstall docker on a RHEL 8 box using Ansible I get the following error fatal: [server1]: FAILED! => {"changed": false, "msg": "Failed to download packages: containers-common-1:1.2.2-10.module+el8.4.0+11311+9da8acfb.x86_64: Cannot download, all mirrors were already tried without success", "results": []} If I SSH into the same host as the ansible user and run a manual yum remove docker docker-client docker-client-latest.... the packages are removed successfully. Here is my Ansible code --- - name: Remove PodMan gather_facts: true hosts: all become: yes tasks: - name: uninstall podman package: name: - docker - docker-client - docker-client-latest - docker-common - docker-latest - docker-latest-logrotate - docker-logrotate - docker-engine - podman - runc state: absent I have also tried the "yum" module rather than package, but I get the same error. Here is my Ansible version ansible --version ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Jun 6 2023, 07:39:01) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True
|
ansible yum remove - Failed to download packages When I try to uninstall docker on a RHEL 8 box using Ansible I get the following error fatal: [server1]: FAILED! => {"changed": false, "msg": "Failed to download packages: containers-common-1:1.2.2-10.module+el8.4.0+11311+9da8acfb.x86_64: Cannot download, all mirrors were already tried without success", "results": []} If I SSH into the same host as the ansible user and run a manual yum remove docker docker-client docker-client-latest.... the packages are removed successfully. Here is my Ansible code --- - name: Remove PodMan gather_facts: true hosts: all become: yes tasks: - name: uninstall podman package: name: - docker - docker-client - docker-client-latest - docker-common - docker-latest - docker-latest-logrotate - docker-logrotate - docker-engine - podman - runc state: absent I have also tried the "yum" module rather than package, but I get the same error. Here is my Ansible version ansible --version ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Jun 6 2023, 07:39:01) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True
|
ansible, redhat, yum
| 2
| 1,112
| 1
|
https://stackoverflow.com/questions/76705101/ansible-yum-remove-failed-to-download-packages
|
29,913,168
|
How to install standalone puppet on Redhat?
|
Can anyone suggest me the step by step process for standalone puppet installation on Redhat? I was trying to install by following the below link [URL] But when I run sudo yum install puppet command, the following errors are coming: Error: Package: rubygem-json-1.5.5-3.el6.x86_64 (puppetlabs-deps) Requires: rubygems >= 1.3.7 Error: Package: puppet-3.7.5-1.el6.noarch (puppetlabs-products) Requires: ruby >= 1.8 Error: Package: rubygem-json-1.5.5-3.el6.x86_64 (puppetlabs-deps) Requires: ruby(abi) = 1.8 Error: Package: puppet-3.7.5-1.el6.noarch (puppetlabs-products) Requires: ruby(selinux)
|
How to install standalone puppet on Redhat? Can anyone suggest me the step by step process for standalone puppet installation on Redhat? I was trying to install by following the below link [URL] But when I run sudo yum install puppet command, the following errors are coming: Error: Package: rubygem-json-1.5.5-3.el6.x86_64 (puppetlabs-deps) Requires: rubygems >= 1.3.7 Error: Package: puppet-3.7.5-1.el6.noarch (puppetlabs-products) Requires: ruby >= 1.8 Error: Package: rubygem-json-1.5.5-3.el6.x86_64 (puppetlabs-deps) Requires: ruby(abi) = 1.8 Error: Package: puppet-3.7.5-1.el6.noarch (puppetlabs-products) Requires: ruby(selinux)
|
puppet, redhat
| 2
| 1,850
| 1
|
https://stackoverflow.com/questions/29913168/how-to-install-standalone-puppet-on-redhat
|
30,304,093
|
grub2-mkpasswd-pbkdf2 - can it accept standard input?
|
On CentOS 6 we currently encrypt the grub password using the password --md5 option and we are able to script this into our standard server build. We are busy migrating to CentOS 7 and it appears that the password --md5 option has been removed in grub2 and replaced with grub2-mkpasswd-pbkdf2 . Although I welcome the improved security, I can't find a way to pass a password to the grub2-mkpasswd-pbkdf2 command via standard input, and it appears that grub2 has removed support for md5, the combination of which breaks our script building automation. Can anyone possibly help with: A way to pass a password to grub2-mkpasswd-pbkdf2 via standard input?; or An alternative pbkdf2 generation utility to grub2-mkpasswd-pbkdf2 that accepts standard input?; or A mechanism for using --md5 with grub2?
|
grub2-mkpasswd-pbkdf2 - can it accept standard input? On CentOS 6 we currently encrypt the grub password using the password --md5 option and we are able to script this into our standard server build. We are busy migrating to CentOS 7 and it appears that the password --md5 option has been removed in grub2 and replaced with grub2-mkpasswd-pbkdf2 . Although I welcome the improved security, I can't find a way to pass a password to the grub2-mkpasswd-pbkdf2 command via standard input, and it appears that grub2 has removed support for md5, the combination of which breaks our script building automation. Can anyone possibly help with: A way to pass a password to grub2-mkpasswd-pbkdf2 via standard input?; or An alternative pbkdf2 generation utility to grub2-mkpasswd-pbkdf2 that accepts standard input?; or A mechanism for using --md5 with grub2?
|
security, centos, redhat, grub, grub2
| 1
| 5,512
| 2
|
https://stackoverflow.com/questions/30304093/grub2-mkpasswd-pbkdf2-can-it-accept-standard-input
|
58,268,831
|
vs-code editor for yaml says expecting a map but found a sequence
|
i'm editing a main.yml in an ansible role's tasks folder. i'm using the YAML vscode extension by Red Hat. Here's the first part of the file... # Install Packages - name: Install the Kafka Broker Packages yum: name: "{{item}}-{{confluent.package_version}}" state: latest loop: "{{kafka_broker_packages}}" when: ansible_os_family == "RedHat" - name: Install the Kafka Broker Packages apt: name: "{{item}}={{confluent.package_version}}" update_cache: yes loop: "{{kafka_broker_packages}}" when: ansible_os_family == "Debian" the entire file has the red squiggly underline saying: Expecting a 'map', but found a 'sequence' i'm sure i'm doing something silly - any help is greatly appreciated
|
vs-code editor for yaml says expecting a map but found a sequence i'm editing a main.yml in an ansible role's tasks folder. i'm using the YAML vscode extension by Red Hat. Here's the first part of the file... # Install Packages - name: Install the Kafka Broker Packages yum: name: "{{item}}-{{confluent.package_version}}" state: latest loop: "{{kafka_broker_packages}}" when: ansible_os_family == "RedHat" - name: Install the Kafka Broker Packages apt: name: "{{item}}={{confluent.package_version}}" update_cache: yes loop: "{{kafka_broker_packages}}" when: ansible_os_family == "Debian" the entire file has the red squiggly underline saying: Expecting a 'map', but found a 'sequence' i'm sure i'm doing something silly - any help is greatly appreciated
|
visual-studio-code, ansible, yaml, redhat
| 1
| 7,465
| 4
|
https://stackoverflow.com/questions/58268831/vs-code-editor-for-yaml-says-expecting-a-map-but-found-a-sequence
|
10,882,310
|
how to switch to root user without entering password in bash script on RedHat
|
I want to switch to root user in bash script on RedHat by specifying the password in code rather than entering it. Any help will be highly appreciated. Thanks
|
how to switch to root user without entering password in bash script on RedHat I want to switch to root user in bash script on RedHat by specifying the password in code rather than entering it. Any help will be highly appreciated. Thanks
|
linux, bash, root, redhat
| 1
| 8,208
| 3
|
https://stackoverflow.com/questions/10882310/how-to-switch-to-root-user-without-entering-password-in-bash-script-on-redhat
|
5,412,589
|
Errors installing RVM
|
I'm trying to install rvm on redhat 5.5 and I'm getting this error: [mc@owl-ci ~]$ bash < <( curl [URL] ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 979 100 979 0 0 8168 0 --:--:-- --:--:-- --:--:-- 318k Cloning into rvm... remote: Counting objects: 18463, done. remote: Compressing objects: 100% (4985/4985), done. remote: Total 18463 (delta 12517), reused 17903 (delta 12002) Receiving objects: 100% (18463/18463), 3.19 MiB, done. Resolving deltas: 100% (12517/12517), done. mkdir: cannot create directory /archives': Permission denied mkdir: cannot create directory /src': Permission denied mkdir: cannot create directory /log': Permission denied mkdir: cannot create directory /gems': Permission denied mkdir: cannot create directory /man': Permission denied mkdir: cannot create directory /rubies': Permission denied mkdir: cannot create directory /config': Permission denied mkdir: cannot create directory /user': Permission denied I've install rvm before on different machines with no problems. I'm confused on why it's trying to create directories under the root path, I thought everything went under ~/.rvm (therefore shouldn't have problems with permission)
|
Errors installing RVM I'm trying to install rvm on redhat 5.5 and I'm getting this error: [mc@owl-ci ~]$ bash < <( curl [URL] ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 979 100 979 0 0 8168 0 --:--:-- --:--:-- --:--:-- 318k Cloning into rvm... remote: Counting objects: 18463, done. remote: Compressing objects: 100% (4985/4985), done. remote: Total 18463 (delta 12517), reused 17903 (delta 12002) Receiving objects: 100% (18463/18463), 3.19 MiB, done. Resolving deltas: 100% (12517/12517), done. mkdir: cannot create directory /archives': Permission denied mkdir: cannot create directory /src': Permission denied mkdir: cannot create directory /log': Permission denied mkdir: cannot create directory /gems': Permission denied mkdir: cannot create directory /man': Permission denied mkdir: cannot create directory /rubies': Permission denied mkdir: cannot create directory /config': Permission denied mkdir: cannot create directory /user': Permission denied I've install rvm before on different machines with no problems. I'm confused on why it's trying to create directories under the root path, I thought everything went under ~/.rvm (therefore shouldn't have problems with permission)
|
ruby, linux, rvm, redhat
| 1
| 2,839
| 3
|
https://stackoverflow.com/questions/5412589/errors-installing-rvm
|
4,022,299
|
Any tool for easily parse a config file on Linux?
|
I need a tool that allows me to parse a config file and request some data from it. The format of the config file is free (it can be INI, XML, and so on) but the more human-friendly, the better. Here is a sample config file (using XML, but it could be anything: i don't mind the format): <?xml version="1.0" encoding="UTF-8" ?> <configuration> <name>Some name</name> <description>Some description</description> </configuration> The tool usage should be something like: [ereOn@server ~]$ the_tool config.xml "string(/configuration/name)" Some name [ereOn@server ~]$ the_tool config.xml "string(/configuration/description)" Some description Do you know any Linux tool that can do that ?
|
Any tool for easily parse a config file on Linux? I need a tool that allows me to parse a config file and request some data from it. The format of the config file is free (it can be INI, XML, and so on) but the more human-friendly, the better. Here is a sample config file (using XML, but it could be anything: i don't mind the format): <?xml version="1.0" encoding="UTF-8" ?> <configuration> <name>Some name</name> <description>Some description</description> </configuration> The tool usage should be something like: [ereOn@server ~]$ the_tool config.xml "string(/configuration/name)" Some name [ereOn@server ~]$ the_tool config.xml "string(/configuration/description)" Some description Do you know any Linux tool that can do that ?
|
linux, parsing, configuration-files, redhat
| 1
| 3,403
| 4
|
https://stackoverflow.com/questions/4022299/any-tool-for-easily-parse-a-config-file-on-linux
|
74,193,091
|
Can't run "compgen -c" from perl script
|
I want to check if a command exists on my machine (RedHat) inside a perl script. Im trying to check if compgen -c contains the desired command, but running it from inside a script just gives me an empty output. Other commands work fine. example.pl: my $x = compgen -c; print $x; # empty output my $y = ls -a; print $y; # . # .. # example.pl Are there possible solutions for this? Or is there a better way to check for commands on my machine?
|
Can't run "compgen -c" from perl script I want to check if a command exists on my machine (RedHat) inside a perl script. Im trying to check if compgen -c contains the desired command, but running it from inside a script just gives me an empty output. Other commands work fine. example.pl: my $x = compgen -c; print $x; # empty output my $y = ls -a; print $y; # . # .. # example.pl Are there possible solutions for this? Or is there a better way to check for commands on my machine?
|
bash, perl, command, redhat
| 1
| 178
| 2
|
https://stackoverflow.com/questions/74193091/cant-run-compgen-c-from-perl-script
|
48,633,244
|
Access Angular app running inside Docker container
|
I've created a docker image to test an Angular app but I cannot connect from host to running app inside docker container. The image was created using a Dockerfile with: EXPOSE 4200 8080 80 I run the docker container with command: docker run -ti -p 4200:4200 angulardev /bin/bash Inside container I create the Angular application and start it using: ng serve From container, if I open localhost:4200 I see the application but I cannot access it from host OS (RHEL7) What is wrong? The Angular app starts on port 4200 which is exposed and mapped to host 4200. Thanks.
|
Access Angular app running inside Docker container I've created a docker image to test an Angular app but I cannot connect from host to running app inside docker container. The image was created using a Dockerfile with: EXPOSE 4200 8080 80 I run the docker container with command: docker run -ti -p 4200:4200 angulardev /bin/bash Inside container I create the Angular application and start it using: ng serve From container, if I open localhost:4200 I see the application but I cannot access it from host OS (RHEL7) What is wrong? The Angular app starts on port 4200 which is exposed and mapped to host 4200. Thanks.
|
angular, docker, dockerfile, redhat, redhat-containers
| 1
| 1,922
| 1
|
https://stackoverflow.com/questions/48633244/access-angular-app-running-inside-docker-container
|
42,435,315
|
python ImportError: No module named Tkinter
|
Every time I tried to run import matplotlib , I have error ImportError: No module named Tkinter . The output result is as listed below: Python 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup globals(),locals(),[backend_name],0) File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module> from six.moves import tkinter as Tk File "/usr/lib/python2.7/site-packages/six.py", line 203, in load_module mod = mod._resolve() File "/usr/lib/python2.7/site-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/lib/python2.7/site-packages/six.py", line 82, in _import_module __import__(name) ImportError: No module named Tkinter I tried to install the tk.x86_64 and tk-devel.x86_64 packages, and tried to reinstall the python package but the error still appeared. Also I tried to import Tkinter but I got the following error. Python 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import Tkinter Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Tkinter Does anyone have a workaround for this error?
|
python ImportError: No module named Tkinter Every time I tried to run import matplotlib , I have error ImportError: No module named Tkinter . The output result is as listed below: Python 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup globals(),locals(),[backend_name],0) File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module> from six.moves import tkinter as Tk File "/usr/lib/python2.7/site-packages/six.py", line 203, in load_module mod = mod._resolve() File "/usr/lib/python2.7/site-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/lib/python2.7/site-packages/six.py", line 82, in _import_module __import__(name) ImportError: No module named Tkinter I tried to install the tk.x86_64 and tk-devel.x86_64 packages, and tried to reinstall the python package but the error still appeared. Also I tried to import Tkinter but I got the following error. Python 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import Tkinter Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Tkinter Does anyone have a workaround for this error?
|
python-2.7, matplotlib, tkinter, redhat
| 1
| 11,546
| 5
|
https://stackoverflow.com/questions/42435315/python-importerror-no-module-named-tkinter
|
38,808,776
|
Python pocketsphinx recognition from the microphone
|
I have installed and setup both pocketsphinx and sphinxbase packages in python. I have also taken code of speech recognition for github and changed both data and mode directory as per requirement but still it is unable to stream by voice when I am trying to run it by "python test.py" Here is the code: #!/usr/bin/env python import os import sphinxbase as sb import pocketsphinx as ps MODELDIR = '/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' DATADIR='/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' # Create a decoder with certain model config = ps.Decoder.default_config() config.set_string('-hmm', "/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data/en-US/acoustic-model") config.set_string('-lm', os.path.join(MODELDIR, 'en-US/language-model.lm.bin')) config.set_string('-dict', os.path.join(MODELDIR, 'en-US/pronounciation-dictionary.dict')) decoder = ps.Decoder(config) # Decode streaming data. decoder.start_utt() stream = open(os.path.join(DATADIR, 'en-US/goforward.raw'), 'rb') while True: buf = stream.read(1024) if buf: decoder.process_raw(buf, False, False) else: break decoder.end_utt() stream.close() print('Best hypothesis segments:', [seg.word for seg in decoder.seg()]) Please tell me how to execute it.
|
Python pocketsphinx recognition from the microphone I have installed and setup both pocketsphinx and sphinxbase packages in python. I have also taken code of speech recognition for github and changed both data and mode directory as per requirement but still it is unable to stream by voice when I am trying to run it by "python test.py" Here is the code: #!/usr/bin/env python import os import sphinxbase as sb import pocketsphinx as ps MODELDIR = '/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' DATADIR='/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data' # Create a decoder with certain model config = ps.Decoder.default_config() config.set_string('-hmm', "/usr/lib/python2.7/site-packages/speech_recognition/pocketsphinx-data/en-US/acoustic-model") config.set_string('-lm', os.path.join(MODELDIR, 'en-US/language-model.lm.bin')) config.set_string('-dict', os.path.join(MODELDIR, 'en-US/pronounciation-dictionary.dict')) decoder = ps.Decoder(config) # Decode streaming data. decoder.start_utt() stream = open(os.path.join(DATADIR, 'en-US/goforward.raw'), 'rb') while True: buf = stream.read(1024) if buf: decoder.process_raw(buf, False, False) else: break decoder.end_utt() stream.close() print('Best hypothesis segments:', [seg.word for seg in decoder.seg()]) Please tell me how to execute it.
|
python-2.7, speech-recognition, redhat
| 1
| 14,010
| 1
|
https://stackoverflow.com/questions/38808776/python-pocketsphinx-recognition-from-the-microphone
|
31,490,326
|
why drastic performance degradation when running a command as different user
|
i have a hello world C example ./a.out Now i measured execution time using time for below commands time ./a.out Hello World real 0m0.001s user 0m0.000s sys 0m0.002s time runuser -l root -c './a.out' real 0m0.017s user 0m0.004s sys 0m0.011s time su -s /bin/bash -c "./a.out" root Hello World real 0m0.080s ---> 80 times slower user 0m0.005s sys 0m0.071s Why is the third command 80 times slower than the first command? Environment -- Redhat 7
|
why drastic performance degradation when running a command as different user i have a hello world C example ./a.out Now i measured execution time using time for below commands time ./a.out Hello World real 0m0.001s user 0m0.000s sys 0m0.002s time runuser -l root -c './a.out' real 0m0.017s user 0m0.004s sys 0m0.011s time su -s /bin/bash -c "./a.out" root Hello World real 0m0.080s ---> 80 times slower user 0m0.005s sys 0m0.071s Why is the third command 80 times slower than the first command? Environment -- Redhat 7
|
c, linux, bash, redhat, su
| 1
| 368
| 1
|
https://stackoverflow.com/questions/31490326/why-drastic-performance-degradation-when-running-a-command-as-different-user
|
17,319,561
|
Determine list of non-OS packages installed on a RedHat Linux machine
|
I have been tasked with identifying new (non-operating system) software installed on several Red Hat Enterprise Linux (RHEL) machines. Can anyone suggest an efficient way to do this? The way I was doing it is manually comparing the list of installed software with the list on Red Hat's FTP site for the relevant operating system: ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/ The problems I am encountering with this method is it is tedious / timeconsuming, and just the source packages are listed (e.g. I can't tell if avahi-glib is installed as part of the avahi package). If anyone can suggest a more efficient way to identify the software that doesn't come with the operating system on a RHEL machine, it would be greatly appreciated! Here is what I have come up with so far as a more efficient method (though I still haven't figured out the last part, and there may be more efficient methods). If anyone can help me with the last step of this method, or can share a better method, it would be greatly appreciated! New method (work in progress): Copy the list of packages from Red Hat's FTP site into a text file (OSPackages.txt). To fix the problem of just source RPMs being listed, also copy the list of files from the relevant corresponding version in [URL] into a text file, and merge this data with OSPackages.txt. Do a rpm -qa > list1, yum -y list installed > list2, ls /usr/bin > list3, ls /usr/share > list4, ls /usr/lib > list5. Use cat to merge all the listX files together into InstalledPackages.txt. Use sort to sort out the unique entries, perhaps like: sort -u -k 1 InstalledPackages.txt > SortedInstalledPackages.txt Do a diff between SortedInstalledPackages.txt and OSPackages.txt using a regular expression (-I regexp) to identify the package names (and eliminate the version numbers). I would need to also do a "one way diff", e.g. ignore the extra OS packages in OSPackages.txt that do not appear in the installed packages file. Note: I asked the following question to help me with this part, and believe I am now fairly close to a solution: How do I do a one way diff in Linux? If diff (or another command) can perform the last step, it should produce a list of packages that don't come on the OS. This is the step I am stuck on and would appreciate further help. What command would I use to perform step 6?
|
Determine list of non-OS packages installed on a RedHat Linux machine I have been tasked with identifying new (non-operating system) software installed on several Red Hat Enterprise Linux (RHEL) machines. Can anyone suggest an efficient way to do this? The way I was doing it is manually comparing the list of installed software with the list on Red Hat's FTP site for the relevant operating system: ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/ The problems I am encountering with this method is it is tedious / timeconsuming, and just the source packages are listed (e.g. I can't tell if avahi-glib is installed as part of the avahi package). If anyone can suggest a more efficient way to identify the software that doesn't come with the operating system on a RHEL machine, it would be greatly appreciated! Here is what I have come up with so far as a more efficient method (though I still haven't figured out the last part, and there may be more efficient methods). If anyone can help me with the last step of this method, or can share a better method, it would be greatly appreciated! New method (work in progress): Copy the list of packages from Red Hat's FTP site into a text file (OSPackages.txt). To fix the problem of just source RPMs being listed, also copy the list of files from the relevant corresponding version in [URL] into a text file, and merge this data with OSPackages.txt. Do a rpm -qa > list1, yum -y list installed > list2, ls /usr/bin > list3, ls /usr/share > list4, ls /usr/lib > list5. Use cat to merge all the listX files together into InstalledPackages.txt. Use sort to sort out the unique entries, perhaps like: sort -u -k 1 InstalledPackages.txt > SortedInstalledPackages.txt Do a diff between SortedInstalledPackages.txt and OSPackages.txt using a regular expression (-I regexp) to identify the package names (and eliminate the version numbers). I would need to also do a "one way diff", e.g. ignore the extra OS packages in OSPackages.txt that do not appear in the installed packages file. Note: I asked the following question to help me with this part, and believe I am now fairly close to a solution: How do I do a one way diff in Linux? If diff (or another command) can perform the last step, it should produce a list of packages that don't come on the OS. This is the step I am stuck on and would appreciate further help. What command would I use to perform step 6?
|
linux, package, diff, redhat, package-managers
| 1
| 13,409
| 4
|
https://stackoverflow.com/questions/17319561/determine-list-of-non-os-packages-installed-on-a-redhat-linux-machine
|
16,739,588
|
Is JBoss Fuse available under an open source license?
|
I've been attempting to find a location from which to download Fuse, but all the links in the Red Hat site seem to indicate that the freely downloadable version of the product is available "for development purposes only". Is there a download location that clearly identifies it as an open source version?
|
Is JBoss Fuse available under an open source license? I've been attempting to find a location from which to download Fuse, but all the links in the Red Hat site seem to indicate that the freely downloadable version of the product is available "for development purposes only". Is there a download location that clearly identifies it as an open source version?
|
open-source, licensing, redhat, fuseesb
| 1
| 9,573
| 3
|
https://stackoverflow.com/questions/16739588/is-jboss-fuse-available-under-an-open-source-license
|
14,734,250
|
How to check whether day light savings enabled for the given UTC offset?
|
I need to determine whether day light savings enabled for a given UTC offset in Linux(Redhat). I get input such as UTC+05:30. I checked the usage of zdump command. When used with time zone name, we can check the value of isdst in the output to determine the status of daylight-savings. zdump -v /usr/share/zoneinfo/Asia/Kolkata | grep 2013 As above, zdump requires zone name. It doesn't accept UTC offset. I also tried localtime function as below. time_t currtime; struct tm * timeinfo; timeinfo = localtime ( &currtime ); time_t local = mktime( timeinfo ); cout<<timeinfo->tm_isdst<<endl; The above code works when time zone name is set in date time settings. It doesn't work if system is using UTC time. I used gmtime instead of localtime when UTC time is used. Please let me know if there is any way to determine whether dst is enabled or not using UTC offset.
|
How to check whether day light savings enabled for the given UTC offset? I need to determine whether day light savings enabled for a given UTC offset in Linux(Redhat). I get input such as UTC+05:30. I checked the usage of zdump command. When used with time zone name, we can check the value of isdst in the output to determine the status of daylight-savings. zdump -v /usr/share/zoneinfo/Asia/Kolkata | grep 2013 As above, zdump requires zone name. It doesn't accept UTC offset. I also tried localtime function as below. time_t currtime; struct tm * timeinfo; timeinfo = localtime ( &currtime ); time_t local = mktime( timeinfo ); cout<<timeinfo->tm_isdst<<endl; The above code works when time zone name is set in date time settings. It doesn't work if system is using UTC time. I used gmtime instead of localtime when UTC time is used. Please let me know if there is any way to determine whether dst is enabled or not using UTC offset.
|
c++, c, linux, redhat
| 1
| 1,041
| 2
|
https://stackoverflow.com/questions/14734250/how-to-check-whether-day-light-savings-enabled-for-the-given-utc-offset
|
7,577,620
|
Linux start-up script for java application
|
I have Jar file to run in Linux using this command: java -jar SyslogAgent_01.jar 192.168.2.154 1998 D:/apachelog.log ApacheLog 13 Can anyone let me know how to create script and implement this process automatically while we restart our computer? In windows we use services but how about linux? Can u provide to me the script and step to do that since i am really new in Linux... Linux : RHat, Ubuntu Thanks
|
Linux start-up script for java application I have Jar file to run in Linux using this command: java -jar SyslogAgent_01.jar 192.168.2.154 1998 D:/apachelog.log ApacheLog 13 Can anyone let me know how to create script and implement this process automatically while we restart our computer? In windows we use services but how about linux? Can u provide to me the script and step to do that since i am really new in Linux... Linux : RHat, Ubuntu Thanks
|
java, linux, ubuntu, startup, redhat
| 1
| 33,467
| 6
|
https://stackoverflow.com/questions/7577620/linux-start-up-script-for-java-application
|
3,845,567
|
Sorting content based on first field and outputting second field into new file
|
I've got a file which is like this: 3 EOE 5 APPLE 6 NOBODY i need to parse this and output all with '3' in the first column into filename.3, '4' into filename.4, etc... from the unix prompt
|
Sorting content based on first field and outputting second field into new file I've got a file which is like this: 3 EOE 5 APPLE 6 NOBODY i need to parse this and output all with '3' in the first column into filename.3, '4' into filename.4, etc... from the unix prompt
|
linux, bash, shell, redhat
| 1
| 189
| 3
|
https://stackoverflow.com/questions/3845567/sorting-content-based-on-first-field-and-outputting-second-field-into-new-file
|
36,349,709
|
How to install CLISP in Redhat Linux
|
I was searching, how to install CLISP ( [URL] ) in RedHat Linux. In the CLISP web site Fedora installation link is broken. yum install clisp doesn't work even though sudo apt-get install clisp in Ubuntu. Anyone there, installed CLISP in RedHat Linux?
|
How to install CLISP in Redhat Linux I was searching, how to install CLISP ( [URL] ) in RedHat Linux. In the CLISP web site Fedora installation link is broken. yum install clisp doesn't work even though sudo apt-get install clisp in Ubuntu. Anyone there, installed CLISP in RedHat Linux?
|
linux, lisp, common-lisp, redhat, clisp
| 1
| 2,768
| 3
|
https://stackoverflow.com/questions/36349709/how-to-install-clisp-in-redhat-linux
|
30,506,060
|
Redhat No package make available
|
I am using redhat and I need to install make. But yum don't find the make package : # yum install make --verbose Config time: 0.059 Yum Version: 3.2.22 Setting up Package Sacks pkgsack time: 0.084 rpmdb time: 0.000 Setting up Install Process Checking for virtual provide or file-provide for make Searching pkgSack for dep: make No package make available. Nothing to do I tried to install group Development Tools too : # yum groupinstall 'Development Tools' Setting up Group Process Failed to add groups file for repository: epel - comps file is empty/damaged Warning: Group Development Tools does not exist. No packages in any requested group available to install or update My repolist are the following : # yum repolist epel | 3.7 kB 00:00 rhel-source | 2.6 kB 00:00 rpmforge | 1.9 kB 00:00 repo id repo name status epel Extra Packages for Enterprise Linux 5 - x86_64 6,733 rhel-source Red Hat Enterprise Linux 5Server - Source 0 rpmforge RHEL 5Server - RPMforge.net - dag 11,403 repolist: 18,136
|
Redhat No package make available I am using redhat and I need to install make. But yum don't find the make package : # yum install make --verbose Config time: 0.059 Yum Version: 3.2.22 Setting up Package Sacks pkgsack time: 0.084 rpmdb time: 0.000 Setting up Install Process Checking for virtual provide or file-provide for make Searching pkgSack for dep: make No package make available. Nothing to do I tried to install group Development Tools too : # yum groupinstall 'Development Tools' Setting up Group Process Failed to add groups file for repository: epel - comps file is empty/damaged Warning: Group Development Tools does not exist. No packages in any requested group available to install or update My repolist are the following : # yum repolist epel | 3.7 kB 00:00 rhel-source | 2.6 kB 00:00 rpmforge | 1.9 kB 00:00 repo id repo name status epel Extra Packages for Enterprise Linux 5 - x86_64 6,733 rhel-source Red Hat Enterprise Linux 5Server - Source 0 rpmforge RHEL 5Server - RPMforge.net - dag 11,403 repolist: 18,136
|
linux, redhat
| 1
| 4,968
| 1
|
https://stackoverflow.com/questions/30506060/redhat-no-package-make-available
|
581,799
|
How painful can a Linux to OpenSolaris migration be?
|
We have a business application that basically runs on an os-independent stack (tomcat+java+mysql) but we have always run it redhat or centos. There is a customer that is insisting to run it on opensolaris for his own reasons (an expensive everything-is-included support agreement with Sun). How painful can such a migration be? We have a lot of configuration file and support scripts such as: apache apache/tomcat connector email interaction with postfix customized service start/stop a couple of cron jobs (backup, monitoring) different users and permissions (java, mysql, email, backup...) Our build process outputs a .tar.gz file with our business code + some shell scripts that edit all the os-configuration files. Any previous experience on this.
|
How painful can a Linux to OpenSolaris migration be? We have a business application that basically runs on an os-independent stack (tomcat+java+mysql) but we have always run it redhat or centos. There is a customer that is insisting to run it on opensolaris for his own reasons (an expensive everything-is-included support agreement with Sun). How painful can such a migration be? We have a lot of configuration file and support scripts such as: apache apache/tomcat connector email interaction with postfix customized service start/stop a couple of cron jobs (backup, monitoring) different users and permissions (java, mysql, email, backup...) Our build process outputs a .tar.gz file with our business code + some shell scripts that edit all the os-configuration files. Any previous experience on this.
|
linux, migration, centos, redhat, opensolaris
| 1
| 1,283
| 5
|
https://stackoverflow.com/questions/581799/how-painful-can-a-linux-to-opensolaris-migration-be
|
73,656,195
|
MariaDB upgrade on Red Hat blocked on the installing v10.9.2 due to missing package pv
|
The MariaDB upgrade of MariaDB seem to follow the same behaviour pattern of removing the old version, keeping the data, then installing the new version, such as Upgrading from MariaDB 10.3 to MariaDB 10.4 , and the other version to version procedures are the same. When upgrading from v10.3 to v10.9 on an RHEL 7 host, the process errored when installing the new version, saying, Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv . I am new to the upgrade process, so I will highly appreciate any hints or suggestions. Full screenshot: [root@hostname lib]# yum install MariaDB-server MariaDB-client MariaDB-backup MariaDB-shared Loaded plugins: product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ---> Package MariaDB-backup.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: libpmem.so.1(LIBPMEM_1.0)(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: MariaDB-common for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: libpmem.so.1()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: libpcre2-8.so.0()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 ---> Package MariaDB-client.x86_64 0:10.9.2-1.el7.centos will be installed ---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: galera-4 for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 ---> Package MariaDB-shared.x86_64 0:10.9.2-1.el7.centos will be installed --> Running transaction check ---> Package MariaDB-common.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.9.2-1.el7.centos.x86_64 ---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 ---> Package galera-4.x86_64 0:26.4.12-1.el7.centos will be installed --> Processing Dependency: socat for package: galera-4-26.4.12-1.el7.centos.x86_64 ---> Package libpmem.x86_64 0:1.5.1-2.1.el7 will be installed ---> Package pcre2.x86_64 0:10.23-2.el7 will be installed --> Running transaction check ---> Package MariaDB-compat.x86_64 0:10.9.2-1.el7.centos will be installed ---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 ---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed --> Finished Dependency Resolution Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv ********************************************************************** yum can be configured to try to resolve such errors by temporarily enabling disabled repos and searching for missing dependencies. To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf ********************************************************************** Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@hostname lib]#
|
MariaDB upgrade on Red Hat blocked on the installing v10.9.2 due to missing package pv The MariaDB upgrade of MariaDB seem to follow the same behaviour pattern of removing the old version, keeping the data, then installing the new version, such as Upgrading from MariaDB 10.3 to MariaDB 10.4 , and the other version to version procedures are the same. When upgrading from v10.3 to v10.9 on an RHEL 7 host, the process errored when installing the new version, saying, Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv . I am new to the upgrade process, so I will highly appreciate any hints or suggestions. Full screenshot: [root@hostname lib]# yum install MariaDB-server MariaDB-client MariaDB-backup MariaDB-shared Loaded plugins: product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ---> Package MariaDB-backup.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: libpmem.so.1(LIBPMEM_1.0)(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: MariaDB-common for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: libpmem.so.1()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: libpcre2-8.so.0()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64 ---> Package MariaDB-client.x86_64 0:10.9.2-1.el7.centos will be installed ---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: galera-4 for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 --> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 ---> Package MariaDB-shared.x86_64 0:10.9.2-1.el7.centos will be installed --> Running transaction check ---> Package MariaDB-common.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.9.2-1.el7.centos.x86_64 ---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 ---> Package galera-4.x86_64 0:26.4.12-1.el7.centos will be installed --> Processing Dependency: socat for package: galera-4-26.4.12-1.el7.centos.x86_64 ---> Package libpmem.x86_64 0:1.5.1-2.1.el7 will be installed ---> Package pcre2.x86_64 0:10.23-2.el7 will be installed --> Running transaction check ---> Package MariaDB-compat.x86_64 0:10.9.2-1.el7.centos will be installed ---> Package MariaDB-server.x86_64 0:10.9.2-1.el7.centos will be installed --> Processing Dependency: pv for package: MariaDB-server-10.9.2-1.el7.centos.x86_64 ---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed --> Finished Dependency Resolution Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv ********************************************************************** yum can be configured to try to resolve such errors by temporarily enabling disabled repos and searching for missing dependencies. To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf ********************************************************************** Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@hostname lib]#
|
mariadb, redhat
| 1
| 5,680
| 3
|
https://stackoverflow.com/questions/73656195/mariadb-upgrade-on-red-hat-blocked-on-the-installing-v10-9-2-due-to-missing-pack
|
65,116,518
|
Package installation command for redhat ubi-openjdk
|
we were using the below image and command in our code to create image for our spring micro services and everything was working good. FROM openjdk:8-jdk-alpine ARG IMAGE_EXPIRATION LABEL quay.expires-after=$IMAGE_EXPIRATION` RUN apk update && apk add bash curl dos2unix perl RUN apk add krb5-dev krb5 krb5-pkinit RUN apk add lsof Due to docker limit pull, we are getting into an issue to alpine image. when i asked my company to pull the above image and put in our quay repo. They informed me to use redhat openjdk. I changed the code to below and now getting different errors. FROM somehostname.com/redhat/ubi8-openjdk1.8 ARG IMAGE_EXPIRATION LABEL quay.expires-after=$IMAGE_EXPIRATION RUN yum update && yum install bash curl dos2unix perl RUN yum install krb5-dev krb5 krb5-pkinit RUN yum install lsof I used yum but it says "yum not found" and when i used apt-get, received not found. please let me know what is the command i need to use to install those packages. Thanks in advance.
|
Package installation command for redhat ubi-openjdk we were using the below image and command in our code to create image for our spring micro services and everything was working good. FROM openjdk:8-jdk-alpine ARG IMAGE_EXPIRATION LABEL quay.expires-after=$IMAGE_EXPIRATION` RUN apk update && apk add bash curl dos2unix perl RUN apk add krb5-dev krb5 krb5-pkinit RUN apk add lsof Due to docker limit pull, we are getting into an issue to alpine image. when i asked my company to pull the above image and put in our quay repo. They informed me to use redhat openjdk. I changed the code to below and now getting different errors. FROM somehostname.com/redhat/ubi8-openjdk1.8 ARG IMAGE_EXPIRATION LABEL quay.expires-after=$IMAGE_EXPIRATION RUN yum update && yum install bash curl dos2unix perl RUN yum install krb5-dev krb5 krb5-pkinit RUN yum install lsof I used yum but it says "yum not found" and when i used apt-get, received not found. please let me know what is the command i need to use to install those packages. Thanks in advance.
|
java, docker, redhat
| 1
| 3,334
| 1
|
https://stackoverflow.com/questions/65116518/package-installation-command-for-redhat-ubi-openjdk
|
64,662,941
|
Question about bundling CentOS RPMs for Perl modules
|
I am trying to bundle a bunch of Perl modules in RPM packages for easy deployments. I've tried a lot of tools but settled on fpm ( [URL] ). So I've managed to manually build and install each RPM for each of the required Perl modules. I'm not sure this is correct. But I don't have a lot of experience with RPM packages. But as far as I can tell, this is the correct behavior. Each RPM package contains all required dependencies for the corresponding Perl module. The problem is I get some conflicts when I try to use the resulting bundle to install my modules. sudo yum --disablerepo=* localinstall *.rpm And when it tries to install: Transaction Summary ============================================================================================================================================================================================================== Install 174 Packages Total size: 45 M Installed size: 357 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Error: Transaction test error: file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Exporter-2.2013-1.x86_64 and Moose-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Role-2.2013-1.x86_64 and Moose-Exporter-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Util-TypeConstraints-2.2013-1.x86_64 and Moose-Role-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Util-2.2013-1.x86_64 and Moose-Util-TypeConstraints-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-TypeConstraint-2.2013-1.x86_64 and Moose-Util-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-TypeConstraint-Union-2.2013-1.x86_64 and Moose-Meta-TypeConstraint-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Util-MetaRole-2.2013-1.x86_64 and Moose-Meta-TypeConstraint-Union-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Attribute-2.2013-1.x86_64 and Moose-Util-MetaRole-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Class-2.2013-1.x86_64 and Moose-Meta-Attribute-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Role-2.2013-1.x86_64 and Moose-Meta-Class-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Role-Attribute-2.2013-1.x86_64 and Moose-Meta-Role-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/HTML/Parser/Parser.so conflicts between attempted installs of HTML-HeadParser-3.75-1.x86_64 and HTML-Entities-3.75-1.x86_64 I've spent days trying to debug the issue but I can't seem to figure it out. All I did was install perl using yum since that was a prerequisite. I expected my local install would work.
|
Question about bundling CentOS RPMs for Perl modules I am trying to bundle a bunch of Perl modules in RPM packages for easy deployments. I've tried a lot of tools but settled on fpm ( [URL] ). So I've managed to manually build and install each RPM for each of the required Perl modules. I'm not sure this is correct. But I don't have a lot of experience with RPM packages. But as far as I can tell, this is the correct behavior. Each RPM package contains all required dependencies for the corresponding Perl module. The problem is I get some conflicts when I try to use the resulting bundle to install my modules. sudo yum --disablerepo=* localinstall *.rpm And when it tries to install: Transaction Summary ============================================================================================================================================================================================================== Install 174 Packages Total size: 45 M Installed size: 357 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Error: Transaction test error: file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Exporter-2.2013-1.x86_64 and Moose-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Role-2.2013-1.x86_64 and Moose-Exporter-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Util-TypeConstraints-2.2013-1.x86_64 and Moose-Role-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Util-2.2013-1.x86_64 and Moose-Util-TypeConstraints-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-TypeConstraint-2.2013-1.x86_64 and Moose-Util-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-TypeConstraint-Union-2.2013-1.x86_64 and Moose-Meta-TypeConstraint-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Util-MetaRole-2.2013-1.x86_64 and Moose-Meta-TypeConstraint-Union-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Attribute-2.2013-1.x86_64 and Moose-Util-MetaRole-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Class-2.2013-1.x86_64 and Moose-Meta-Attribute-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Role-2.2013-1.x86_64 and Moose-Meta-Class-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/Moose/Moose.so conflicts between attempted installs of Moose-Meta-Role-Attribute-2.2013-1.x86_64 and Moose-Meta-Role-2.2013-1.x86_64 file /usr/local/lib64/perl5/auto/HTML/Parser/Parser.so conflicts between attempted installs of HTML-HeadParser-3.75-1.x86_64 and HTML-Entities-3.75-1.x86_64 I've spent days trying to debug the issue but I can't seem to figure it out. All I did was install perl using yum since that was a prerequisite. I expected my local install would work.
|
linux, perl, redhat, rpm
| 1
| 348
| 1
|
https://stackoverflow.com/questions/64662941/question-about-bundling-centos-rpms-for-perl-modules
|
41,460,849
|
Install Sonatype Nexus 2 as a service
|
I'd like to know how to install Sonatype Nexus 2 as a service on GNU/Linux in order to get it configured properly and started automatically at startup.
|
Install Sonatype Nexus 2 as a service I'd like to know how to install Sonatype Nexus 2 as a service on GNU/Linux in order to get it configured properly and started automatically at startup.
|
linux, centos, debian, redhat, nexus
| 1
| 3,594
| 2
|
https://stackoverflow.com/questions/41460849/install-sonatype-nexus-2-as-a-service
|
30,860,806
|
Deleting a directory starting with a specific string in shell script
|
When I'm trying to delete all directories starting with tmp, I used this command: find -type d -name tmp* -exec rmdir {} \; And it does the trick, but this command is exiting with an error code: find: ./tmp09098': No such file or directory What causing failing my build. Can anyone tell me how I can delete those folders without getting the error? After trying what @anubhava suggested and quoted 'temp*', find -type d -name 'tmp*' -exec rmdir {} \; I still get the same error: find: ./tmp0909565g': No such file or directory find: `./tmp09095': No such file or directory When running: find -type d -name 'tmp*' -exec ls -ld '{}' \; This is the result: drwxr-xr-x 2 root root 4096 Jun 16 10:08 ./tmp0909565g drwxr-xr-x 2 root root 4096 Jun 16 10:07 ./tmp09095 drwxr-xr-x 2 root root 4096 Jun 16 10:08 ./tmp09094544656
|
Deleting a directory starting with a specific string in shell script When I'm trying to delete all directories starting with tmp, I used this command: find -type d -name tmp* -exec rmdir {} \; And it does the trick, but this command is exiting with an error code: find: ./tmp09098': No such file or directory What causing failing my build. Can anyone tell me how I can delete those folders without getting the error? After trying what @anubhava suggested and quoted 'temp*', find -type d -name 'tmp*' -exec rmdir {} \; I still get the same error: find: ./tmp0909565g': No such file or directory find: `./tmp09095': No such file or directory When running: find -type d -name 'tmp*' -exec ls -ld '{}' \; This is the result: drwxr-xr-x 2 root root 4096 Jun 16 10:08 ./tmp0909565g drwxr-xr-x 2 root root 4096 Jun 16 10:07 ./tmp09095 drwxr-xr-x 2 root root 4096 Jun 16 10:08 ./tmp09094544656
|
linux, bash, unix, ubuntu, redhat
| 1
| 1,217
| 2
|
https://stackoverflow.com/questions/30860806/deleting-a-directory-starting-with-a-specific-string-in-shell-script
|
16,730,715
|
Perl cannot locate module in @INC
|
I am running Centos 6.4 and perl 5.10. I have short script which uses the DateTime module. However when I run my script I get the following error message telling me various modules cannot be located as they are not in the library path. Can't locate Params/Validate.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/perl5/DateTime/Duration.pm line 11. BEGIN failed--compilation aborted at /usr/lib64/perl5/DateTime/Duration.pm line 11. Compilation failed in require at /usr/lib64/perl5/DateTime.pm line 45. BEGIN failed--compilation aborted at /usr/lib64/perl5/DateTime.pm line 45. Compilation failed in require at ./jr_fix_western_filestore.perl line 39. BEGIN failed--compilation aborted at ./jr_fix_western_filestore.perl line 39. All of these packages have been installed via yum. eg yum install perl-Params-Validate.x86_64 and yum install perl-DateTime.x86_64 . Should the yum install not place these modules in @INC? I have also tried to install the packages via cpan but this seems to want to download lots of dependencies first and inevitably fails. CPAN.pm: Going to build D/DR/DROLSKY/DateTime-1.03.tar.gz Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Build.PL line 5. BEGIN failed--compilation aborted at Build.PL line 5. Warning: No success on command[/usr/bin/perl Build.PL --installdirs site] Warning (usually harmless): 'YAML' not installed, will not store persistent state DROLSKY/DateTime-1.03.tar.gz /usr/bin/perl Build.PL --installdirs site -- NOT OK Running Build test Make had some problems, won't test Running Build install Make had some problems, won't install Could not read '/root/.cpan/build/DateTime-1.03-Brpqo5/META.yml'. Falling back to other methods to determine prerequisites Warning: CPAN.pm discovered Module::Build as undeclared prerequisite. Adding it now as such. When I try to install Module::Build in cpan, I get the following error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: OVID/Test-Harness-3.28.tar.gz : make_test NO MSCHWERN/Test-Simple-0.98.tar.gz : make_test NO JPEACOCK/version-0.9902.tar.gz : make_test NO BOBTFISH/Module-Metadata-1.000014.tar.gz : make_test NO DAGOLDEN/CPAN-Meta-YAML-0.008.tar.gz : make_test NO MAKAMAKA/JSON-PP-2.27202.tar.gz : make_test NO DAGOLDEN/Parse-CPAN-Meta-1.4404.tar.gz : make_test NO DAGOLDEN/CPAN-Meta-Requirements-2.122.tar.gz : make_test NO DAGOLDEN/CPAN-Meta-2.130880.tar.gz : make_test NO DAGOLDEN/Perl-OSType-1.003.tar.gz : make_test NO JESSE/Locale-Maketext-Simple-0.21.tar.gz : make_test NO BINGOS/Params-Check-0.36.tar.gz : make_test NO BINGOS/Module-Load-0.24.tar.gz : make_test NO BINGOS/Module-CoreList-2.91.tar.gz : make_test NO BINGOS/Module-Load-Conditional-0.54.tar.gz : make_test NO BINGOS/IPC-Cmd-0.80.tar.gz : make_test NO DAGOLDEN/ExtUtils-CBuilder-0.280205.tar.gz : make_test NO LEONT/Module-Build-0.4005.tar.gz : make NO Any pointers? rpm -ql perl-Params-Validate returns /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Attribute /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Attribute/Params /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Attribute/Params/Validate.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params/Validate.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params/ValidatePP.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params/ValidateXS.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params/Validate /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params/Validate/Validate.bs /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params/Validate/Validate.so /usr/share/doc/perl-Params-Validate-0.95 /usr/share/doc/perl-Params-Validate-0.95/Changes /usr/share/doc/perl-Params-Validate-0.95/LICENSE /usr/share/doc/perl-Params-Validate-0.95/MANIFEST /usr/share/doc/perl-Params-Validate-0.95/META.yml /usr/share/doc/perl-Params-Validate-0.95/README /usr/share/doc/perl-Params-Validate-0.95/TODO /usr/share/man/man3/Attribute::Params::Validate.3pm.gz /usr/share/man/man3/Params::Validate.3pm.gz /usr/share/man/man3/Params::ValidatePP.3pm.gz /usr/share/man/man3/Params::ValidateXS.3pm.gz I'm not sure if these paths are searched by @INC However locate Validate.pm returns nothing
|
Perl cannot locate module in @INC I am running Centos 6.4 and perl 5.10. I have short script which uses the DateTime module. However when I run my script I get the following error message telling me various modules cannot be located as they are not in the library path. Can't locate Params/Validate.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/perl5/DateTime/Duration.pm line 11. BEGIN failed--compilation aborted at /usr/lib64/perl5/DateTime/Duration.pm line 11. Compilation failed in require at /usr/lib64/perl5/DateTime.pm line 45. BEGIN failed--compilation aborted at /usr/lib64/perl5/DateTime.pm line 45. Compilation failed in require at ./jr_fix_western_filestore.perl line 39. BEGIN failed--compilation aborted at ./jr_fix_western_filestore.perl line 39. All of these packages have been installed via yum. eg yum install perl-Params-Validate.x86_64 and yum install perl-DateTime.x86_64 . Should the yum install not place these modules in @INC? I have also tried to install the packages via cpan but this seems to want to download lots of dependencies first and inevitably fails. CPAN.pm: Going to build D/DR/DROLSKY/DateTime-1.03.tar.gz Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Build.PL line 5. BEGIN failed--compilation aborted at Build.PL line 5. Warning: No success on command[/usr/bin/perl Build.PL --installdirs site] Warning (usually harmless): 'YAML' not installed, will not store persistent state DROLSKY/DateTime-1.03.tar.gz /usr/bin/perl Build.PL --installdirs site -- NOT OK Running Build test Make had some problems, won't test Running Build install Make had some problems, won't install Could not read '/root/.cpan/build/DateTime-1.03-Brpqo5/META.yml'. Falling back to other methods to determine prerequisites Warning: CPAN.pm discovered Module::Build as undeclared prerequisite. Adding it now as such. When I try to install Module::Build in cpan, I get the following error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: OVID/Test-Harness-3.28.tar.gz : make_test NO MSCHWERN/Test-Simple-0.98.tar.gz : make_test NO JPEACOCK/version-0.9902.tar.gz : make_test NO BOBTFISH/Module-Metadata-1.000014.tar.gz : make_test NO DAGOLDEN/CPAN-Meta-YAML-0.008.tar.gz : make_test NO MAKAMAKA/JSON-PP-2.27202.tar.gz : make_test NO DAGOLDEN/Parse-CPAN-Meta-1.4404.tar.gz : make_test NO DAGOLDEN/CPAN-Meta-Requirements-2.122.tar.gz : make_test NO DAGOLDEN/CPAN-Meta-2.130880.tar.gz : make_test NO DAGOLDEN/Perl-OSType-1.003.tar.gz : make_test NO JESSE/Locale-Maketext-Simple-0.21.tar.gz : make_test NO BINGOS/Params-Check-0.36.tar.gz : make_test NO BINGOS/Module-Load-0.24.tar.gz : make_test NO BINGOS/Module-CoreList-2.91.tar.gz : make_test NO BINGOS/Module-Load-Conditional-0.54.tar.gz : make_test NO BINGOS/IPC-Cmd-0.80.tar.gz : make_test NO DAGOLDEN/ExtUtils-CBuilder-0.280205.tar.gz : make_test NO LEONT/Module-Build-0.4005.tar.gz : make NO Any pointers? rpm -ql perl-Params-Validate returns /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Attribute /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Attribute/Params /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Attribute/Params/Validate.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params/Validate.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params/ValidatePP.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Params/ValidateXS.pm /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params/Validate /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params/Validate/Validate.bs /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Params/Validate/Validate.so /usr/share/doc/perl-Params-Validate-0.95 /usr/share/doc/perl-Params-Validate-0.95/Changes /usr/share/doc/perl-Params-Validate-0.95/LICENSE /usr/share/doc/perl-Params-Validate-0.95/MANIFEST /usr/share/doc/perl-Params-Validate-0.95/META.yml /usr/share/doc/perl-Params-Validate-0.95/README /usr/share/doc/perl-Params-Validate-0.95/TODO /usr/share/man/man3/Attribute::Params::Validate.3pm.gz /usr/share/man/man3/Params::Validate.3pm.gz /usr/share/man/man3/Params::ValidatePP.3pm.gz /usr/share/man/man3/Params::ValidateXS.3pm.gz I'm not sure if these paths are searched by @INC However locate Validate.pm returns nothing
|
linux, perl, redhat
| 1
| 42,839
| 3
|
https://stackoverflow.com/questions/16730715/perl-cannot-locate-module-in-inc
|
16,069,583
|
Create Directories from an array in a for loop
|
I have an array of customer names that I want to use to make a directory. Below is the code I'm running: $ echo "$customerArray=( customer1 customer2 customer3 customer4 customer5 )" for customerName in $( customerArray ); do mkdir -p /home/$customerName mkdir -p /home/$customerName/outbound mkdir -p /home/$customerName/outbound_backup mkdir -p /home/$customerName/dropoff done Can anyone explain to me what I'm doing wrong?
|
Create Directories from an array in a for loop I have an array of customer names that I want to use to make a directory. Below is the code I'm running: $ echo "$customerArray=( customer1 customer2 customer3 customer4 customer5 )" for customerName in $( customerArray ); do mkdir -p /home/$customerName mkdir -p /home/$customerName/outbound mkdir -p /home/$customerName/outbound_backup mkdir -p /home/$customerName/dropoff done Can anyone explain to me what I'm doing wrong?
|
linux, arrays, bash, scripting, redhat
| 1
| 4,883
| 2
|
https://stackoverflow.com/questions/16069583/create-directories-from-an-array-in-a-for-loop
|
1,095,103
|
Is it OK to use Ruby 1.8.5?
|
I'm setting up a new RedHat Enterprise Linux 5 system to host Ruby apps running under Apache with Phusion Passenger. I've updated all the local packages on the system. Here is what RedHat is giving me for Ruby: $ ruby -v ruby 1.8.5 (2006-08-25) [i386-linux] That's pretty old. Is it better to use what RedHat provides or install a newer version? If newer version, which one? I've always gone with the latest in the 1.8.x series. Any reason to do differently? UPDATE After pondering and drawing a chart of the pros and cons, I decided to give Ruby Enterprise Edition a try. If that turns out to be problematic, I'll probably switch to 1.8.7.
|
Is it OK to use Ruby 1.8.5? I'm setting up a new RedHat Enterprise Linux 5 system to host Ruby apps running under Apache with Phusion Passenger. I've updated all the local packages on the system. Here is what RedHat is giving me for Ruby: $ ruby -v ruby 1.8.5 (2006-08-25) [i386-linux] That's pretty old. Is it better to use what RedHat provides or install a newer version? If newer version, which one? I've always gone with the latest in the 1.8.x series. Any reason to do differently? UPDATE After pondering and drawing a chart of the pros and cons, I decided to give Ruby Enterprise Edition a try. If that turns out to be problematic, I'll probably switch to 1.8.7.
|
ruby-on-rails, ruby, redhat, rhel
| 1
| 1,232
| 6
|
https://stackoverflow.com/questions/1095103/is-it-ok-to-use-ruby-1-8-5
|
62,307,837
|
Installed Perl Modules will wiped out if VM Hardware Upgrade happens
|
My VM version is: Red Hat Enterprise Linux 6 and Perl version is This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi . Since I had to execute some Perl scripts which uses modules such as Time::Piece , Time::Seconds my VM constantly throwing an error message the modules haven't been installed. Error Message is: $ perl -MTime::Piece -e 1 Can't locate Time/Piece.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .). So as mentioned in the Doc I executed the command sudo yum install perl-core which resolved my issue of module dependency in the VM. Now my question is, if suppose virtual machine upgrade to the latest hardware version (for example, RHEL 6 to RHEL 7 ) will the module been installed using perl-core will be wiped out. This question is more related to VM, so including Linux tag too.
|
Installed Perl Modules will wiped out if VM Hardware Upgrade happens My VM version is: Red Hat Enterprise Linux 6 and Perl version is This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi . Since I had to execute some Perl scripts which uses modules such as Time::Piece , Time::Seconds my VM constantly throwing an error message the modules haven't been installed. Error Message is: $ perl -MTime::Piece -e 1 Can't locate Time/Piece.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .). So as mentioned in the Doc I executed the command sudo yum install perl-core which resolved my issue of module dependency in the VM. Now my question is, if suppose virtual machine upgrade to the latest hardware version (for example, RHEL 6 to RHEL 7 ) will the module been installed using perl-core will be wiped out. This question is more related to VM, so including Linux tag too.
|
perl, redhat
| 1
| 138
| 1
|
https://stackoverflow.com/questions/62307837/installed-perl-modules-will-wiped-out-if-vm-hardware-upgrade-happens
|
56,786,341
|
Missing include gives no compile error on RedHat 6
|
This snippet can not be compiled, since std::accumulate is found in the header numeric , which is not included. #include <algorithm> #include <vector> int main () { std::vector<int> vec{ 1, 2, 3, 4 }; return std::accumulate(vec.begin(), vec.end(),0); } The compiler explorer gives me the correct error message <source>(6): error: namespace "std" has no member "accumulate" return std::accumulate(vec.begin(), vec.end(),0); I am using RedHat 6 and the intel compiler version 18.0.3. If I compile it with this setting, I get no error and the result is fine. No warning is shown, even if -Wall is used. My question is, why don't I get an appropriate error message?
|
Missing include gives no compile error on RedHat 6 This snippet can not be compiled, since std::accumulate is found in the header numeric , which is not included. #include <algorithm> #include <vector> int main () { std::vector<int> vec{ 1, 2, 3, 4 }; return std::accumulate(vec.begin(), vec.end(),0); } The compiler explorer gives me the correct error message <source>(6): error: namespace "std" has no member "accumulate" return std::accumulate(vec.begin(), vec.end(),0); I am using RedHat 6 and the intel compiler version 18.0.3. If I compile it with this setting, I get no error and the result is fine. No warning is shown, even if -Wall is used. My question is, why don't I get an appropriate error message?
|
c++, compiler-errors, redhat, numeric
| 1
| 172
| 1
|
https://stackoverflow.com/questions/56786341/missing-include-gives-no-compile-error-on-redhat-6
|
56,636,516
|
Formatter not working in VSCode on lineSplit
|
My settings for VSCode are as follows - { "editor.defaultFormatter": "redhat.java", "java.signatureHelp.enabled": true, "java.format.settings.url": "/Users/xxx/Desktop/Formatter/SilverstoneJava1.5.xml", "java.trace.server": "verbose", "editor.rulers": [ 80 ], "editor.wordWrap": "on" } And my xml file is as follows - <?xml version="1.0" encoding="UTF-8" standalone="no"?> <profiles version="12"> <profile kind="CodeFormatterProfile" name="SilverstoneJava1.5" version="12"> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="16"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value="true"/> <setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/> <setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_lambda_body" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_type_parameters" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> <setting id="org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column" value="true"/> <setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_conditional_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines" value="2147483647"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="80"/> <setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.compiler.source" value="1.8"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_assignment_operator" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.8"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_type_arguments" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.compliance" value="1.8"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> </profile> </profiles> As you can see my lineSplit value is set to 80. But whenever I try to format the code, it splits my line at 120. There is no other formatter in place and there is no other property that sets the lineSplit to 120. I tried searching all VSCode properties but I could not find anything set to 120. Also, other properties of this xml file are working , for example , line splits on comments happen on 80 as mentioned in the xml file. I am using the RedHat extension for Java for VSCode.
|
Formatter not working in VSCode on lineSplit My settings for VSCode are as follows - { "editor.defaultFormatter": "redhat.java", "java.signatureHelp.enabled": true, "java.format.settings.url": "/Users/xxx/Desktop/Formatter/SilverstoneJava1.5.xml", "java.trace.server": "verbose", "editor.rulers": [ 80 ], "editor.wordWrap": "on" } And my xml file is as follows - <?xml version="1.0" encoding="UTF-8" standalone="no"?> <profiles version="12"> <profile kind="CodeFormatterProfile" name="SilverstoneJava1.5" version="12"> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="16"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value="true"/> <setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/> <setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_lambda_body" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_type_parameters" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> <setting id="org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column" value="true"/> <setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_conditional_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines" value="2147483647"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="80"/> <setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.compiler.source" value="1.8"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_assignment_operator" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.8"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration" value="common_lines"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_type_arguments" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.compliance" value="1.8"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> </profile> </profiles> As you can see my lineSplit value is set to 80. But whenever I try to format the code, it splits my line at 120. There is no other formatter in place and there is no other property that sets the lineSplit to 120. I tried searching all VSCode properties but I could not find anything set to 120. Also, other properties of this xml file are working , for example , line splits on comments happen on 80 as mentioned in the xml file. I am using the RedHat extension for Java for VSCode.
|
format, redhat, visual-studio-code
| 1
| 2,713
| 2
|
https://stackoverflow.com/questions/56636516/formatter-not-working-in-vscode-on-linesplit
|
56,001,382
|
Docker Redis start with persistent storage using -v gives error (chown: changing ownership of '.': Permission denied)
|
I'm using following system version/spec for the docker-redis setup using default redis.conf . Redhat version: 7.6 (Red Hat Enterprise Linux Server) Redis Version: 5.0.4 Docker Version: 1.13.1, build b2f74b2/1.13.1 When I run following command it's working perfectly fine. sudo docker run -d -v $PWD/redis.conf:/usr/local/etc/redis/redis.conf --name redis-persistance --net tyk -p 7070:6379 redis redis-server /usr/local/etc/redis/redis.conf --appendonly yes I need to get redis data (which is in /data inside the container) to the host directory (/usr/local/etc/redis/data) (-v $PWD/data:/data) . So when I run following command I'm getting the below error. Note $PWD = /usr/local/etc/redis/ sudo docker run -d -v $PWD/redis.conf:/usr/local/etc/redis/redis.conf -v $PWD/data:/data --name redis-persistance --net tyk -p 7070:6379 redis redis-server /usr/local/etc/redis/redis.conf --appendonly yes Error in docker logs: journal: chown: changing ownership of '.': Permission denied level=warning msg="05ce842f052e28566aed0e2eab32281138462cead771033790266ae145fce116 cleanup: failed to unmount secrets: invalid argument" Also I tried changing the ownership of the data folder in the host to following as well. chown redis:redis data drwxrwxrwx. 2 redis redis 6 May 3 07:11 data Can someone help me out on this. Thanks.
|
Docker Redis start with persistent storage using -v gives error (chown: changing ownership of '.': Permission denied) I'm using following system version/spec for the docker-redis setup using default redis.conf . Redhat version: 7.6 (Red Hat Enterprise Linux Server) Redis Version: 5.0.4 Docker Version: 1.13.1, build b2f74b2/1.13.1 When I run following command it's working perfectly fine. sudo docker run -d -v $PWD/redis.conf:/usr/local/etc/redis/redis.conf --name redis-persistance --net tyk -p 7070:6379 redis redis-server /usr/local/etc/redis/redis.conf --appendonly yes I need to get redis data (which is in /data inside the container) to the host directory (/usr/local/etc/redis/data) (-v $PWD/data:/data) . So when I run following command I'm getting the below error. Note $PWD = /usr/local/etc/redis/ sudo docker run -d -v $PWD/redis.conf:/usr/local/etc/redis/redis.conf -v $PWD/data:/data --name redis-persistance --net tyk -p 7070:6379 redis redis-server /usr/local/etc/redis/redis.conf --appendonly yes Error in docker logs: journal: chown: changing ownership of '.': Permission denied level=warning msg="05ce842f052e28566aed0e2eab32281138462cead771033790266ae145fce116 cleanup: failed to unmount secrets: invalid argument" Also I tried changing the ownership of the data folder in the host to following as well. chown redis:redis data drwxrwxrwx. 2 redis redis 6 May 3 07:11 data Can someone help me out on this. Thanks.
|
linux, docker, redis, dockerfile, redhat
| 1
| 5,973
| 2
|
https://stackoverflow.com/questions/56001382/docker-redis-start-with-persistent-storage-using-v-gives-error-chown-changing
|
53,438,742
|
Is %config(noreplace) enough to instruct an RPM not to touch a config file in an upgrade?
|
On my RedHat 7.4, I'm creating an RPM with CMake, and one of the instructions I want to give the RPM is - to leave a certain config file alone, in case the action is an upgrade. I thought I could accomplish this in my CMakeLists.txt with ( mcve ): cmake_minimum_required(VERSION 3.4.0 FATAL_ERROR) project(MyKibana) set(kibana_version 6.2.2) set(kibana_dir /usr/share/mykibana) list(APPEND CPACK_RPM_USER_FILELIST "%config(noreplace) ${kibana_dir}/config/kibana.yml" ) However, when I do sudo yum upgrade /tmp/my-kibana-6.2.2-577-g7cca696.el7.my.x86_64.rpm -y , I see that the file at /usr/share/mykibana/config/kibana.yml is overwritten with the file in the RPM. Is there something else I need to do besides the %config(noreplace) directive?
|
Is %config(noreplace) enough to instruct an RPM not to touch a config file in an upgrade? On my RedHat 7.4, I'm creating an RPM with CMake, and one of the instructions I want to give the RPM is - to leave a certain config file alone, in case the action is an upgrade. I thought I could accomplish this in my CMakeLists.txt with ( mcve ): cmake_minimum_required(VERSION 3.4.0 FATAL_ERROR) project(MyKibana) set(kibana_version 6.2.2) set(kibana_dir /usr/share/mykibana) list(APPEND CPACK_RPM_USER_FILELIST "%config(noreplace) ${kibana_dir}/config/kibana.yml" ) However, when I do sudo yum upgrade /tmp/my-kibana-6.2.2-577-g7cca696.el7.my.x86_64.rpm -y , I see that the file at /usr/share/mykibana/config/kibana.yml is overwritten with the file in the RPM. Is there something else I need to do besides the %config(noreplace) directive?
|
cmake, redhat, rpm
| 1
| 2,145
| 1
|
https://stackoverflow.com/questions/53438742/is-confignoreplace-enough-to-instruct-an-rpm-not-to-touch-a-config-file-in-an
|
39,374,906
|
Encrypt with AES without header
|
I'm trying to encrypt a 16KiB block with AES. I tried to do it with openssl, but the size grew from 16384 to 16416. Looks like openssl put a 32B header. Is there any way to "remove" the 32B header? If it matters, my environment is Redhat 5.11. Edit: I tried only the command line tools of openssl: Encryption: openssl aes-256-cbc -in text.txt -out encrypted.txt Decryption: openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt Also - I need a tool that I can use with C++.
|
Encrypt with AES without header I'm trying to encrypt a 16KiB block with AES. I tried to do it with openssl, but the size grew from 16384 to 16416. Looks like openssl put a 32B header. Is there any way to "remove" the 32B header? If it matters, my environment is Redhat 5.11. Edit: I tried only the command line tools of openssl: Encryption: openssl aes-256-cbc -in text.txt -out encrypted.txt Decryption: openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt Also - I need a tool that I can use with C++.
|
c++, encryption, openssl, aes, redhat
| 1
| 2,745
| 2
|
https://stackoverflow.com/questions/39374906/encrypt-with-aes-without-header
|
37,414,988
|
Unable to copy the shared library's soft links with their original size in linux
|
I have created a shared object of 1.2 M and created 4 soft links for that SO. Size of all the links is 20B and the size of the main so is 1.2M 20 May 23 10:56 libAbc.so -> libAbc.so.2.0.11.0 20 May 23 10:56 libAbc.so.1 -> libAbc.so.2.0.11.0 20 May 23 10:56 libAbc.so.1.0 -> libAbc.so.2.0.11.0 1.2M May 23 10:56 libAbc.so.2.0.11.0 While i tried to copy all these files to another folder using cp , the size of the links is equal to the main file. 1.2M May 24 08:07 libABC.so 1.2M May 24 08:07 libABC.so.1 1.2M May 24 08:07 libABC.so.1.0 1.2M May 24 08:07 libABC.so.2.0.11.0 I have also used cp -s libAgent.so* src/ which is also failing with an error cp: `src/libAgent.so': can make relative symbolic links only in current directory Why is it failing to copy the softlinks with their original size(20B)
|
Unable to copy the shared library's soft links with their original size in linux I have created a shared object of 1.2 M and created 4 soft links for that SO. Size of all the links is 20B and the size of the main so is 1.2M 20 May 23 10:56 libAbc.so -> libAbc.so.2.0.11.0 20 May 23 10:56 libAbc.so.1 -> libAbc.so.2.0.11.0 20 May 23 10:56 libAbc.so.1.0 -> libAbc.so.2.0.11.0 1.2M May 23 10:56 libAbc.so.2.0.11.0 While i tried to copy all these files to another folder using cp , the size of the links is equal to the main file. 1.2M May 24 08:07 libABC.so 1.2M May 24 08:07 libABC.so.1 1.2M May 24 08:07 libABC.so.1.0 1.2M May 24 08:07 libABC.so.2.0.11.0 I have also used cp -s libAgent.so* src/ which is also failing with an error cp: `src/libAgent.so': can make relative symbolic links only in current directory Why is it failing to copy the softlinks with their original size(20B)
|
linux, shared-libraries, redhat, dynamic-linking, dynamic-library
| 1
| 3,160
| 2
|
https://stackoverflow.com/questions/37414988/unable-to-copy-the-shared-librarys-soft-links-with-their-original-size-in-linux
|
35,442,235
|
Marklogic installation on redhat 7
|
I have a redhat instance on aws. I am trying to install marklogic. I got the url after signing up for marklogic developer. using the following command, I get a 403 forbidden return. curl [URL]
|
Marklogic installation on redhat 7 I have a redhat instance on aws. I am trying to install marklogic. I got the url after signing up for marklogic developer. using the following command, I get a 403 forbidden return. curl [URL]
|
linux, redhat, marklogic
| 1
| 368
| 4
|
https://stackoverflow.com/questions/35442235/marklogic-installation-on-redhat-7
|
18,754,422
|
Install numpy for Python3 command not found error
|
Under /numpy folder $ sudo python3 setup.py install sudo:python3:command not found Or try $ sudo python3 distribute_setup.py sudo:python3:command not found $ python3 Python 3.2.2 (default, Sep 12 2013, 01:58:11) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> which python3 says $ which python3 /usr/local/bin/python3 Update: $ sudo which python3 which: no python3 in (/sbin:/bin:/usr/sbin:/usr/bin) $ sudo echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/xxxx/bin Update2: $ sudo sh -c 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin I have rhel/redhat and successfully installed python3.2.2 by downloading the package. Those threads about apt-get don't work for this version. Does anyone has an idea?
|
Install numpy for Python3 command not found error Under /numpy folder $ sudo python3 setup.py install sudo:python3:command not found Or try $ sudo python3 distribute_setup.py sudo:python3:command not found $ python3 Python 3.2.2 (default, Sep 12 2013, 01:58:11) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> which python3 says $ which python3 /usr/local/bin/python3 Update: $ sudo which python3 which: no python3 in (/sbin:/bin:/usr/sbin:/usr/bin) $ sudo echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/xxxx/bin Update2: $ sudo sh -c 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin I have rhel/redhat and successfully installed python3.2.2 by downloading the package. Those threads about apt-get don't work for this version. Does anyone has an idea?
|
python, numpy, scipy, redhat
| 1
| 6,101
| 2
|
https://stackoverflow.com/questions/18754422/install-numpy-for-python3-command-not-found-error
|
16,202,312
|
In Linux: Print last line of log file that starts with
|
I am trying to have the output of a single OS command display the last line of a log file, that starts with a specific string. So basically I have a log file that reads: Tom Paul Tom Steve Anthony Tom I want to type a command similar to this: tail -1 /etc/logfile | grep Steve and have output like this: Steve Unfortunately, the output of tail -1 only shows the last line of the log file...IF it matches. I want it to search the log file, from the bottom to the top (most recent to oldest) and print the first entry that matches the "Starts with" or grep. Thank you. I tried a bunch of combinations of tail, sed, cat and less...but I may be just doing something small wrong and missing it.
|
In Linux: Print last line of log file that starts with I am trying to have the output of a single OS command display the last line of a log file, that starts with a specific string. So basically I have a log file that reads: Tom Paul Tom Steve Anthony Tom I want to type a command similar to this: tail -1 /etc/logfile | grep Steve and have output like this: Steve Unfortunately, the output of tail -1 only shows the last line of the log file...IF it matches. I want it to search the log file, from the bottom to the top (most recent to oldest) and print the first entry that matches the "Starts with" or grep. Thank you. I tried a bunch of combinations of tail, sed, cat and less...but I may be just doing something small wrong and missing it.
|
linux, logging, redhat, tail
| 1
| 5,961
| 2
|
https://stackoverflow.com/questions/16202312/in-linux-print-last-line-of-log-file-that-starts-with
|
8,475,537
|
Crontab is running command 3 times each run
|
I have the following crontab set up on a RHEL server ... MAILTO=me@mydomain.com */2 * * * * wget --spider -q [URL] As you can see this should run every 2 minutes, which it does, but it runs the command three times and I can't figure out why. If I run tail /var/log/cron I get the following Dec 12 13:56:01 msvsc02-g283nc crond[1431]: (root) RELOAD (cron/root) Dec 12 13:56:01 msvsc02-g283nc crond[3224]: (root) CMD (wget --spider -q [URL] Dec 12 13:56:01 msvsc02-g283nc crond[2504]: (root) RELOAD (cron/root) Dec 12 13:56:01 msvsc02-g283nc crond[3226]: (root) CMD (wget --spider -q [URL] Dec 12 13:56:01 msvsc02-g283nc crond[2472]: (root) RELOAD (cron/root) Dec 12 13:56:01 msvsc02-g283nc crond[3228]: (root) CMD (wget --spider -q [URL] Can anyone shed any light on this?
|
Crontab is running command 3 times each run I have the following crontab set up on a RHEL server ... MAILTO=me@mydomain.com */2 * * * * wget --spider -q [URL] As you can see this should run every 2 minutes, which it does, but it runs the command three times and I can't figure out why. If I run tail /var/log/cron I get the following Dec 12 13:56:01 msvsc02-g283nc crond[1431]: (root) RELOAD (cron/root) Dec 12 13:56:01 msvsc02-g283nc crond[3224]: (root) CMD (wget --spider -q [URL] Dec 12 13:56:01 msvsc02-g283nc crond[2504]: (root) RELOAD (cron/root) Dec 12 13:56:01 msvsc02-g283nc crond[3226]: (root) CMD (wget --spider -q [URL] Dec 12 13:56:01 msvsc02-g283nc crond[2472]: (root) RELOAD (cron/root) Dec 12 13:56:01 msvsc02-g283nc crond[3228]: (root) CMD (wget --spider -q [URL] Can anyone shed any light on this?
|
linux, cron, redhat, rhel
| 1
| 2,319
| 1
|
https://stackoverflow.com/questions/8475537/crontab-is-running-command-3-times-each-run
|
7,959,544
|
Find & Replace on Redhat Linux using "sed"
|
I have done several searches on this and while the solutions seem obvious, I can't seem to get a definite one for my particular situation. I have a file that contains a string "${string}" and I would like to replace it with another string that happens to be a file path "/tmp/myfilepath". "sed" apparently seems to be the most popular choice to do this in linux. I am using the following command: sed -i 's/"${string}"/"/tmp/myfilepath"/g' myFile.txt I get the error message... sed: -e expression #1, char 5: unknown option to `s' I am using the double quotes because it has additional slashes in it. I have tried mix-matching single and double quotes, but nothing seems to work. Any thoughts or solutions? Thanks in advance.
|
Find & Replace on Redhat Linux using "sed" I have done several searches on this and while the solutions seem obvious, I can't seem to get a definite one for my particular situation. I have a file that contains a string "${string}" and I would like to replace it with another string that happens to be a file path "/tmp/myfilepath". "sed" apparently seems to be the most popular choice to do this in linux. I am using the following command: sed -i 's/"${string}"/"/tmp/myfilepath"/g' myFile.txt I get the error message... sed: -e expression #1, char 5: unknown option to `s' I am using the double quotes because it has additional slashes in it. I have tried mix-matching single and double quotes, but nothing seems to work. Any thoughts or solutions? Thanks in advance.
|
linux, search, replace, sed, redhat
| 1
| 4,659
| 2
|
https://stackoverflow.com/questions/7959544/find-replace-on-redhat-linux-using-sed
|
78,898,814
|
GnuCobol file not found
|
I am looking for a solution for the following problem. I run a very simple cobol program to read a file. I use the following code : IDENTIFICATION DIVISION. PROGRAM-ID. GADGETS. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT Gadgetfile ASSIGN TO "STOCK.DAT" ORGANIZATION IS LINE SEQUENTIAL. DATA DIVISION. FILE SECTION. FD Gadgetfile. The file stock.dat exist in the same directory of the program. I get the following error : libcob: error: file does not exist (status = 35) for file Gadgetfile ('STOCK_DAT' => STOCK.DAT) If I use simple quote of double quote nothing change. This means that the program can't find the file. I use Gnucobol running on Redat 9.4 the same problem occur on fedora 40. I think that I need to use some export of something related to DD ? Help will be appreciated Kind regards.
|
GnuCobol file not found I am looking for a solution for the following problem. I run a very simple cobol program to read a file. I use the following code : IDENTIFICATION DIVISION. PROGRAM-ID. GADGETS. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT Gadgetfile ASSIGN TO "STOCK.DAT" ORGANIZATION IS LINE SEQUENTIAL. DATA DIVISION. FILE SECTION. FD Gadgetfile. The file stock.dat exist in the same directory of the program. I get the following error : libcob: error: file does not exist (status = 35) for file Gadgetfile ('STOCK_DAT' => STOCK.DAT) If I use simple quote of double quote nothing change. This means that the program can't find the file. I use Gnucobol running on Redat 9.4 the same problem occur on fedora 40. I think that I need to use some export of something related to DD ? Help will be appreciated Kind regards.
|
file, redhat, cobol, gnucobol
| 1
| 155
| 2
|
https://stackoverflow.com/questions/78898814/gnucobol-file-not-found
|
68,727,253
|
Coredump occurred in linux c program (Redhat 8.3.1)
|
In my program, coredump occurs when using _Decimal128 on nested structures on linux. It occurs when all of the conditions below are met. first, #pragma pack(8) declaration. second, 3rd nested structure . third, _Decimal128 type address as an argument for a function. I'm looking for a cause of coredump. The development environment is Redhat 8.3.1 and compiled into gcc. The sample code is as follows. #include <stdio.h> #pragma pack(8) // without this line, it is success struct _c { int c1; _Decimal128 c2; }; struct _b { int b1; _Decimal128 b2; struct _c b3; //3rd nested structure }; struct _a { int a1; _Decimal128 a2; struct _b a3; // 2nd nested structure }; void func1(struct _c *cptr) { if (cptr->c2 == 0) // if argument type is structure, it is success printf("[func1]\n"); } void func2(_Decimal128 *ptr) { if (*ptr == 0) // if argument type is _Decimal128, it occurs coredump printf("[func2]\n"); } int main() { struct _a a; struct _b b; _Decimal128 t = 0; b.b2 = t; b.b3.c2 = t; a.a3 = b; func1(&a.a3.b3); // if argument is 3rd structure address, it is success func2(&a.a3.b2); // if argument is _Decimal128 address of 2rd structure, it is sunccess func2(&a.a3.b3.c2); // if argument is _Decimal128 address of 3rd structure, it occurs coredump } Result is, [func1] [func2] Memory fault(coredump) If I delete #pragma pack(8) line from the source code above, the results are as follows. [func1] [func2] [func2]
|
Coredump occurred in linux c program (Redhat 8.3.1) In my program, coredump occurs when using _Decimal128 on nested structures on linux. It occurs when all of the conditions below are met. first, #pragma pack(8) declaration. second, 3rd nested structure . third, _Decimal128 type address as an argument for a function. I'm looking for a cause of coredump. The development environment is Redhat 8.3.1 and compiled into gcc. The sample code is as follows. #include <stdio.h> #pragma pack(8) // without this line, it is success struct _c { int c1; _Decimal128 c2; }; struct _b { int b1; _Decimal128 b2; struct _c b3; //3rd nested structure }; struct _a { int a1; _Decimal128 a2; struct _b a3; // 2nd nested structure }; void func1(struct _c *cptr) { if (cptr->c2 == 0) // if argument type is structure, it is success printf("[func1]\n"); } void func2(_Decimal128 *ptr) { if (*ptr == 0) // if argument type is _Decimal128, it occurs coredump printf("[func2]\n"); } int main() { struct _a a; struct _b b; _Decimal128 t = 0; b.b2 = t; b.b3.c2 = t; a.a3 = b; func1(&a.a3.b3); // if argument is 3rd structure address, it is success func2(&a.a3.b2); // if argument is _Decimal128 address of 2rd structure, it is sunccess func2(&a.a3.b3.c2); // if argument is _Decimal128 address of 3rd structure, it occurs coredump } Result is, [func1] [func2] Memory fault(coredump) If I delete #pragma pack(8) line from the source code above, the results are as follows. [func1] [func2] [func2]
|
c, linux, decimal, redhat, coredump
| 1
| 184
| 1
|
https://stackoverflow.com/questions/68727253/coredump-occurred-in-linux-c-program-redhat-8-3-1
|
62,758,740
|
Multiple jumps ssh tunnel, one command line
|
I'm currently connecting my local machine with the target running commands in my local (mobaxterm), in pivotonone and pivottwo, this is the flow of data: mobaxterm <--- pivotone <--- pivottwo <--- target These are the commands that I run on each machine: local(mobaxterm) ssh -L 5601:127.0.0.1:5601 root@pivotone pivotone ssh -L 5601:127.0.0.1:5601 root@pivottwo pivottwo ssh -L 5601:127.0.0.1:5601 root@target I was wandering if I could do the same but with just one command in my mobaxterm machine?
|
Multiple jumps ssh tunnel, one command line I'm currently connecting my local machine with the target running commands in my local (mobaxterm), in pivotonone and pivottwo, this is the flow of data: mobaxterm <--- pivotone <--- pivottwo <--- target These are the commands that I run on each machine: local(mobaxterm) ssh -L 5601:127.0.0.1:5601 root@pivotone pivotone ssh -L 5601:127.0.0.1:5601 root@pivottwo pivottwo ssh -L 5601:127.0.0.1:5601 root@target I was wandering if I could do the same but with just one command in my mobaxterm machine?
|
ssh, redhat, ssh-tunnel
| 1
| 5,395
| 1
|
https://stackoverflow.com/questions/62758740/multiple-jumps-ssh-tunnel-one-command-line
|
61,761,857
|
How to add all special characters in variable for sed command
|
I have a variable called varname which have characters such as /,. etc. Requirement is to use it with sed command. This is what I've done. echo Hello admin, please add , after you enter the image name read -p varname sed -i "s/my-images=/&$varname/" /home/myconfig echo Image $varname has been added to the configuration. Thanks!! /home/myconfig has id=1 max-mb=1000 my-images=customimage And required output is id=1 max-mb=1000 my-images=mynewtext/version1,customimage I am getting error while running this code and the error is : sed: -e expression #1, char 28: unknown option to `s' Any help would be appreciated.
|
How to add all special characters in variable for sed command I have a variable called varname which have characters such as /,. etc. Requirement is to use it with sed command. This is what I've done. echo Hello admin, please add , after you enter the image name read -p varname sed -i "s/my-images=/&$varname/" /home/myconfig echo Image $varname has been added to the configuration. Thanks!! /home/myconfig has id=1 max-mb=1000 my-images=customimage And required output is id=1 max-mb=1000 my-images=mynewtext/version1,customimage I am getting error while running this code and the error is : sed: -e expression #1, char 28: unknown option to `s' Any help would be appreciated.
|
bash, shell, scripting, redhat
| 1
| 803
| 2
|
https://stackoverflow.com/questions/61761857/how-to-add-all-special-characters-in-variable-for-sed-command
|
61,584,156
|
EPEL & Codeready-builder AWS EC2 RHEL8
|
I am running an EC2 instance with a RHEL8 AMI. I am looking to install R on the instance and I believe I need the EPEL package and to enable the codeready builder through the following two commands sudo dnf install -y [URL] sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms more info at ( [URL] ) I can download epel (first line) fine but when I run the second line I get the following: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms. Also when I try to run the following, I get the following: This system has no repositories available through subscriptions. and for completeness, this is the error when i try to install R $sudo yum install -y R This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC. Error: Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed - package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed - conflicting requests - nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64 - nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64 (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) Does anyone have any ideas or has solved this same problem?
|
EPEL & Codeready-builder AWS EC2 RHEL8 I am running an EC2 instance with a RHEL8 AMI. I am looking to install R on the instance and I believe I need the EPEL package and to enable the codeready builder through the following two commands sudo dnf install -y [URL] sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms more info at ( [URL] ) I can download epel (first line) fine but when I run the second line I get the following: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms. Also when I try to run the following, I get the following: This system has no repositories available through subscriptions. and for completeness, this is the error when i try to install R $sudo yum install -y R This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC. Error: Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed - package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed - conflicting requests - nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64 - nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64 (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) Does anyone have any ideas or has solved this same problem?
|
r, linux, amazon-web-services, amazon-ec2, redhat
| 1
| 8,013
| 1
|
https://stackoverflow.com/questions/61584156/epel-codeready-builder-aws-ec2-rhel8
|
60,924,179
|
Shellscript not running in crontab to execute sqlcmd
|
I am using crontab in Red Hat to run a shell script that will output a CSV file to the directory. I can execute the script manually but when I run it via cron , it doesn't run. My script is: IndividualInformation.sh #!/usr/bin/env bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin sqlcmd -S 192.168.0.0 -d TestDB -U xx -P xxxx -Q "EXEC BPE.IndividualInformation_GetList" -o "IndividualInformation.csv" -h-1 -s"," -W exit 0 my crontab looks like this: 12 30 * * * /home/admin/cronTab_SQL/IndividualInformation.sh 2> /tmp/crontab_script_log.txt 2>&1 i can't seem to run the script in crontab and when i checked the logs (crontab_script_log.txt), the logs was empty.
|
Shellscript not running in crontab to execute sqlcmd I am using crontab in Red Hat to run a shell script that will output a CSV file to the directory. I can execute the script manually but when I run it via cron , it doesn't run. My script is: IndividualInformation.sh #!/usr/bin/env bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin sqlcmd -S 192.168.0.0 -d TestDB -U xx -P xxxx -Q "EXEC BPE.IndividualInformation_GetList" -o "IndividualInformation.csv" -h-1 -s"," -W exit 0 my crontab looks like this: 12 30 * * * /home/admin/cronTab_SQL/IndividualInformation.sh 2> /tmp/crontab_script_log.txt 2>&1 i can't seem to run the script in crontab and when i checked the logs (crontab_script_log.txt), the logs was empty.
|
linux, cron, redhat, sqlcmd
| 1
| 1,444
| 4
|
https://stackoverflow.com/questions/60924179/shellscript-not-running-in-crontab-to-execute-sqlcmd
|
58,790,889
|
Fail to start a process as a service? (code=exited, status=203/EXEC)
|
I need to start the cassandra process as a service. To do that placed the following script inside the /etc/init.d directory as per the doc so here is my script which I placed in init directory. #!/bin/bash # chkconfig: 2345 99 01 # description: Cassandra . /etc/rc.d/init.d/functions CASSANDRA_HOME=/home/cassandra/binaries/cassandra CASSANDRA_BIN=$CASSANDRA_HOME/bin/cassandra CASSANDRA_NODETOOL=$CASSANDRA_HOME/bin/nodetool CASSANDRA_LOG=$CASSANDRA_HOME/logs/cassandra.log CASSANDRA_PID=$CASSANDRA_HOME/cassandra.pid CASSANDRA_LOCK=$CASSANDRA_HOME/cassandra.lock PROGRAM="cassandra" if [ ! -f $CASSANDRA_BIN ]; then echo "File not found: $CASSANDRA_BIN" exit 1 fi RETVAL=0 start() { if [ -f $CASSANDRA_PID ] && checkpid cat $CASSANDRA_PID; then echo "Cassandra is already running." exit 0 fi echo -n $"Starting $PROGRAM: " $CASSANDRA_BIN -p $CASSANDRA_PID -R >> $CASSANDRA_LOG 2>&1 sleep 60 RETVAL=$? if [ $RETVAL -eq 0 ]; then touch $CASSANDRA_LOCK echo_success else echo_failure fi echo return $RETVAL } stop() { if [ ! -f $CASSANDRA_PID ]; then echo "Cassandra is already stopped." exit 0 fi echo -n $"Stopping $PROGRAM: " # $CASSANDRA_NODETOOL -h 127.0.0.1 decommission if kill cat $CASSANDRA_PID; then RETVAL=0 rm -f $CASSANDRA_LOCK echo_success else RETVAL=1 echo_failure fi echo [ $RETVAL = 0 ] } status_fn() { if [ -f $CASSANDRA_PID ] && checkpid cat $CASSANDRA_PID; then echo "Cassandra is running." exit 0 else echo "Cassandra is stopped." exit 1 fi } case "$1" in start) start ;; stop) stop ;; status) status_fn ;; restart) stop start ;; *) echo $"Usage: $PROGRAM {start|stop|restart|status}" RETVAL=3 esac exit $RETVAL However when execute the service cassandra start it ended up with an error as follows. [root@casstestnode1 init.d]# service cassandra start Starting cassandra (via systemctl): Job for cassandra.service failed because the control process exited with error code. See "systemctl status cassandra.service" and "journalctl -xe" for details. [FAILED] [root@casstestnode1 init.d]# and [root@casstestnode1 init.d]# systemctl status cassandra.service ● cassandra.service - SYSV: Cassandra Loaded: loaded (/etc/rc.d/init.d/cassandra) Active: failed (Result: exit-code) since Sun 2019-11-10 22:23:07 IST; 41s ago Docs: man:systemd-sysv-generator(8) Process: 2624 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=203/EXEC) Nov 10 22:23:07 casstestnode1 systemd[1]: Starting SYSV: Cassandra... Nov 10 22:23:07 casstestnode1 systemd[1]: cassandra.service: control process exited, code=exited status=203 Nov 10 22:23:07 casstestnode1 systemd[1]: Failed to start SYSV: Cassandra. Nov 10 22:23:07 casstestnode1 systemd[1]: Unit cassandra.service entered failed state. Nov 10 22:23:07 casstestnode1 systemd[1]: cassandra.service failed. [root@casstestnode1 init.d]# I reboot the VM and retried again and still error is same. Any linux expert, Please help. Additionally here is the output of the journalctl -xe [root@casstestnode1 init.d]# journalctl -xe -- Unit session-3153.scope has begun starting up. Nov 11 23:55:01 casstestnode1 systemd[1]: Started Session 3154 of user cassandra. -- Subject: Unit session-3154.scope has finished start-up -- Defined-By: systemd -- Support: [URL] -- -- Unit session-3154.scope has finished starting up. -- -- The start-up result is done. Nov 11 23:55:01 casstestnode1 systemd[1]: Starting Session 3154 of user cassandra. -- Subject: Unit session-3154.scope has begun start-up -- Defined-By: systemd -- Support: [URL] -- -- Unit session-3154.scope has begun starting up. Nov 11 23:55:01 casstestnode1 CROND[24584]: (cassandra) CMD (. /home/cassandra/test/cr.sh) Nov 11 23:55:01 casstestnode1 CROND[24585]: (cassandra) CMD (date >> /home/cassandra/test/ll.txt) Nov 11 23:55:01 casstestnode1 postfix/pickup[23967]: A5210F1C27: uid=995 from=<cassandra> Nov 11 23:55:01 casstestnode1 postfix/cleanup[24090]: A5210F1C27: message-id=<20191111182501.A5210F1C27@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A5210F1C27: from=<cassandra@casstestnode1.localdomain>, size=837, nrcpt=1 (queue activ Nov 11 23:55:01 casstestnode1 postfix/pickup[23967]: A8301F1C29: uid=995 from=<cassandra> Nov 11 23:55:01 casstestnode1 postfix/cleanup[24315]: A8301F1C29: message-id=<20191111182501.A8301F1C29@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A8301F1C29: from=<cassandra@casstestnode1.localdomain>, size=845, nrcpt=1 (queue activ Nov 11 23:55:01 casstestnode1 postfix/local[24021]: A5210F1C27: to=<cassandra@casstestnode1.localdomain>, orig_to=<cassandra>, relay=loc Nov 11 23:55:01 casstestnode1 postfix/cleanup[24090]: A987AF1C2A: message-id=<20191111182501.A987AF1C2A@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A987AF1C2A: from=<>, size=2878, nrcpt=1 (queue active) Nov 11 23:55:01 casstestnode1 postfix/bounce[24164]: A5210F1C27: sender non-delivery notification: A987AF1C2A Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A5210F1C27: removed Nov 11 23:55:01 casstestnode1 postfix/local[23698]: A8301F1C29: to=<cassandra@casstestnode1.localdomain>, orig_to=<cassandra>, relay=loc Nov 11 23:55:01 casstestnode1 postfix/cleanup[24315]: AA5AFF1C27: message-id=<20191111182501.AA5AFF1C27@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: AA5AFF1C27: from=<>, size=2886, nrcpt=1 (queue active) Nov 11 23:55:01 casstestnode1 postfix/bounce[24164]: A8301F1C29: sender non-delivery notification: AA5AFF1C27 Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A8301F1C29: removed Nov 11 23:55:01 casstestnode1 postfix/local[24021]: A987AF1C2A: to=<cassandra@casstestnode1.localdomain>, relay=local, delay=0.01, delay Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A987AF1C2A: removed Nov 11 23:55:01 casstestnode1 postfix/local[23698]: AA5AFF1C27: to=<cassandra@casstestnode1.localdomain>, relay=local, delay=0.01, delay Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: AA5AFF1C27: removed lines 1923-1959/1959 (END) [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# when I manually run the script [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# ./cassandra start Starting cassandra: [ OK ] [root@casstestnode1 init.d]# ./cassandra status Cassandra is running. [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# service cassandra status Cassandra is running. [root@casstestnode1 init.d]# ./cassandra stop Stopping cassandra: [ OK ] [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# ./cassandra status Cassandra is stopped. [root@casstestnode1 init.d]# service cassandra status Cassandra is stopped. [root@casstestnode1 init.d]#
|
Fail to start a process as a service? (code=exited, status=203/EXEC) I need to start the cassandra process as a service. To do that placed the following script inside the /etc/init.d directory as per the doc so here is my script which I placed in init directory. #!/bin/bash # chkconfig: 2345 99 01 # description: Cassandra . /etc/rc.d/init.d/functions CASSANDRA_HOME=/home/cassandra/binaries/cassandra CASSANDRA_BIN=$CASSANDRA_HOME/bin/cassandra CASSANDRA_NODETOOL=$CASSANDRA_HOME/bin/nodetool CASSANDRA_LOG=$CASSANDRA_HOME/logs/cassandra.log CASSANDRA_PID=$CASSANDRA_HOME/cassandra.pid CASSANDRA_LOCK=$CASSANDRA_HOME/cassandra.lock PROGRAM="cassandra" if [ ! -f $CASSANDRA_BIN ]; then echo "File not found: $CASSANDRA_BIN" exit 1 fi RETVAL=0 start() { if [ -f $CASSANDRA_PID ] && checkpid cat $CASSANDRA_PID; then echo "Cassandra is already running." exit 0 fi echo -n $"Starting $PROGRAM: " $CASSANDRA_BIN -p $CASSANDRA_PID -R >> $CASSANDRA_LOG 2>&1 sleep 60 RETVAL=$? if [ $RETVAL -eq 0 ]; then touch $CASSANDRA_LOCK echo_success else echo_failure fi echo return $RETVAL } stop() { if [ ! -f $CASSANDRA_PID ]; then echo "Cassandra is already stopped." exit 0 fi echo -n $"Stopping $PROGRAM: " # $CASSANDRA_NODETOOL -h 127.0.0.1 decommission if kill cat $CASSANDRA_PID; then RETVAL=0 rm -f $CASSANDRA_LOCK echo_success else RETVAL=1 echo_failure fi echo [ $RETVAL = 0 ] } status_fn() { if [ -f $CASSANDRA_PID ] && checkpid cat $CASSANDRA_PID; then echo "Cassandra is running." exit 0 else echo "Cassandra is stopped." exit 1 fi } case "$1" in start) start ;; stop) stop ;; status) status_fn ;; restart) stop start ;; *) echo $"Usage: $PROGRAM {start|stop|restart|status}" RETVAL=3 esac exit $RETVAL However when execute the service cassandra start it ended up with an error as follows. [root@casstestnode1 init.d]# service cassandra start Starting cassandra (via systemctl): Job for cassandra.service failed because the control process exited with error code. See "systemctl status cassandra.service" and "journalctl -xe" for details. [FAILED] [root@casstestnode1 init.d]# and [root@casstestnode1 init.d]# systemctl status cassandra.service ● cassandra.service - SYSV: Cassandra Loaded: loaded (/etc/rc.d/init.d/cassandra) Active: failed (Result: exit-code) since Sun 2019-11-10 22:23:07 IST; 41s ago Docs: man:systemd-sysv-generator(8) Process: 2624 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=203/EXEC) Nov 10 22:23:07 casstestnode1 systemd[1]: Starting SYSV: Cassandra... Nov 10 22:23:07 casstestnode1 systemd[1]: cassandra.service: control process exited, code=exited status=203 Nov 10 22:23:07 casstestnode1 systemd[1]: Failed to start SYSV: Cassandra. Nov 10 22:23:07 casstestnode1 systemd[1]: Unit cassandra.service entered failed state. Nov 10 22:23:07 casstestnode1 systemd[1]: cassandra.service failed. [root@casstestnode1 init.d]# I reboot the VM and retried again and still error is same. Any linux expert, Please help. Additionally here is the output of the journalctl -xe [root@casstestnode1 init.d]# journalctl -xe -- Unit session-3153.scope has begun starting up. Nov 11 23:55:01 casstestnode1 systemd[1]: Started Session 3154 of user cassandra. -- Subject: Unit session-3154.scope has finished start-up -- Defined-By: systemd -- Support: [URL] -- -- Unit session-3154.scope has finished starting up. -- -- The start-up result is done. Nov 11 23:55:01 casstestnode1 systemd[1]: Starting Session 3154 of user cassandra. -- Subject: Unit session-3154.scope has begun start-up -- Defined-By: systemd -- Support: [URL] -- -- Unit session-3154.scope has begun starting up. Nov 11 23:55:01 casstestnode1 CROND[24584]: (cassandra) CMD (. /home/cassandra/test/cr.sh) Nov 11 23:55:01 casstestnode1 CROND[24585]: (cassandra) CMD (date >> /home/cassandra/test/ll.txt) Nov 11 23:55:01 casstestnode1 postfix/pickup[23967]: A5210F1C27: uid=995 from=<cassandra> Nov 11 23:55:01 casstestnode1 postfix/cleanup[24090]: A5210F1C27: message-id=<20191111182501.A5210F1C27@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A5210F1C27: from=<cassandra@casstestnode1.localdomain>, size=837, nrcpt=1 (queue activ Nov 11 23:55:01 casstestnode1 postfix/pickup[23967]: A8301F1C29: uid=995 from=<cassandra> Nov 11 23:55:01 casstestnode1 postfix/cleanup[24315]: A8301F1C29: message-id=<20191111182501.A8301F1C29@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A8301F1C29: from=<cassandra@casstestnode1.localdomain>, size=845, nrcpt=1 (queue activ Nov 11 23:55:01 casstestnode1 postfix/local[24021]: A5210F1C27: to=<cassandra@casstestnode1.localdomain>, orig_to=<cassandra>, relay=loc Nov 11 23:55:01 casstestnode1 postfix/cleanup[24090]: A987AF1C2A: message-id=<20191111182501.A987AF1C2A@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A987AF1C2A: from=<>, size=2878, nrcpt=1 (queue active) Nov 11 23:55:01 casstestnode1 postfix/bounce[24164]: A5210F1C27: sender non-delivery notification: A987AF1C2A Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A5210F1C27: removed Nov 11 23:55:01 casstestnode1 postfix/local[23698]: A8301F1C29: to=<cassandra@casstestnode1.localdomain>, orig_to=<cassandra>, relay=loc Nov 11 23:55:01 casstestnode1 postfix/cleanup[24315]: AA5AFF1C27: message-id=<20191111182501.AA5AFF1C27@casstestnode1.localdomain> Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: AA5AFF1C27: from=<>, size=2886, nrcpt=1 (queue active) Nov 11 23:55:01 casstestnode1 postfix/bounce[24164]: A8301F1C29: sender non-delivery notification: AA5AFF1C27 Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A8301F1C29: removed Nov 11 23:55:01 casstestnode1 postfix/local[24021]: A987AF1C2A: to=<cassandra@casstestnode1.localdomain>, relay=local, delay=0.01, delay Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: A987AF1C2A: removed Nov 11 23:55:01 casstestnode1 postfix/local[23698]: AA5AFF1C27: to=<cassandra@casstestnode1.localdomain>, relay=local, delay=0.01, delay Nov 11 23:55:01 casstestnode1 postfix/qmgr[2035]: AA5AFF1C27: removed lines 1923-1959/1959 (END) [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# when I manually run the script [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# ./cassandra start Starting cassandra: [ OK ] [root@casstestnode1 init.d]# ./cassandra status Cassandra is running. [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# service cassandra status Cassandra is running. [root@casstestnode1 init.d]# ./cassandra stop Stopping cassandra: [ OK ] [root@casstestnode1 init.d]# [root@casstestnode1 init.d]# ./cassandra status Cassandra is stopped. [root@casstestnode1 init.d]# service cassandra status Cassandra is stopped. [root@casstestnode1 init.d]#
|
linux, redhat
| 1
| 25,513
| 3
|
https://stackoverflow.com/questions/58790889/fail-to-start-a-process-as-a-service-code-exited-status-203-exec
|
56,622,628
|
How do I connect PHP 7.x to Oracle database on RedHat / CentOS?
|
I am struggling to connect my PHP application to an Oracle database. I have tried multiple options over the last week with no success. I have managed to install oci8 extension but the oci_connect function is not recognised. Please assist. RedHat Enterprise Linux 7.6 PHP: 7.3 Oracle: 12c
|
How do I connect PHP 7.x to Oracle database on RedHat / CentOS? I am struggling to connect my PHP application to an Oracle database. I have tried multiple options over the last week with no success. I have managed to install oci8 extension but the oci_connect function is not recognised. Please assist. RedHat Enterprise Linux 7.6 PHP: 7.3 Oracle: 12c
|
php, oracle-database, redhat, oci8
| 1
| 8,033
| 2
|
https://stackoverflow.com/questions/56622628/how-do-i-connect-php-7-x-to-oracle-database-on-redhat-centos
|
54,979,688
|
how to build scl, example are old and rpmlint contradict the documentation?
|
I read the official documentation , some examples on github and on atomicorp . But I am still confused! Should have to make 2 specs? One to build the tools and another one for a metapackage? If yes why atomicscorp's spec file seem to be a mix of spec and the meta-spec files ? Moreover with rpmlint 1.10 on metapackage seem to contracdict the documentation and examples. I have this error: scl-runtime-package-without-%scl_files SCL runtime package must contain %scl_files in %files section. And examples used %scl_files statement into the runtime part (line 172) Any help is welcome Thanks
|
how to build scl, example are old and rpmlint contradict the documentation? I read the official documentation , some examples on github and on atomicorp . But I am still confused! Should have to make 2 specs? One to build the tools and another one for a metapackage? If yes why atomicscorp's spec file seem to be a mix of spec and the meta-spec files ? Moreover with rpmlint 1.10 on metapackage seem to contracdict the documentation and examples. I have this error: scl-runtime-package-without-%scl_files SCL runtime package must contain %scl_files in %files section. And examples used %scl_files statement into the runtime part (line 172) Any help is welcome Thanks
|
redhat, rpm, rpm-spec, software-collections
| 1
| 179
| 1
|
https://stackoverflow.com/questions/54979688/how-to-build-scl-example-are-old-and-rpmlint-contradict-the-documentation
|
53,749,024
|
Deploy RHEL BYOS Marketplace Image to Azure
|
How can the BYOS images for RHEL in the Azure Marketplace be deployed to a VM? I can see that BYOS images exist: PS H:\> Get-AzureRmVMImageSku -Location centralus -PublisherName RedHat -Offer rhel-byos | Select-Object -Property * -ExcludeProperty Id Skus : rhel-lvm74 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK Skus : rhel-lvm75 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK Skus : rhel-raw69 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK Skus : rhel-raw75 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK I'm also able to see that plan information is required: PS H:\> Get-AzureRmVMImage -Location centralus -PublisherName RedHat -Offer rhel-byos -Skus rhel-raw75 -Version 7.5.20180917 | Select-Object -Property * -ExcludeProperty Id Location : centralus PublisherName : RedHat Offer : rhel-byos Skus : rhel-raw75 Version : 7.5.20180917 FilterExpression : Name : 7.5.20180917 OSDiskImage : { "operatingSystem": "Linux" } PurchasePlan : { "publisher": "redhat", "name": "rhel-raw75", "product": "rhel-byos" } DataDiskImages : [] However, if I try to deploy a BYOS image with the appropriate plan information, I get the following error: "Offer with PublisherId: redhat, OfferId: rhel-byos, PlanId rhel-raw75 is private and can not be purchased by subscritpionId: As far as I can tell, the private offers in the marketplace can be made available through the partner (RedHat, in this case), but I can't find any Red Hat documentation for making these available. The closest I've found relates to the Red Hat Gold Images , but this appears specific to AWS. Has anyone been able to deploy the RHEL BYOS images from the Azure Marketplace? If so, what steps am I missing to enable access to those images for deployment?
|
Deploy RHEL BYOS Marketplace Image to Azure How can the BYOS images for RHEL in the Azure Marketplace be deployed to a VM? I can see that BYOS images exist: PS H:\> Get-AzureRmVMImageSku -Location centralus -PublisherName RedHat -Offer rhel-byos | Select-Object -Property * -ExcludeProperty Id Skus : rhel-lvm74 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK Skus : rhel-lvm75 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK Skus : rhel-raw69 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK Skus : rhel-raw75 Offer : rhel-byos PublisherName : RedHat Location : centralus RequestId : 240292aa-1661-4048-9f47-b2d56e131087 StatusCode : OK I'm also able to see that plan information is required: PS H:\> Get-AzureRmVMImage -Location centralus -PublisherName RedHat -Offer rhel-byos -Skus rhel-raw75 -Version 7.5.20180917 | Select-Object -Property * -ExcludeProperty Id Location : centralus PublisherName : RedHat Offer : rhel-byos Skus : rhel-raw75 Version : 7.5.20180917 FilterExpression : Name : 7.5.20180917 OSDiskImage : { "operatingSystem": "Linux" } PurchasePlan : { "publisher": "redhat", "name": "rhel-raw75", "product": "rhel-byos" } DataDiskImages : [] However, if I try to deploy a BYOS image with the appropriate plan information, I get the following error: "Offer with PublisherId: redhat, OfferId: rhel-byos, PlanId rhel-raw75 is private and can not be purchased by subscritpionId: As far as I can tell, the private offers in the marketplace can be made available through the partner (RedHat, in this case), but I can't find any Red Hat documentation for making these available. The closest I've found relates to the Red Hat Gold Images , but this appears specific to AWS. Has anyone been able to deploy the RHEL BYOS images from the Azure Marketplace? If so, what steps am I missing to enable access to those images for deployment?
|
azure, redhat, rhel, rhel7, azure-deployment
| 1
| 2,690
| 3
|
https://stackoverflow.com/questions/53749024/deploy-rhel-byos-marketplace-image-to-azure
|
47,188,306
|
Timing shared library load times on linux
|
I'm trying to figure out how much time I'm taking in loading shared libraries on a linux system (RHEL 6 to be specific) and I'm wondering what sort of tools are out there to time how long shared library loading takes. I haven't really found any good information out there as to how to do this and I'm hoping some sort of tool exists.
|
Timing shared library load times on linux I'm trying to figure out how much time I'm taking in loading shared libraries on a linux system (RHEL 6 to be specific) and I'm wondering what sort of tools are out there to time how long shared library loading takes. I haven't really found any good information out there as to how to do this and I'm hoping some sort of tool exists.
|
c++, linux, redhat, dynamic-linking
| 1
| 778
| 1
|
https://stackoverflow.com/questions/47188306/timing-shared-library-load-times-on-linux
|
45,846,652
|
issue with sqlite while installing SVN::Core
|
I am trying to install SVN::Core in a Redhat 6 server, but every time I try to run cpan SVN::Core, it throws me an error that says: An appropriate version of sqlite could not be found. We recommmend 3.7.15.1, but require at least 3.7.12. Please either install a newer sqlite on this system or get the sqlite 3.7.15.1 amalgamation from: [URL] unpack the archive using unzip and rename the resulting directory to: /root/.cpan/build/Alien-SVN-v1.8.11.0-9/src/subversion/sqlite-amalgamation The first time I tried to install it it told me to rename the sqlite file(sqlite-amalgamation-3071501) in the path: /root/.cpan/build/Alien-SVN-v1.8.11.0-1/ the next time to the Alien-SVN-v1.8.11.0-2, the third time to 11.0-3, and it goes on and on. Before doing this I installed the Perl 5.18.2 and set the PERL5LIB with export PERL5LIB=/usr/local/lib. What can I do to fix this?
|
issue with sqlite while installing SVN::Core I am trying to install SVN::Core in a Redhat 6 server, but every time I try to run cpan SVN::Core, it throws me an error that says: An appropriate version of sqlite could not be found. We recommmend 3.7.15.1, but require at least 3.7.12. Please either install a newer sqlite on this system or get the sqlite 3.7.15.1 amalgamation from: [URL] unpack the archive using unzip and rename the resulting directory to: /root/.cpan/build/Alien-SVN-v1.8.11.0-9/src/subversion/sqlite-amalgamation The first time I tried to install it it told me to rename the sqlite file(sqlite-amalgamation-3071501) in the path: /root/.cpan/build/Alien-SVN-v1.8.11.0-1/ the next time to the Alien-SVN-v1.8.11.0-2, the third time to 11.0-3, and it goes on and on. Before doing this I installed the Perl 5.18.2 and set the PERL5LIB with export PERL5LIB=/usr/local/lib. What can I do to fix this?
|
git, perl, sqlite, svn, redhat
| 1
| 383
| 1
|
https://stackoverflow.com/questions/45846652/issue-with-sqlite-while-installing-svncore
|
38,556,391
|
How to install FFMPEG in Openshift?
|
I saw this tutorial but couldn't make it work [URL] It fails in this steps: cd ffmpeg-2.0.1 make make install The make command and the make install says some files couldn't be found: Makefile:2: config.mak: No such file or directory Makefile:48: /common.mak: No such file or directory Makefile:91: /libavutil/Makefile: No such file or directory Makefile:91: /library.mak: No such file or directory Makefile:168: /doc/Makefile: No such file or directory Makefile:169: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. Both throws the same erros. Anyone knows how to install FFMPEG on Openshift or how to solve this error ?
|
How to install FFMPEG in Openshift? I saw this tutorial but couldn't make it work [URL] It fails in this steps: cd ffmpeg-2.0.1 make make install The make command and the make install says some files couldn't be found: Makefile:2: config.mak: No such file or directory Makefile:48: /common.mak: No such file or directory Makefile:91: /libavutil/Makefile: No such file or directory Makefile:91: /library.mak: No such file or directory Makefile:168: /doc/Makefile: No such file or directory Makefile:169: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. Both throws the same erros. Anyone knows how to install FFMPEG on Openshift or how to solve this error ?
|
linux, ffmpeg, centos, openshift, redhat
| 1
| 869
| 1
|
https://stackoverflow.com/questions/38556391/how-to-install-ffmpeg-in-openshift
|
38,493,063
|
Install perl module Net:SSH2 on redhat/centos 7
|
As the title says I am trying to install the perl module perl-Net-SSH2. I have tried via yum but get an error that no package is available. yum install perl-Net-SSH2 I have tried by downloading an rpm file but the only one I can find is for el6 and it complains about the version of perl yum localinstall perl-Net-SSH2-0.45-4.el6.x86_64.rpm Requires: perl(:MODULE_COMPAT_5.10.1) I have tried downloading the source code but get told "Unable to find a working version of library ssh2 in the following directories" even though it is installed. (via yum install libssh2 libssh2-devel) I have tried via cpan but get the same error "Unable to find a working version of library ssh2 in the following directories" Any ideas? Google is very sketchy on this and only
|
Install perl module Net:SSH2 on redhat/centos 7 As the title says I am trying to install the perl module perl-Net-SSH2. I have tried via yum but get an error that no package is available. yum install perl-Net-SSH2 I have tried by downloading an rpm file but the only one I can find is for el6 and it complains about the version of perl yum localinstall perl-Net-SSH2-0.45-4.el6.x86_64.rpm Requires: perl(:MODULE_COMPAT_5.10.1) I have tried downloading the source code but get told "Unable to find a working version of library ssh2 in the following directories" even though it is installed. (via yum install libssh2 libssh2-devel) I have tried via cpan but get the same error "Unable to find a working version of library ssh2 in the following directories" Any ideas? Google is very sketchy on this and only
|
perl, redhat, libssh2
| 1
| 8,362
| 2
|
https://stackoverflow.com/questions/38493063/install-perl-module-netssh2-on-redhat-centos-7
|
36,416,963
|
Cron filename with date is passing Y_m_d not actual date
|
Using cron to backup mysql to a folder everyday. So tried to schedule cron with below code in linux server. related post 0 0 * * * <username> mysqldump -u<mysql username> -p<mysql password> <database name> > /home/<username>/Db_BackUp/expense_$( date +"\℅Y_\℅m_\℅d" ).sql above cron is working but generated file name is like expense_\.Y_\.m_\.d.sql I need cron to create filename as expense_2016_04_05.sql how to do this in cron? related answer from SO Post addition info about cron restart SO Post
|
Cron filename with date is passing Y_m_d not actual date Using cron to backup mysql to a folder everyday. So tried to schedule cron with below code in linux server. related post 0 0 * * * <username> mysqldump -u<mysql username> -p<mysql password> <database name> > /home/<username>/Db_BackUp/expense_$( date +"\℅Y_\℅m_\℅d" ).sql above cron is working but generated file name is like expense_\.Y_\.m_\.d.sql I need cron to create filename as expense_2016_04_05.sql how to do this in cron? related answer from SO Post addition info about cron restart SO Post
|
mysql, linux, cron, redhat
| 1
| 1,583
| 1
|
https://stackoverflow.com/questions/36416963/cron-filename-with-date-is-passing-y-m-d-not-actual-date
|
35,403,463
|
How to install KDevelop 5 on Red Hat 7
|
I'd like to see how KDevelop 5 works. I have a RedHat 7 machine where I am a regular user (not root) and try to build KDevelop from sources. I've looked at the list of required software and found that I need kdelibs-devel as one of dependencies. Unfortunately, I cannot find such a packages. There are too many small bundles on the KDE site and nothing named kdelibs-devel . Can anybody advise? Is there a simpler way to build KDevelop5? Regards, Michael
|
How to install KDevelop 5 on Red Hat 7 I'd like to see how KDevelop 5 works. I have a RedHat 7 machine where I am a regular user (not root) and try to build KDevelop from sources. I've looked at the list of required software and found that I need kdelibs-devel as one of dependencies. Unfortunately, I cannot find such a packages. There are too many small bundles on the KDE site and nothing named kdelibs-devel . Can anybody advise? Is there a simpler way to build KDevelop5? Regards, Michael
|
linux, redhat, kdevelop
| 1
| 1,348
| 1
|
https://stackoverflow.com/questions/35403463/how-to-install-kdevelop-5-on-red-hat-7
|
35,279,698
|
rpmbuild error file not found even though files are in the path
|
i did the following but gotten error when running rpmbuild Files are there in path Any help or hint are appreciated Thanks rpmbuild -vv --buildroot $PWD/root --target x86_64 -bb bin-show.spec Building target platforms: x86_64 Building for target x86_64 Processing files: helloworld-1.0-1.x86_64 error: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc/testpackage.conf RPM build errors: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc/testpackage.conf where bin-show.spec # # Hello World Spec File # Summary: Hello world! Name: helloworld Version: 1.0 Release: 1 License: Proprietary Group: Applications/Utilities %description This is my first RPM test package! %files /etc/testpackage.conf and the files structure pwd /nobackup/username/prod/packaging/redhat/bin-show find . -name \* ./bin-show.spec ./root ./root/etc ./root/etc/testpackage.conf
|
rpmbuild error file not found even though files are in the path i did the following but gotten error when running rpmbuild Files are there in path Any help or hint are appreciated Thanks rpmbuild -vv --buildroot $PWD/root --target x86_64 -bb bin-show.spec Building target platforms: x86_64 Building for target x86_64 Processing files: helloworld-1.0-1.x86_64 error: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc/testpackage.conf RPM build errors: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc/testpackage.conf where bin-show.spec # # Hello World Spec File # Summary: Hello world! Name: helloworld Version: 1.0 Release: 1 License: Proprietary Group: Applications/Utilities %description This is my first RPM test package! %files /etc/testpackage.conf and the files structure pwd /nobackup/username/prod/packaging/redhat/bin-show find . -name \* ./bin-show.spec ./root ./root/etc ./root/etc/testpackage.conf
|
linux, build, redhat, rpm, rpmbuild
| 1
| 17,464
| 2
|
https://stackoverflow.com/questions/35279698/rpmbuild-error-file-not-found-even-though-files-are-in-the-path
|
28,787,559
|
Debug information file conventions for Red Hat/Fedora?
|
According to lothar's answer at How to generate gcc debug symbol outside the build target , I can create a two part executable - the stripped executable and the debug information file. After creating the stripped executable and the debug information file, I install the executable as normal (with make install ). But I'm not sure what to do with the debug information file for Red Hat/Fedora. I have two questions related to debugging the executable with GDB or LLDB (if debugging is needed): What is the name of the debug information file on Red Hat/Fedora? Is there a convention to follow so the debugger associates them with the executable automatically? Where do I place the the debug information file on Red Hat/Fedora? What is the location so the debugger finds them when debugging the executable? Here's a related question for a different platform: Debug information file conventions for Debian/Ubuntu? It would also be helpful to know the same for OS X since I work on it on occasion.
|
Debug information file conventions for Red Hat/Fedora? According to lothar's answer at How to generate gcc debug symbol outside the build target , I can create a two part executable - the stripped executable and the debug information file. After creating the stripped executable and the debug information file, I install the executable as normal (with make install ). But I'm not sure what to do with the debug information file for Red Hat/Fedora. I have two questions related to debugging the executable with GDB or LLDB (if debugging is needed): What is the name of the debug information file on Red Hat/Fedora? Is there a convention to follow so the debugger associates them with the executable automatically? Where do I place the the debug information file on Red Hat/Fedora? What is the location so the debugger finds them when debugging the executable? Here's a related question for a different platform: Debug information file conventions for Debian/Ubuntu? It would also be helpful to know the same for OS X since I work on it on occasion.
|
linux, debugging, gdb, redhat, lldb
| 1
| 237
| 1
|
https://stackoverflow.com/questions/28787559/debug-information-file-conventions-for-red-hat-fedora
|
28,555,601
|
Creating RPM from directory of files
|
I just want a simple way to create an RPM from a directory full of files. I can't seem to find any simple way of doing this online? I know that tools such as fpm exist for doing this, but I'd like to understand the RPM build process a little so would rather not use that. The closest I've found is: [URL] but I will be installing 100's of files - I don't really want to write an install command for each of them. Any pointers appreciated.
|
Creating RPM from directory of files I just want a simple way to create an RPM from a directory full of files. I can't seem to find any simple way of doing this online? I know that tools such as fpm exist for doing this, but I'd like to understand the RPM build process a little so would rather not use that. The closest I've found is: [URL] but I will be installing 100's of files - I don't really want to write an install command for each of them. Any pointers appreciated.
|
centos, redhat, rpm, rpmbuild
| 1
| 2,786
| 2
|
https://stackoverflow.com/questions/28555601/creating-rpm-from-directory-of-files
|
27,249,561
|
Change timezone of openshift DIY application
|
I have created the DIY application in the openshift. Now I want to change the default timezone of my application server.I tried some normal linux methods to do so but could not able to do so, due to root permission problem.Please tell me how can I do this. Thanks, Vinay
|
Change timezone of openshift DIY application I have created the DIY application in the openshift. Now I want to change the default timezone of my application server.I tried some normal linux methods to do so but could not able to do so, due to root permission problem.Please tell me how can I do this. Thanks, Vinay
|
timezone, openshift, redhat
| 1
| 4,358
| 2
|
https://stackoverflow.com/questions/27249561/change-timezone-of-openshift-diy-application
|
27,115,526
|
how to get python 2.7 into the system path on Redhat 6.5 Linux
|
I have installed (or so I think) python 2.7.5. When I type "Python --version" I get python2.7.5 I've narrowed this down to: When I run "python" in a terminal in my /Home/UsrName/ directory it is version 2.7.5 However when I run "python" in a terminal in /Home/UserName/Downloads/Ipython directory I get 2.6.6 I went into the Ipython folder to run the Ipython Setup file. I think I need to add python27 to a system path so that when I am inside the /Home/UserName/Downloads/Ipython directory and run the install file Ipython knows I am using a required version of python. I am not sure how to add python27 to the system on redhat linux 6.5 (Also I am not even sure that this will fix it).
|
how to get python 2.7 into the system path on Redhat 6.5 Linux I have installed (or so I think) python 2.7.5. When I type "Python --version" I get python2.7.5 I've narrowed this down to: When I run "python" in a terminal in my /Home/UsrName/ directory it is version 2.7.5 However when I run "python" in a terminal in /Home/UserName/Downloads/Ipython directory I get 2.6.6 I went into the Ipython folder to run the Ipython Setup file. I think I need to add python27 to a system path so that when I am inside the /Home/UserName/Downloads/Ipython directory and run the install file Ipython knows I am using a required version of python. I am not sure how to add python27 to the system on redhat linux 6.5 (Also I am not even sure that this will fix it).
|
python, linux, ipython, redhat
| 1
| 18,853
| 4
|
https://stackoverflow.com/questions/27115526/how-to-get-python-2-7-into-the-system-path-on-redhat-6-5-linux
|
21,442,222
|
Git not using SSH when doing 'git clone'
|
I'm using BitBucket and SSH in RedHat. Since I'm behind a corporate firewall, I'm using corkscrew to use our proxy and login. When I do: ssh -T bitbucket.org Everything works and I get the Logged in as username. You can use git or hg to connect to Bitbucket. Shell access is disabled. But when I try to clone from my repo: git clone git@bitbucket.org:myUser/myRepo.git I get: ssh: Could not resolve hostname bitbucket.org: Name or service not known fatal: The remote end hung up unexpectedly The repo is set to SSH and I can clone from my Windows machine, using the exact same settings with Git Bash. What am I missing? Update 1: As was pointed out below, git clone is not using my SSH configs at all. I can run ssh directly and it works, but git clone fails to even connect to the server. Why would git not use SSH?
|
Git not using SSH when doing 'git clone' I'm using BitBucket and SSH in RedHat. Since I'm behind a corporate firewall, I'm using corkscrew to use our proxy and login. When I do: ssh -T bitbucket.org Everything works and I get the Logged in as username. You can use git or hg to connect to Bitbucket. Shell access is disabled. But when I try to clone from my repo: git clone git@bitbucket.org:myUser/myRepo.git I get: ssh: Could not resolve hostname bitbucket.org: Name or service not known fatal: The remote end hung up unexpectedly The repo is set to SSH and I can clone from my Windows machine, using the exact same settings with Git Bash. What am I missing? Update 1: As was pointed out below, git clone is not using my SSH configs at all. I can run ssh directly and it works, but git clone fails to even connect to the server. Why would git not use SSH?
|
git, bitbucket, redhat
| 1
| 2,239
| 2
|
https://stackoverflow.com/questions/21442222/git-not-using-ssh-when-doing-git-clone
|
15,397,024
|
Performance differences between python from package and python compiled from source
|
I would like to know if there are any documented performance differences between a Python interpreter that I can install from an rpm (or using yum) and a Python interpreter compiled from sources (with a priori well set flags for compilations). I am using a Redhat 6.3 machine as Django/Apache/Mod_WSGI production server. I have already properly compiled everything in different setups and in different orders. However, I usually keep the build-dev dependencies on such machine. For some various ego-related (and more or less practical) reasons, I would like to use Python-2.7.3. By default, Redhat comes with Python-2.6.6. I think I could go with it but it would hurt me somehow (I would have to drop and find a replacement for a few libraries and my ego). However, besides my ego and dependencies, I would like to know what would be the impact in terms of performance for a Django server.
|
Performance differences between python from package and python compiled from source I would like to know if there are any documented performance differences between a Python interpreter that I can install from an rpm (or using yum) and a Python interpreter compiled from sources (with a priori well set flags for compilations). I am using a Redhat 6.3 machine as Django/Apache/Mod_WSGI production server. I have already properly compiled everything in different setups and in different orders. However, I usually keep the build-dev dependencies on such machine. For some various ego-related (and more or less practical) reasons, I would like to use Python-2.7.3. By default, Redhat comes with Python-2.6.6. I think I could go with it but it would hurt me somehow (I would have to drop and find a replacement for a few libraries and my ego). However, besides my ego and dependencies, I would like to know what would be the impact in terms of performance for a Django server.
|
python, django, performance, apache, redhat
| 1
| 220
| 1
|
https://stackoverflow.com/questions/15397024/performance-differences-between-python-from-package-and-python-compiled-from-sou
|
15,232,265
|
SSH across all machines in network, how?
|
I guess this might be an elementary Linux issue, but I'm having a bit of trouble setting up a singular SSH key for a farm of machines that I'm managing. In doing research into the matter, most of the tutorials I've seen allow you to SSH from the machine that originally generated the key into other machines in which you have placed the same key. But I would like the ability to SSH from any machine in my farm to any other machine. Is there an easy way to do this? or am I stuck with creating key pairs between all of the machines? We are in the process of doing some scripting work, and it is vital that we have SSH access between all of the machines.
|
SSH across all machines in network, how? I guess this might be an elementary Linux issue, but I'm having a bit of trouble setting up a singular SSH key for a farm of machines that I'm managing. In doing research into the matter, most of the tutorials I've seen allow you to SSH from the machine that originally generated the key into other machines in which you have placed the same key. But I would like the ability to SSH from any machine in my farm to any other machine. Is there an easy way to do this? or am I stuck with creating key pairs between all of the machines? We are in the process of doing some scripting work, and it is vital that we have SSH access between all of the machines.
|
linux, network-programming, ssh, centos, redhat
| 1
| 405
| 4
|
https://stackoverflow.com/questions/15232265/ssh-across-all-machines-in-network-how
|
14,631,202
|
tomcat 7 startup error on rhel 5.5
|
i'm trying to set up tomcat 7.0.35 on red hat 5.5. When i try to start tomcat i have this error in catalina.out WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not found java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found <<No stacktrace available>> WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler, <<No stacktrace available>> Exception during runtime initialization java.lang.ExceptionInInitializerError <<No stacktrace available>> Caused by: java.lang.NullPointerException <<No stacktrace available>> I'm using JDK 1.7.0_01 and i set up the JAVA_HOME and PATH I've the same error with tomcat 6 Can someone help me??
|
tomcat 7 startup error on rhel 5.5 i'm trying to set up tomcat 7.0.35 on red hat 5.5. When i try to start tomcat i have this error in catalina.out WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not found java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found <<No stacktrace available>> WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler, <<No stacktrace available>> Exception during runtime initialization java.lang.ExceptionInInitializerError <<No stacktrace available>> Caused by: java.lang.NullPointerException <<No stacktrace available>> I'm using JDK 1.7.0_01 and i set up the JAVA_HOME and PATH I've the same error with tomcat 6 Can someone help me??
|
linux, tomcat, redhat
| 1
| 7,018
| 3
|
https://stackoverflow.com/questions/14631202/tomcat-7-startup-error-on-rhel-5-5
|
9,845,089
|
Linux how to install mdump msend
|
Which Linux package has mdump / msend utility? I am running on Redhad Enterprise 6. Thanks.
|
Linux how to install mdump msend Which Linux package has mdump / msend utility? I am running on Redhad Enterprise 6. Thanks.
|
linux, redhat
| 1
| 7,882
| 3
|
https://stackoverflow.com/questions/9845089/linux-how-to-install-mdump-msend
|
9,249,747
|
I can't update software using yum on CentOS
|
When I use the command yum update to update the software on CentOS, it gives the following error and not sure how to fix it: Error: Missing Dependency: php-common = 5.2.4-el5.centos is needed by package php-mhash Error: Missing Dependency: libnss3.so(NSS_3.12) is needed by package libcurl Error: Missing Dependency: libnssutil3.so is needed by package libcurl Any suggestion?
|
I can't update software using yum on CentOS When I use the command yum update to update the software on CentOS, it gives the following error and not sure how to fix it: Error: Missing Dependency: php-common = 5.2.4-el5.centos is needed by package php-mhash Error: Missing Dependency: libnss3.so(NSS_3.12) is needed by package libcurl Error: Missing Dependency: libnssutil3.so is needed by package libcurl Any suggestion?
|
centos, redhat, yum
| 1
| 7,123
| 1
|
https://stackoverflow.com/questions/9249747/i-cant-update-software-using-yum-on-centos
|
7,022,990
|
Unzipping a file from C++ on Redhat: alternatives to system()
|
I need to unzip a file while running a C++ program (as described in Waiting for unzip to finish before carrying on C++ code on a RedHat machine ) To do this I currently do something like this: system("unzip /usr/bin/File/ZippedFile.gz -d /usr/bin/File/) Which unzips "/usr/bin/File/ZippedFile.gz" to "/usr/bin/File/ZippedFile" with no problems. This works fine. However I have noticed that many people seem to say that using system() is taboo. People don't seem to like it as due to security and system resources (as discussed here: [URL] ). But as I want the program to wait until the unzip is complete, is there a viable alternative?
|
Unzipping a file from C++ on Redhat: alternatives to system() I need to unzip a file while running a C++ program (as described in Waiting for unzip to finish before carrying on C++ code on a RedHat machine ) To do this I currently do something like this: system("unzip /usr/bin/File/ZippedFile.gz -d /usr/bin/File/) Which unzips "/usr/bin/File/ZippedFile.gz" to "/usr/bin/File/ZippedFile" with no problems. This works fine. However I have noticed that many people seem to say that using system() is taboo. People don't seem to like it as due to security and system resources (as discussed here: [URL] ). But as I want the program to wait until the unzip is complete, is there a viable alternative?
|
c++, zip, redhat, unzip
| 1
| 1,771
| 2
|
https://stackoverflow.com/questions/7022990/unzipping-a-file-from-c-on-redhat-alternatives-to-system
|
5,526,983
|
Why is PHP still displaying errors?
|
Recently upgrading to PHP 5.3 has resulted in a slew of depreciation errors being shown on my pages. In php.ini I have display_errors off and error_reporting = E_ALL ^ E_DEPRECATED, but the errors still show. Ideas?
|
Why is PHP still displaying errors? Recently upgrading to PHP 5.3 has resulted in a slew of depreciation errors being shown on my pages. In php.ini I have display_errors off and error_reporting = E_ALL ^ E_DEPRECATED, but the errors still show. Ideas?
|
apache, php-5.3, redhat
| 1
| 2,510
| 3
|
https://stackoverflow.com/questions/5526983/why-is-php-still-displaying-errors
|
4,130,312
|
How many threads can a Java VM support in Linux?
|
I wrote Thread pool class referring [URL] Environment: Windows7 4 cp Executed my program with 70,000 Thread in Windows 7, under JDK 1.5 it went through successfully. Not used vm arguments. The same Code i tried to execute with 5,000 Thread in Linux enterprise edition which is under Virtual Box with 4GB base memory. with vm arguments -xms512m -xmx1024m. It executes till 2156 threads and throws an exception Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at testthreadpool.ThreadPool.(ThreadPool.java:38) at testthreadpool.TestThreadPool.main(TestThreadPool.java:16) But the same code run perfectly in windows7. May i know why this error occurs. Does this java code need 1GB memory to run Just 5,000 Threads?... My actual requirement is to hold a ThreadPool with 10,000 Workthread.
|
How many threads can a Java VM support in Linux? I wrote Thread pool class referring [URL] Environment: Windows7 4 cp Executed my program with 70,000 Thread in Windows 7, under JDK 1.5 it went through successfully. Not used vm arguments. The same Code i tried to execute with 5,000 Thread in Linux enterprise edition which is under Virtual Box with 4GB base memory. with vm arguments -xms512m -xmx1024m. It executes till 2156 threads and throws an exception Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at testthreadpool.ThreadPool.(ThreadPool.java:38) at testthreadpool.TestThreadPool.main(TestThreadPool.java:16) But the same code run perfectly in windows7. May i know why this error occurs. Does this java code need 1GB memory to run Just 5,000 Threads?... My actual requirement is to hold a ThreadPool with 10,000 Workthread.
|
java, linux, multithreading, threadpool, redhat
| 1
| 5,675
| 4
|
https://stackoverflow.com/questions/4130312/how-many-threads-can-a-java-vm-support-in-linux
|
78,818,663
|
What is the meaning of versions of artifacts in the RedHat Maven repository?
|
The RedHat Maven repo has binaries for many popular projects which are also in Maven Central. However, the versions don't exactly match, and in many cases there are multiple binaries in the RH repo corresponding to a single artifact in MavenCentral. For example, consider commons-io [URL] . There are two versions that seem to correspond to the (Maven Central) version 2.11.0 -- 2.11.0.redhat-00001 and 2.11.0.redhat-00002. Sometimes the sources (distributed in -sources.jar files in the respective folder for each version) between those don't match, and it is unclear whether those sources / builds correspond to any release tag in some GitHub repo. I try to better understand what this means, and what the best choice here is when declaring project dependencies. Thanks
|
What is the meaning of versions of artifacts in the RedHat Maven repository? The RedHat Maven repo has binaries for many popular projects which are also in Maven Central. However, the versions don't exactly match, and in many cases there are multiple binaries in the RH repo corresponding to a single artifact in MavenCentral. For example, consider commons-io [URL] . There are two versions that seem to correspond to the (Maven Central) version 2.11.0 -- 2.11.0.redhat-00001 and 2.11.0.redhat-00002. Sometimes the sources (distributed in -sources.jar files in the respective folder for each version) between those don't match, and it is unclear whether those sources / builds correspond to any release tag in some GitHub repo. I try to better understand what this means, and what the best choice here is when declaring project dependencies. Thanks
|
maven, jboss, redhat, maven-central, binary-reproducibility
| 1
| 163
| 1
|
https://stackoverflow.com/questions/78818663/what-is-the-meaning-of-versions-of-artifacts-in-the-redhat-maven-repository
|
78,662,153
|
Apache Cassandra fails to start - SIGSEGV error when using non-default tmp directory
|
I'm deploying Apache Cassandra on a managed RHEL8 instance. I can install and start Cassandra successfully if I remount /tmp without the noexec flag. Overnight the noexec flag is reinstated by company security policies. If the noexec flag is present, Cassandra fails to start with the error ERROR [main] 2024-06-24 10:19:18,156 NativeLibraryLinux.java:65 - Failed to link the C library against JNA. Native methods will be unavailable. java.lang.UnsatisfiedLinkError: /tmp/jna8661137960014770832.tmp: /tmp/jna8661137960014770832.tmp: failed to map segment from shared object The solution should be to change the tmp directory for Cassandra. I've set the following in cassandra-env.sh: JVM_OPTS="$JVM_OPTS -Djna.tmpdir=/var/lib/cassandra/tmp" JVM_OPTS="$JVM_OPTS -Djava.io.tmpdir=/var/lib/cassandra/tmp" I get a different error, earlier in the Cassandra startup now: # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f80d11e5152, pid=2277605, tid=2277607 # # JRE version: OpenJDK Runtime Environment (Red_Hat-11.0.23.0.9-2) (11.0.23+9) (build 11.0.23+9-LTS) # Java VM: OpenJDK 64-Bit Server VM (Red_Hat-11.0.23.0.9-2) (11.0.23+9-LTS, mixed mode, sharing, tiered, compressed oops, concurrent mark sweep gc, linux-amd64) # Problematic frame: # C [jna10993927332404549884.tmp+0x13152] ffi_prep_closure_loc+0x32 One can see above that the fatal error occurred in the jna library. Inspecting the error report file, it looks like linking errors: Internal exceptions (20 events): Event: 2.449 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x00000006082a84f0}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(java.lang.Object, java.lang.Object)'> (0x00000006082a84f0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.456 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060831f288}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object)'> (0x000000060831f288) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.485 Thread 0x00007f810002e050 Exception <a 'java/lang/reflect/InvocationTargetException'{0x00000006085bb768}> (0x00000006085bb768) thrown at [src/hotspot/share/runtime/reflection.cpp, line 1245] Event: 2.487 Thread 0x00007f810002e050 Exception <a 'java/lang/reflect/InvocationTargetException'{0x00000006085d34f8}> (0x00000006085d34f8) thrown at [src/hotspot/share/runtime/reflection.cpp, line 1245] Event: 2.545 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x00000006087476a0}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)'> (0x00000006087476a0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.546 Thread 0x00007f810002e050 Exception <a 'java/lang/IncompatibleClassChangeError'{0x00000006087504d0}: Found class java.lang.Object, but interface was expected> (0x00000006087504d0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 839] Event: 2.546 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x0000000608755740}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object)'> (0x0000000608755740) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.717 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x0000000609606ba8}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)'> (0x0000000609606ba8) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.726 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x00000006096ee610}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object, java.lang.Object)'> (0x00000006096ee610) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.817 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060b8ed080}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(java.lang.Object, java.lang.Object)'> (0x000000060b8ed080) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.817 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060b8f57e0}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object)'> (0x000000060b8f57e0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.817 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060b8f81a0}: 'void java.lang.invoke.Invokers$Holder.invoke_MT(java.lang.Object, java.lang.Object)'> (0x000000060b8f81a0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.839 Thread 0x00007f810002e050 Exception <a 'java/lang/ClassNotFoundException'{0x000000060b968f90}: javax/management/remote/rmi/RMIServerImpl_Skel> (0x000000060b968f90) thrown at [src/hotspot/share/classfile/systemDictionary.cpp, line 230] Event: 2.855 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060ba07d50}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object, int, long)'> (0x000000060ba07d50) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.888 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bbf30c0}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object, long, java.lang.Object)'> (0x000000060bbf30c0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.889 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bbfefc0}: 'java.lang.Object java.lang.invoke.Invokers$Holder.linkToTargetMethod(java.lang.Object, long, java.lang.Object)'> (0x000000060bbfefc0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.890 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bc05498}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object, java.lang.Object, java.lang.Object, int)'> (0x000000060bc05498) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.890 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bc08db0}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, int)'> (0x000000060bc08db0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.890 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bc0be18}: 'java.lang.Object java.lang.invoke.Invokers$Holder.linkToTargetMethod(java.lang.Object, java.lang.Object, int, java.lang.Object)'> (0x000000060bc0be18) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.895 Thread 0x00007f810002e050 Implicit null exception at 0x00007f80f02ad984 to 0x00007f80f02addec I'm using the bundled jna JAR with Apache Cassandra 4.1.5-1 (jna JAR: jna-5.9.0.jar). I've tried uninstalling and reinstalling both Cassandra and Java. The Java version installed is the determined dependency by yum: java-1.8.0-openjdk-headless.x86_64 1:1.8.0.412.b08-2.el8 @rhel-8-for-x86_64-appstream-rpms
|
Apache Cassandra fails to start - SIGSEGV error when using non-default tmp directory I'm deploying Apache Cassandra on a managed RHEL8 instance. I can install and start Cassandra successfully if I remount /tmp without the noexec flag. Overnight the noexec flag is reinstated by company security policies. If the noexec flag is present, Cassandra fails to start with the error ERROR [main] 2024-06-24 10:19:18,156 NativeLibraryLinux.java:65 - Failed to link the C library against JNA. Native methods will be unavailable. java.lang.UnsatisfiedLinkError: /tmp/jna8661137960014770832.tmp: /tmp/jna8661137960014770832.tmp: failed to map segment from shared object The solution should be to change the tmp directory for Cassandra. I've set the following in cassandra-env.sh: JVM_OPTS="$JVM_OPTS -Djna.tmpdir=/var/lib/cassandra/tmp" JVM_OPTS="$JVM_OPTS -Djava.io.tmpdir=/var/lib/cassandra/tmp" I get a different error, earlier in the Cassandra startup now: # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f80d11e5152, pid=2277605, tid=2277607 # # JRE version: OpenJDK Runtime Environment (Red_Hat-11.0.23.0.9-2) (11.0.23+9) (build 11.0.23+9-LTS) # Java VM: OpenJDK 64-Bit Server VM (Red_Hat-11.0.23.0.9-2) (11.0.23+9-LTS, mixed mode, sharing, tiered, compressed oops, concurrent mark sweep gc, linux-amd64) # Problematic frame: # C [jna10993927332404549884.tmp+0x13152] ffi_prep_closure_loc+0x32 One can see above that the fatal error occurred in the jna library. Inspecting the error report file, it looks like linking errors: Internal exceptions (20 events): Event: 2.449 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x00000006082a84f0}: 'long java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(java.lang.Object, java.lang.Object)'> (0x00000006082a84f0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.456 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060831f288}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object)'> (0x000000060831f288) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.485 Thread 0x00007f810002e050 Exception <a 'java/lang/reflect/InvocationTargetException'{0x00000006085bb768}> (0x00000006085bb768) thrown at [src/hotspot/share/runtime/reflection.cpp, line 1245] Event: 2.487 Thread 0x00007f810002e050 Exception <a 'java/lang/reflect/InvocationTargetException'{0x00000006085d34f8}> (0x00000006085d34f8) thrown at [src/hotspot/share/runtime/reflection.cpp, line 1245] Event: 2.545 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x00000006087476a0}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)'> (0x00000006087476a0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.546 Thread 0x00007f810002e050 Exception <a 'java/lang/IncompatibleClassChangeError'{0x00000006087504d0}: Found class java.lang.Object, but interface was expected> (0x00000006087504d0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 839] Event: 2.546 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x0000000608755740}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object)'> (0x0000000608755740) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.717 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x0000000609606ba8}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)'> (0x0000000609606ba8) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.726 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x00000006096ee610}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object, java.lang.Object)'> (0x00000006096ee610) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.817 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060b8ed080}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(java.lang.Object, java.lang.Object)'> (0x000000060b8ed080) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.817 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060b8f57e0}: 'void java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object)'> (0x000000060b8f57e0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.817 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060b8f81a0}: 'void java.lang.invoke.Invokers$Holder.invoke_MT(java.lang.Object, java.lang.Object)'> (0x000000060b8f81a0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.839 Thread 0x00007f810002e050 Exception <a 'java/lang/ClassNotFoundException'{0x000000060b968f90}: javax/management/remote/rmi/RMIServerImpl_Skel> (0x000000060b968f90) thrown at [src/hotspot/share/classfile/systemDictionary.cpp, line 230] Event: 2.855 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060ba07d50}: 'int java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object, int, long)'> (0x000000060ba07d50) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.888 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bbf30c0}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeStaticInit(java.lang.Object, java.lang.Object, long, java.lang.Object)'> (0x000000060bbf30c0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.889 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bbfefc0}: 'java.lang.Object java.lang.invoke.Invokers$Holder.linkToTargetMethod(java.lang.Object, long, java.lang.Object)'> (0x000000060bbfefc0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.890 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bc05498}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.lang.Object, java.lang.Object, java.lang.Object, int)'> (0x000000060bc05498) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.890 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bc08db0}: 'java.lang.Object java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, int)'> (0x000000060bc08db0) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.890 Thread 0x00007f810002e050 Exception <a 'java/lang/NoSuchMethodError'{0x000000060bc0be18}: 'java.lang.Object java.lang.invoke.Invokers$Holder.linkToTargetMethod(java.lang.Object, java.lang.Object, int, java.lang.Object)'> (0x000000060bc0be18) thrown at [src/hotspot/share/interpreter/linkResolver.cpp, line 773] Event: 2.895 Thread 0x00007f810002e050 Implicit null exception at 0x00007f80f02ad984 to 0x00007f80f02addec I'm using the bundled jna JAR with Apache Cassandra 4.1.5-1 (jna JAR: jna-5.9.0.jar). I've tried uninstalling and reinstalling both Cassandra and Java. The Java version installed is the determined dependency by yum: java-1.8.0-openjdk-headless.x86_64 1:1.8.0.412.b08-2.el8 @rhel-8-for-x86_64-appstream-rpms
|
java-8, cassandra, redhat, jna
| 1
| 185
| 2
|
https://stackoverflow.com/questions/78662153/apache-cassandra-fails-to-start-sigsegv-error-when-using-non-default-tmp-direc
|
78,176,482
|
Differences in behavior of kill(pid, SIGINT) between Debian and Red Hat based distros
|
I'm encountering a discrepancy in the behavior of my code when using kill(pid, SIGINT) between Debian 12 and CentOS 7 in a virtual machine. Previously, this code worked as expected in Fedora 39. #include <iostream> #include <unistd.h> #include <sys/types.h> #include <signal.h> #include <cstdlib> #include <cstring> #include <sys/wait.h> using namespace std; void sigint_handler(int signal) { cout << "The child process received the SIGINT signal. Ending..." << endl; exit(EXIT_SUCCESS); } int main() { pid_t pid = fork(); if (pid < 0) { cerr << "Error creating the child process." << endl; exit(EXIT_FAILURE); } else if (pid == 0) { // Child process cout << "Child process created. PID: " << getpid() << endl; // Signal handler for SIGINT signal(SIGINT, sigint_handler); // Executing ping for 10 iterations, although parent process should stop it earlier execl("/bin/sh", "sh", "-c", "ping -c 10 google.com", NULL); } else { // Parent process cout << "parent process. PID from child: " << pid << endl; sleep(3); // Wait 3 seconds before sending the SIGINT cout << "Sending SIGINT to the child process..." << endl; if (kill(pid, SIGINT) == -1) { cerr << "Error sending SIGINT to the child process." << endl; exit(EXIT_FAILURE); } int status; waitpid(pid, &status, 0); // Wait to the child process to end if (WIFEXITED(status)) { cout << "Child process end with status: " << WEXITSTATUS(status) << endl; } else { cout << "Child process end in an incorrect way" << endl; } } return 0; } After migrating to Debian 12, the code snippet above doesn't behave as expected. Instead of stopping the ping process after sending the SIGINT signal, it continues executing all 10 iterations. However, when running the same code in a CentOS VM, it behaves correctly, stopping after a few iterations. Why is this happening? Thanks in advance. Additional information: g++ version in Debian 12: g++ (Debian 12.2.0-14) 12.2.0 g++ version in CentOS 7 VM: g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Edit 1: I have also tried with system("ping -c 10 google.com") instead of execl() without success. Same with sigaction() and it doesn't work. In addition to that, the problem isn't related to the different implementations of ping in Debian and Red Hat based distros, because I have tried with my original code and it doesn't stop. In my original code, instead of ping , I call a program.o that has a infinite loop that should be stopped with Ctrl+C . In Fedora and CentOS my program runs perfectly while in Debian it doesn't.
|
Differences in behavior of kill(pid, SIGINT) between Debian and Red Hat based distros I'm encountering a discrepancy in the behavior of my code when using kill(pid, SIGINT) between Debian 12 and CentOS 7 in a virtual machine. Previously, this code worked as expected in Fedora 39. #include <iostream> #include <unistd.h> #include <sys/types.h> #include <signal.h> #include <cstdlib> #include <cstring> #include <sys/wait.h> using namespace std; void sigint_handler(int signal) { cout << "The child process received the SIGINT signal. Ending..." << endl; exit(EXIT_SUCCESS); } int main() { pid_t pid = fork(); if (pid < 0) { cerr << "Error creating the child process." << endl; exit(EXIT_FAILURE); } else if (pid == 0) { // Child process cout << "Child process created. PID: " << getpid() << endl; // Signal handler for SIGINT signal(SIGINT, sigint_handler); // Executing ping for 10 iterations, although parent process should stop it earlier execl("/bin/sh", "sh", "-c", "ping -c 10 google.com", NULL); } else { // Parent process cout << "parent process. PID from child: " << pid << endl; sleep(3); // Wait 3 seconds before sending the SIGINT cout << "Sending SIGINT to the child process..." << endl; if (kill(pid, SIGINT) == -1) { cerr << "Error sending SIGINT to the child process." << endl; exit(EXIT_FAILURE); } int status; waitpid(pid, &status, 0); // Wait to the child process to end if (WIFEXITED(status)) { cout << "Child process end with status: " << WEXITSTATUS(status) << endl; } else { cout << "Child process end in an incorrect way" << endl; } } return 0; } After migrating to Debian 12, the code snippet above doesn't behave as expected. Instead of stopping the ping process after sending the SIGINT signal, it continues executing all 10 iterations. However, when running the same code in a CentOS VM, it behaves correctly, stopping after a few iterations. Why is this happening? Thanks in advance. Additional information: g++ version in Debian 12: g++ (Debian 12.2.0-14) 12.2.0 g++ version in CentOS 7 VM: g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Edit 1: I have also tried with system("ping -c 10 google.com") instead of execl() without success. Same with sigaction() and it doesn't work. In addition to that, the problem isn't related to the different implementations of ping in Debian and Red Hat based distros, because I have tried with my original code and it doesn't stop. In my original code, instead of ping , I call a program.o that has a infinite loop that should be stopped with Ctrl+C . In Fedora and CentOS my program runs perfectly while in Debian it doesn't.
|
c++, debian, posix, redhat, sigint
| 1
| 135
| 3
|
https://stackoverflow.com/questions/78176482/differences-in-behavior-of-killpid-sigint-between-debian-and-red-hat-based-di
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.