Category Archives: How to Fix

configure: error: readline library not found solution

Configure: error: readline Library not found.
Solution: Yum Install Readline-devel
The detailed process is as follows:

[root@April postgresql-9.2.24]# yum install readline-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.i686 0:6.0-4.el6 will be installed
--> Processing Dependency: ncurses-devel for package: readline-devel-6.0-4.el6.i686
--> Running transaction check
---> Package ncurses-devel.i686 0:5.7-4.20090207.el6 will be installed
--> Processing Dependency: ncurses-libs = 5.7-4.20090207.el6 for package: ncurses-devel-5.7-4.20090207.el6.i686
--> Running transaction check
---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 will be updated
---> Package ncurses-libs.i686 0:5.7-4.20090207.el6 will be an update
--> Processing Dependency: ncurses-base = 5.7-4.20090207.el6 for package: ncurses-libs-5.7-4.20090207.el6.i686
--> Running transaction check
---> Package ncurses-base.i686 0:5.7-3.20090208.el6 will be updated
---> Package ncurses-base.i686 0:5.7-4.20090207.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================
 Package                           Arch                    Version                               Repository               Size
===============================================================================================================================
Installing:
 readline-devel                    i686                    6.0-4.el6                             base                    134 k
Installing for dependencies:
 ncurses-devel                     i686                    5.7-4.20090207.el6                    base                    641 k
Updating for dependencies:
 ncurses-base                      i686                    5.7-4.20090207.el6                    base                     61 k
 ncurses-libs                      i686                    5.7-4.20090207.el6                    base                    249 k

Transaction Summary
===============================================================================================================================
Install       2 Package(s)
Upgrade       2 Package(s)

Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): ncurses-base-5.7-4.20090207.el6.i686.rpm                                                         |  61 kB     00:00     
(2/4): ncurses-devel-5.7-4.20090207.el6.i686.rpm                                                        | 641 kB     00:00     
(3/4): ncurses-libs-5.7-4.20090207.el6.i686.rpm                                                         | 249 kB     00:00     
(4/4): readline-devel-6.0-4.el6.i686.rpm                                                                | 134 kB     00:00     
-------------------------------------------------------------------------------------------------------------------------------
Total                                                                                          311 kB/s | 1.1 MB     00:03     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : ncurses-base-5.7-4.20090207.el6.i686                                                                        1/6 
  Updating   : ncurses-libs-5.7-4.20090207.el6.i686                                                                        2/6 
  Installing : ncurses-devel-5.7-4.20090207.el6.i686                                                                       3/6 
  Installing : readline-devel-6.0-4.el6.i686                                                                               4/6 
  Cleanup    : ncurses-libs-5.7-3.20090208.el6.i686                                                                        5/6 
  Cleanup    : ncurses-base-5.7-3.20090208.el6.i686                                                                        6/6 
  Verifying  : ncurses-base-5.7-4.20090207.el6.i686                                                                        1/6 
  Verifying  : ncurses-libs-5.7-4.20090207.el6.i686                                                                        2/6 
  Verifying  : readline-devel-6.0-4.el6.i686                                                                               3/6 
  Verifying  : ncurses-devel-5.7-4.20090207.el6.i686                                                                       4/6 
  Verifying  : ncurses-libs-5.7-3.20090208.el6.i686                                                                        5/6 
  Verifying  : ncurses-base-5.7-3.20090208.el6.i686                                                                        6/6 

Installed:
  readline-devel.i686 0:6.0-4.el6                                                                                              

Dependency Installed:
  ncurses-devel.i686 0:5.7-4.20090207.el6                                                                                      

Dependency Updated:
  ncurses-base.i686 0:5.7-4.20090207.el6                         ncurses-libs.i686 0:5.7-4.20090207.el6                        

Complete!

View installation results:

[root@April postgresql-9.2.24]# ls -l /usr/include/ | grep readline
drwxr-xr-x.  2 root root   4096 Apr  2 14:50 readline

 

Syntax error, insert “}” to complete ClassBody

Syntax error, insert ‘} ‘to complete ClassBody
Syntax error, insert’} ‘to complete ClassBody
I copied the content of other Java, did not check the syntax error, also did not miss}, and then delete the} and input, delete part of the code with re-copy, found that the problem can not be solved, I found a lot of tutorials on the Internet are re-typing
*** tried many times, finally found the syntax error, less}, find every {match in the code, see which one is missing.
in class a1, the main method has no corresponding}
[picture archived failure outside the chain, the source station might be hotlinking prevention mechanism, proposed to directly upload picture preserved (img – BpYsIwiG – 1573912308800) (* https://img-blog.csdnimg.cn/20191116174957829.png)]

Matlab error “Object returned error code of the xlswrite function: 0x800A03EC

The Object returned error code of “MATLAB error” xlswrite function: 0x800A03EC
(the 2013-07-27 09:43:29)

The reproduced ▼

The

tags: xlswrite it

categories: matlab

When using xlswrite in matlab to write data into Excel documents, an Error was sometimes reported:
Excel returns: Error: Object returns Error code: 0x800A03EC.

Case 1:

There are many reasons for this error: the most common is when the user writes more data to Excel than Excel can accommodate. The working interval for Excel2003 was 65,536 rows and 256 columns. In Excel2010, the working range was increased to 16,384 columns in 1,048,576 rows.

So in the event of this error,
When you try to write an Excel document first, name the document as an extension from 2007 onwards (.xlsx), not as an extension from 03 (.xls). But if the amount of data exceeds the size of Excel2010, you can only split the data into different Excel files.

Resources: Excel2010 specification

Excel specifications and limits

Situation 2:

This error also occurs if the Excel table name has a colon (:) in the sheetname. For example, use the following statement:

xlswrite(‘test.xlsx’,0, ‘Sheet1:Sheet2’, ‘A1’);

Cause of error: an invalid parameter is introduced to the fourth line “range” of Xlswrite. Xlswrite only supports the use of “A1” of Excel within a specified range.

If you do need to store data in different Sheets in Excel, you can take the form of a loop, where num2str can convert numeric types to string types.  
example:

For I = 1:3

xlswrite(‘test.xls’,1,[‘Sheet’ num2str(i)],’A1′);

end

Case 3:

The size of a single piece of data that a user can store is beyond what Excel can accept if you try
If you write a string greater than 1024 characters in an Excel cell, an error will occur. You can try that too
Name the document as an extension from 2007 onwards (.xlsx), not as a version 03 extension (.xls).

Situation 4:

This error also occurs if the size of the data field entered into the Excel cell is 0×N.

Situation 5:

This error occurs if the stored data begins with the equals sign “=”. Because the way Excel is typed in is theta =
The A1 * A2. So when you store it, it causes an error.

(PS: Situation 4 and 5 are from the network, not verified personally.)

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Resources: [MathWorks]
Why do I receive an error (error code: 0x800A03EC) when using XLSWRITE in MATLAB?

Info:Memory module [DIMM] needs attention: Single-bit warning error rate exceeded, Single-bit fai…

Why can’t 80% of code farmers be architects?> > >
Dell server hardware monitoring software OpenManager, can monitor the battery, motherboard, temperature, hard disk, and so on. See installation usage
While monitoring OpenManage(OMSA) for Dell Server installation, you may encounter the following error message: Info:Memory Module 6 [DIMM7, 2048 MB] Needs attention: single-bit warning error rate Exceeded, Single-bit Failure Error rate Exceeded. Need to shut down and replug the memory bar. Due to the need to shut down service shutdown, will affect the business. But the problem will always be reported. Everyone would be upset if they got an alarm. Memory monitoring can be shielded as follows:

check_openmanage --check storage -b dimm=all

can see that the memory and Voltage are not tested. Memory will be detected without dimm=all.
is able to block the detection of relevant hardware. Such as temperature detection and so on. Such as:

/usr/local/nagios/libexec/check_openmanage --check storage -b ctrl_fw=all/ctrl_driver=all/ctrl_stdr=all/bat_charge=all/encl=all/ps=all/fan=all/temp=all/volt=all

Please quote from
Dimensional time: http://www.ttlsa.com/html/3880.html

Reproduced in: https://my.oschina.net/766/blog/211381

Error reported in react events.js:160 throw er; // Unhandled’error’ event

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::8081
    at Object.exports._errnoException (util.js:1020:11)
    at exports._exceptionWithHostPort (util.js:1043:20)
    at Server._listen2 (net.js:1258:14)
    at listen (net.js:1294:10)
    at Server.listen (net.js:1390:5)

This problem is caused by the occupied port of 99.99%, such as the 8081 port mentioned above, so if you encounter this problem, please don’t be nervous, just find the corresponding port and close the application! How to check which application is used according to the port, this network a search a lot, here is not repeated! If you have any difficulty, please leave a message.)
Actually it’s not just react, as long as you use NPM to package, ports being occupied will report this error.

Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!

The root of the problem is mysql installed by root and started by default./mysqld Restart reports the following error;
Mysql installation directory is: /usr/local/mysql/

[root@SHB-L0120796 bin]# ./mysqld restart
2020-03-06T09:02:19.361027Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-03-06T09:02:19.361168Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2020-03-06T09:02:19.361213Z 0 [Note] ./mysqld (mysqld 5.7.27) starting as process 29670 ...
2020-03-06T09:02:19.364761Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2020-03-06T09:02:19.364806Z 0 [ERROR] Aborting

2020-03-06T09:02:19.364835Z 0 [Note] Binlog end
2020-03-06T09:02:19.367170Z 0 [Note] ./mysqld: Shutdown complete

Temporary solutions:
Root /mysqld –user=root start in the installation directory /usr/local/mysql/bin using root:./mysqld –user=root start

./mysqld --user=root start

Or try /usr/local/mysql/bin under the installation directory:

service mysqld start

Best solution: Without modifying the my.cnF file, execute the following command line

./mysqld --skip-grant-tables --skip-networking --user=root &

python reads csv file is an error _csv.Error: iterator should return strings, not bytes (did you open the file in text)

Python reads the CSV file and reports an error

import csv

with open('E:/Selenium2script/DDTModle/test.csv','rb') as f:
    readers = csv.reader(f)
    next(readers,None)
    for line in readers:
        print(line)

_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

Problem analysis: This CSV file is a text file, not a binary file.

Solution:

import csv

with open('E:/Selenium2script/DDTModle/test.csv','rt') as f:
    readers = csv.reader(f)
    next(readers,None)
    for line in readers:
        print(line)

Or we could replace rt with R.

Note: The next statement here does not read the header key value

with open(file_name,'wt',newline='') as f:

Add newline= “‘, the data written will not be blank.

[Fixed]Error executing Jupyter command ‘notebook’: [Errno ‘jupyter-notebook’ not found] 2

The problem
First install jupyter, command PIP install jupyter

(venv) D:\MLiA>pip install jupyter

Collecting jupyter
  Downloading https://files.pythonhosted.org/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2
.py3-none-any.whl
Collecting ipywidgets (from jupyter)
  Downloading https://files.pythonhosted.org/packages/34/3a/5b258ea6d584f5a8527c2295d0ebf7ffb1654e3de38d37697f88bbef6621/ipywidgets-7.4.0-
py2.py3-none-any.whl (109kB)
    100% |████████████████████████████████| 112kB 728kB/s

Then, it started jupyter , but prompted an error

(venv) D:\MLiA>jupyter notebook

Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2

The solution
Enter jupyter - notebook </ code>

(venv) D:\MLiA>jupyter-notebook

[I 15:33:17.594 NotebookApp] Writing notebook server cookie secret to C:\Users\AppData\Roaming\jupyter\runtime\notebook_cookie_secre
t
[W 15:33:18.032 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 15:33:18.032 NotebookApp] Serving notebooks from local directory: D:\MLiA
[I 15:33:18.032 NotebookApp] The Jupyter Notebook is running at:
[I 15:33:18.032 NotebookApp] http://localhost:8888/?token=58d6cbb67aba487dc5f952ebdea19a8462f2ba551cd24a21
[I 15:33:18.032 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:33:18.063 NotebookApp]

Reference data: https://stackoverflow.com/questions/42648610/error-when-executing-jupyter-notebook-no-such-file-or-directory

matlab Error Subscript indices must either be real positive integers or logicals.

Matlab errors: Subscript Indices must either be real positive integers or Logicals.Subscript index must be of positive integer type or logical type

Cause of error: in the process of accessing the matrix (including vector, two-dimensional matrix, multidimensional array, same below), the index of the subscript either starts at 0 or has a negative number. Note: The syntax of MATLAB stipulates that the index of the matrix starts from 1, which is different from the habit of programming languages such as C.

Solution: Debug the program yourself and fix subscripts that are zero or negative.

I made a mistake when I was writing the program. I should have done the transpose of the matrix, but I forgot…