MySQL 5.5.28 build errors [closed] - mysql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I use mingw-w64 (ruben build) on Windows 7 64.
I need libmysqlclient.a to build libodb-mysql (http://www.codesynthesis.com/products/odb/). But in original Windows 64 mysql build there is no .a library (only mysqlclient.lib). Reimp does not work (generate a lot of files with different integer numbers in the names, but not .a library).
I am tying to build MySQL Community Server 5.5.28.
The command sequence:
cmake -G "MSYS Makefiles" .
make
I got
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.obj
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.obj
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:59:3: error: unknown type name 'CONDITION_VARIABL
E'
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:102:8: error: redefinition of 'struct timespec'
In file included from d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/pro
cess.h:12:0,
from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_global.h:128,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:16:
d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/sys/types.h:89:8: note: o
riginally defined here
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:715:5: error: unknown type name 'SRWLOCK'
make[2]: *** [strings/CMakeFiles/strings.dir/ctype-simple.c.obj] Error 1
make[1]: *** [strings/CMakeFiles/strings.dir/all] Error 2
mak
e: *** [all] Error 2
Do you have any ideas?

Looks like a compiler issue. Specifically, it is not recognizing some tokens, due to your compilation flags and definitions.
CONDITION_VARIABLE in windows; wont compile

Related

MySQL won't install on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I'm trying to install MySQL for my Ubuntu VM 14.04 X86 64
I'm getting some error messages:
150424 11:40:15 [Warning] Using unique option prefix key_buffer
instead of key_buffer_size is deprecated and will be removed in a
future release. Please use the full name instead. 150424 11:40:15
[Note] /usr/sbin/mysqld (mysqld 5.5.43-0ubuntu0.14.04.1) starting as
process 4724 ... start: Job failed to start invoke-rc.d: initscript
mysql, action "start" failed. dpkg: error processing package
mysql-server-5.5 (--configure): subprocess installed post-installation
script returned error exit status 1 dpkg: dependency problems prevent
configuration of mysql-server: mysql-server depends on
mysql-server-5.5; however: Package mysql-server-5.5 is not configured
yet. dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured Setting up mysql-client
(5.5.43-0ubuntu0.14.04.1) ... Errors were encountered while
processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg
returned an error code (1) W: Operation was interrupted before it
could finish
I have tried reinstalling and cleaning it up after and stuff...
It still gives the same error.
Anyone that have a clue?

Too many initializers for symbol

I am trying to run the MIT project CryptoDB. I have downloaded it and I have followed the instructions to compile as it is explained in the included instructions, for mysql-proxy and mysql version 5.5.14. I am using a RedHat Enterprise 6 server.
When I get to the point of running the make command i get this error:
Building CXX object sql/CMakeFiles/sql.dir/sql_lex.cc.o
In file included from /soft/mysql-5.5.14/build/sql/lex_hash.h:25,
from /soft/mysql-5.5.14/sql/sql_lex.cc:113:
/soft/mysql-5.5.14/sql/lex.h:193: error: ‘ENC_SYM’ was not declared in this scope
/soft/mysql-5.5.14/sql/lex.h:623: error: too many initializers for ‘SYMBOL’
make[2]: *** [sql/CMakeFiles/sql.dir/sql_lex.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
I am quite lost as I cannot find if there is a missing library or any kind of incompatbility on what I am using. Any ideas?
Even i have not finished installation now I now that the problem comes from not having the last version of the code. By getting it with the following command:
git clone -b public git://g.csail.mit.edu/cryptdb
I get to execute an instalation script in ruby that performs the work.
The script is not writen especifically for Redhat, so I am having some work adapting some commands (apt-get => yum).

error installing octcdf-1.1.5

I Have in my Mac:
Octave-3.4.0
Gnuplot 4.2 - that I had to install because I had problems plotting - it wouldn't plot at all.
I need to load a netcdf file, the error that came was:
nc = netcdf('/users/matheuscortezi/Desktop/Pcse005/ocean_avg.nc', 'r')
error: `netcdf' undefined near line 9 column 6
So I think I don't have the netcdf comand installed, and tried installing by typing this on octave:
pkg install -global -forge octcdf
The error message that I receive from that is:
configure: error: in `/var/tmp/oct-t8XcYD/octcdf/src':
configure: error: C compiler cannot create executables
See `config.log' for more details.
the configure script returned the following error: checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... no
error: called from `pkg>configure_make' in file /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m near line 1325, column 9
error: called from:
error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 783, column 5
error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/pkg/pkg.m at line 354, column 9
I haven't the faintest idea about what I should do. How can I solve this problem with either:
fixing this error, or
installing a netcdf "comand pack" (i don't know the name for that) so I can use netcdf() as in the example given.
Hope I was clear enough.
It seems to me that you installed Octave from the Mac OSX App bundle. That is not recommended at all. You should install from one of the package managers as explained on Octave's wiki. As far as I know, there are 3 options for Mac (see previous link). Just search for one that also has the netcdf package.
Anyway, if you really don't want to install it through a package manager (but seems to me you really should), seems that your problem lies on gcc (the GNU C compiler). do you have it installed at all? Some packages have code in C++ or C and are also dependent on some external libraries.
EDIT using a package manager would have also solved your problem about plotting since it would install gnuplot at same time

Need help with perl error in using DBD::mysql [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Need help with perl error in using DBD::mysql
When I run a perl script which uses DBD::mysql , I get the error message:
install_driver(mysql) failed: Can't load '/home/y/lib/perl5/site_perl/5.8/i686-linux-64int/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16: cannot open shared object file: No such file or directory at /home/y/lib/perl5/5.8/i686-linux-64int/DynaLoader.pm line 230.
at (eval 30) line 3
I am new to perl, but from what I understand it needs mysql.so and it knows the path.
/home/y/lib/perl5/site_perl/5.8/i686-linux-64int/auto/DBD/mysql/mysql.so is present.
Then why the problem?
The file that is missing is libmysqlclient.so.16. It comes with the mysqlclient package on some distributions.
Also, Make sure /etc/ld.so.conf contains /usr/local/mysql/lib/mysql and /usr/local/mysql/ . If not, add them and run ldconfig.

Ejabberd start issue. RPC Failed Node Down error [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Im trying to configure my Ejabberd to run on Ubuntu. I have managed to successfully install the Ejabberd without any problems. When I try to start my server using
ejabberdctl sid#domU-12-31-39-01-7C-F5.compute-1.internal start
I get the following error
RPC failed on the node 'ejabberd#domU-12-31-39-01-7C-F5': nodedown
Im using Ejabberd 2.0.5 and I had a few installation issues earlier where I encountered a 'Post installation script error'. However after uninstalling and re-installing a couple of times I managed to get around it. I've used the installer to do my setup. I'd appreciate any help on how to solve this issue.
My log file shows the following:
This is what the log file says
`=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:155) : pubsub init "domu-12-31-39-01-7c-f5.compute-1.internal" [{access_createnode,
pubsub_createnode},
{plugins,
["default",
"pep"]}]
=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:212) : ** tree plugin is nodetree_default
=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:216) : ** init default plugin
=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:216) : ** init pep plugin
=INFO REPORT==== 2010-02-03 07:52:45 ===
I(<0.319.0>:mod_pubsub:224) : ** terminate default plugin
=INFO REPORT==== 2010-02-03 07:52:45 ===
I(<0.319.0>:mod_pubsub:224) : ** terminate pep plugin
You will get that error if you dont 'sudo' . Use 'sudo ejabberdctl ...'