I'm starting to build a new version of web application migrating to a very old php+html code to Angular Dart. I use Dart for daily work so I'm familiar with it, while I'm not familiar to Angular.
The old school website used mySql as DB to store data, so I would love to avoid a complete migration to a new DB if possible, but I'm facing a problem.
mysql1 I guess is incompatible with Angular, since when compile I get this error:
[WARNING] build_web_compilers:entrypoint on web/main.dart: Skipping compiling WHLivePortal|web/main.dart with ddc because some of its
transitive libraries have sdk dependencies that not supported on this platform:
mysql1|lib/src/buffered_socket.dart
mysql1|lib/src/buffer.dart
mysql1|lib/src/single_connection.dart
SQLJocky is incompatible with dart 2
Which path can I follow to step forward?
Related
I was wondering if it's possible to build MySQL's ODBC Connector statically.
I want to have the drivers; libmyodbc8w.so and libmyodbc8a.so as static libs (libmyodbc8w.a, libmyodbc8a.a).
Anyone ever give this a go? I tried building statically using this guide https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-source-unix.html. But I always end up getting shared objects. I'm starting to believe that it just isn't possible.
I've built unixODBC statically so far. I want to build this application without having to package dlls/sos. Only thing stopping me are the mysql drivers that you have to define in odbcinst.ini.
Here's how I'm building the connector.
cmake . -DWITH_UNIXODBC=ON -DMYSQLCLIENT_STATIC_LINKING=ON
I followed Building From Source https://github.com/primefaces/primefaces/wiki/Building-From-Source instructions. Building the SNAPSHOT version project from command works well.
However, importing it into eclipse using the Existing Maven Projects wizard gives me a lot of errors in the Problems view. I fixed the lifecycle mappings by setting all to ignore.
I realized the generated source code in the target/generated-sources/maven-jsf-plugin directory but it was not picked up by the m2e plugins as a source folder automatically. So I included it into the eclipse build path manually. But then again, many compile errors show up in the generated code.
Does anybody use eclipse as IDE for primefaces development? How do you setup the eclipse project to develop primefaces?
The eclipse project uses Java Compiler compliance level 1.5 derived from the pom.xml maven-compiler-plugin settings. Setting the Java Compiler compliance level to 1.6 solved the issue for me.
I am using cakephp 3.0 and i am facing problem while installing migration plugin..i am following the steps mentioned below
Installation - First get the plugin!
$:~/public_html/cakephp3/myCakeApp/plugins$ git clone git://github.com/CakeDC/migrations.git
Add the following to app/Config/bootstrap.php
CakePlugin::load('Migrations');
now next installation part is given in documentation as(may be this part may work for cakephp 2.x)
$ app/Console/cake
Available Shells:
migration [Migrations]
i am not getting this part and also don't know how to load MigrationShell in cakephp 3.. Can anybody help me out please??
CakePHP 3 comes with its own migrations plugin. Create a fresh CakePHP 3 project and you will be able to execute bin/cake migrations
You can read the documentation of the official migrations plugin in this page:
https://github.com/cakephp/migrations
My site works on mono 2.10 and I'm nearly done on a brand new server upgrading to mono 3.2.x.
It works using XSP4, the ServiceStack Razor views render correctly. (And it fixes a lot of artefacts in 2.10)
When I set the site to use nginx + Fast CGI (4) however I get a HttpCompileException, caused by:
The predefined type `System.Collections.Generic.IReadOnlyList' is defined multiple times. Using definition from `mscorlib.dll'
Remember this works fine with xsp4 so I think it needs some setting to tie it to one .Net instance, maybe it's confused between .net 4.0 and .net 4.5? Any suggestions on how I can force it to use only one of these?
Note: I installed from git using latest (3.2.7), as the 3.2.5 release would crash. I'm using a clean Amazon EC2 Ubuntu 12.04 64bit. It didn't have mono on it before, and when I tried 3.2.5 it was another now deleted instance.
This is largely the same error as: RazorEngine on Mono - TemplateCompilationException thrown
But I had no other version installed. The build process added others which have since been deleted to no effect. All instances of mscorlib are here:
/usr/lib/mono/2.0/mscorlib.dll
/usr/lib/mono/4.5/mscorlib.dll
/usr/lib/mono/4.0/mscorlib.dll
I found out what the problem is and was able to solve it.
The culprit are these files:
https://github.com/mono/xsp/tree/master/src/Mono.WebServer.FastCgi/Compatibility
For some reason, they added these compaibility classes that are compiled to a NET 4.0 target (which does not have the IReadOnlyList class), but when we run the fastcgi-mono-server4, it runs under the 4.5 runtime, which do have a IReadOnlyList class and therefore generates the Razor HttpCompile error.
The solution was adding these 2 parameters -d:NET_4_5 -sdk:4.5 to the Makefile.in of the FastCGI source project:
#NET_4_0_TRUE# $(DMCS) -d:NET_2_0 -d:NET_4_0 -d:NET_4_5 -sdk:4.5 $(MCSFLAGS) $(references4) /out:$# \
Then I recompiled and reinstalled with ./configure, make, make install and the Razor compile error was gone for good.
If you don't want to go through all this trouble, I'd recommend sticking to the latest released version of the xsp project, which didn't have these Compatibility classes.
I compiled MySQL++ with no issues. When I launched some of the executables (resetdb.exe and simple1.exe) they suggest to run to test if the installation has been successful, the first error I got was that libmysql.dll was missing.
Adding its path to the PATH environment variable did not fix the problem, even after launching a new command prompt; I had to copy the DLL in the directory where MySQL++ executables are.
Now the DLL is found, but I get this error:
simple1.exe - Application error
The application was unable to start correctly (0xc000007b).
Click OK to close the application.
even launching from the command line, I get no more information than these.
Thank you for any help!
MySQL 5.5 -
MySQL++ 3.0.9 -
Windows 7 64 bits -
MINGW32 -
GCC 4.4.0
0xC000007B is a Windows error that means the executable is corrupted. It could refer either to simple1.exe or to one of the DLLs it's linking against.
Some reasons this could happen:
You're mixing toolchains in an incompatible way. In your case, you may have built simple1.exe using pieces built by MinGW GCC and pieces built by Visual C++. MinGW should be compatible with any pure C DLL built by Visual C++, including the MySQL C API DLL. However, you may have other pieces interfering. MinGW isn't compatible with VC++ at the C++ level, but then, it shouldn't have linked at all if this were your problem.
You didn't follow the MySQL C API import library build steps in README-MinGW.txt. You either missed a step, or skipped it entirely and are trying to use the import library that shipped with MySQL.
In your previous gyrations, you ended up with a corrupt object file, which got linked in. Try saying make clean all at the top level of MySQL++ to force a complete rebuild.
You're mixing versions of MySQL or MySQL++. If you have more than one version of each on the system, make sure you're consistent in their use. That is, build the C API import library from the same DLL you run the programs against, use exrun.bat to run the examples to ensure you're using the just-built version of the MySQL++ DLL instead of another you have in your PATH, etc.
Additionally, I note that you're using an older version of MySQL++. If you were on Linux, I could understand that as some distributions still ship with 3.0.9. But since you have to build MySQL++ from source with MinGW, I don't see why you're not using 3.1.0. Did you get a binary build from somewhere?
As for your PATH problem, did you restart the MinGW shell after doing this? PATH updates don't affect running programs; they keep the value they saw when they started.