Adobe Flex Apache module under Linux - apache-flex

I'm attempting to use the Adobe Flex Apache (2.2) module under Linux from here - http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS (the manual install). I have a perfectly working Apache system, with Ubuntu 8.10 and the Sun JDK v6 update 10 so installing this is not about support tools.
I can't figure out how to make this apache module work.
My httpd.conf shows this:
LoadModule flex_module /usr/lib/apache2/modules/mod_flex.so
AddHandler flex .mxml
The mod_flex.so is in the right place.
I have /usr/bin/compiler.sh:
#!/bin/sh
java -Djava.awt.headless=true -ms128M -mx256M -jar "/home/jamie/Adobe_Flex_Builder_Linux/flexc.jar" ${*} 2>&1
(why on earth would you hardcode the location of this?). This shell script gets executed (e.g. if I put a echo "hi!" >> /tmp/log.txt, it shows up).
But, it just returns to the browser a blank page. So the module is doing something, it just ain't doing it correctly.
The compiler configuration file (which I've put in the same directory as compiler.sh, as the flexc.jar and as the .mxml file being compiled references:
flex_config=/home/jamie/Adobe_Flex_Builder_Linux/sdks/3.0.0/frameworks/flex-config.xml
flex_lib=/home/jamie/Adobe_Flex_Builder_Linux/sdks/3.0.0/frameworks
Now, sometimes I manage to get error output into the browser - it complains about not being able to find the class flash.localization.ILocalizer.
I've managed to squash that error by editing the manifest in flexc.jar to point to the necessary jar files from the 3.0.0 Flex SDK from Adobe (I did try and set the CLASSPATH environment variable to point to the necessary jars, but that didn't work) Now, my latest error is:
An error occured on the server. Server error is: 'Error occurred in server thread; nested exception is: java.lang.NoClassDefFoundError: flex2/linker/SimpleMovie'
This shows up in a nicely formatted "Compilation Results" page in the browser, so obviously now I've got the compiler trying to compile the mxml, and failing because it's missing mxmlc.jar. Adding mxmlc.jar to the flexc.jar manifest has not helped this last problem.
Any help appreciated!

After some googling, I've found one Linux Macromedia Flex on Tomcat-HOWTO, at http://members.cox.net/midian/howto/flex+tomcat.htm It looks pretty simple, from that perspective. Have you installed Tomcat?

Related

Can't run qt commands like qtviewer

I am new to Qt so I follow a tutorial on QML. It starts with a basic qml file which should be run with qmlviewer.
The problem is that when I start qmlviewer it says
qmlviewer: could not exec '/usr/lib/qt/bin/qmlviewer': No such file or directory
whereis qmlviewer tells me that it's location is /usr/bin/qmlviewer so I try to run it with this absolute path, but I still get the same error
qmlviewer: could not exec '/usr/lib/qt/bin/qmlviewer': No such file or directory
Why is it still looking for that location ? How can I solve this ?
I should mention that I have tried qtconfig just for testing, and I still get the error, so this is a global Qt problem.
Thank you
As said in the documentation : http://doc.qt.io/qt-5/qtquick-porting-qt5.html
The qmlviewer tool provided for prototyping and testing QML
applications in Qt 4.x has been replaced with the qmlscene tool which
integrates with the new scenegraph features in Qt 5.
So using qmlscence all works.

PHPStorm rename remote files failing

I am using PHPStorm 8.0.1.
I am working on a Symfony Project which runs on an nginx webserver on a debian system.
I have set up Automatic Deployment correctly and everything works very well, except of renaming the remote files.
PHPStorm fails with the message: "Failed to rename file 'filename.extension' to 'filename.extension': could not determine if file 'path to file' is writeable. (Could not get the groups id of the current user (error code: 1))
Can Anybody here point me in the direction on how to solve this error?
I had exactly the same problem. Reason: chroot enabled (thanks BloodandDeath for comment). In my Hestia panel settings, I just switched the SSH user setting from nologin to bash, after which PHPStorm started renaming files without error. By the way, everything worked well in Filezilla without changing the settings, which suggests a bug in PHPStorm ...

PHPStorm 8 + PHPUnit 4.2.6 Error

I can't make PHPUnit 4.2.6 to work with PHPStorm 8.
PHPUnit is loaded as phar inside PHPStorm 8 settings.
Whenever i try to run unit test in PHPStorm i get this error:
Parse error: syntax error, unexpected '}' in /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php(171) : eval()'d code on line 1
Call Stack:
0.0006 344584 1. {main}() /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php:0
0.0007 344880 2. IDE_PHPUnit_Loader::init() /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php:194
Warning: require_once(PHPUnit/Runner/Version.php): failed to open stream: No such file or directory in /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php on line 49
When i looked into "ide-phpunit.php", i found that it tries to eval invalid code, because of invalid "substr" function usage.
So my question is, if someone managed to make PHPUnit 4.2.6 work with PHPStorm 8?
Here is how to "unhack" the IDE to run with phpnunit.phar (4x+) nicely on windows and linux!
Download phpunit.phar under php, set your phar location from the IDE -> settings -> phpunit and phar location. THEN CLOSE IDE
Find where your plugin files are, for php on windows this would be :\Program Files (x86)\JetBrains\PhpStorm 8.0.3\plugins\php\lib.
Open php.jar with winrar and open scripts/phpunit.php.
Comment out all PHPUnit/… require statements, so autoloader can do its job instead of using hardcoded values.
Go to public static function init() method.
Find the if section with a comment at the end says “awful hack”, screenshot.
Remove all the amateur hacky stuff and replace it with this, screenshot.
Save the file, Winrar will prompt you to save the archive, SAVE that one too.
Run IDE And Run your tests, coverage. Enjoy!
Hope this helps some of you out there. I will post the information to their forums as well.
I got the exact same error, and fixed it like this:
Installed phpunit using: composer global require phpunit/phpunit
Goto phpstorm settings: PHPUnit
Select "Use custom autoloader"
On Windows: C:\Users\[username]\AppData\Roaming\Composer\vendor\autoload.php
On Linux: /home/[username]/.composer/vendor/autoload.php
Or point it to the autoloader of your composer project
PhpStorm generates special temporary "wrapping" to execute the tests and get the output in the form it understands better. In your case it's /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php. Since the error says there is a syntax error, the first thing you should try is deleting it, on the next run the IDE will create the new one, hopefully without that problem.
If that doesn't help, as suggested in the comments, try downgrading the PHPUnit a few versions back, see if that helps. Alternatively try reinstalling the PhpStorm. If that doesn't work, you have better chances of finding an answer by reporting an issue to the dev team.

Meteor on Windows: meteor command outputs nothing

I installed the MSI file from win.meteor.com
I reboot the computer, and open up CMD and type meteor create app but nothing happens. It doesn't say the command was undefined, so I don't know what's wrong here.
I am using windows 7 64-bit home.
I have discovered an issue with node fibers (on windows) and have a tentative fix - at least it fixed the problem for me, and I would be interested to see if that also fixes it for others.
Ultimately the problem was apparently sudden death due stack overflow and access violation. The root cause however was that the thread locals were not correctly being switched on a fiber switch.
you should check the environment path
add Meteor root directory to PATH
like this
PATH: ...;d:\Meteor;d:\Meteor\bin
METEOR_PATH: d:\Meteor
NODE_PATH: d:\Meteor\lib\node_modules
I have this issue too..
METEOR_PATH = C:\Program Files (x86)\Meteor\
NODE_PATH = C:\Program Files (x86)\Meteor\lib\node_modules
PATH = C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files\Java\jre6\bin\;C:\Program Files\Sublime Text 2;C:\Program Files (x86)\Meteor\;C:\Program Files (x86)\Meteor\bin
When you I run the meteor command, it does open meteor.js in node (if I add console.log('xxx') to meteor.js I see output), but the script finishes with no output.

Netbeans - Cannot find include file : QtGui

I am trying to work with Netbeans ans Qt (on Windows) and I am having trouble getting set up.
I am getting a message that it can't find an included file: QtGui/QApplication.
I think that I must have a path wrong somewhere. Under Tools -> Options QMake Command I have
C:\Qt\2010.02.1\qt\bin\qmake.exe
In Windows, I have the PATH set to C:\Qt\2010.02.1\qt\bin
Any ideas?

Resources