Try out our early Linux builds

Discussion for Jaxer newbies about how to get Jaxer up and running.

Moderator: Aptana Staff

Try out our early Linux builds

Postby paul » Sat Feb 02, 2008 1:13 am

Download location:

http://s3.amazonaws.com/com.aptana.temp ... Apache.zip

1. Download the package and unzip it into your /opt directory. You may need root permission to unzip it into that location. If so, be sure that the directory has read and write permissions for the user that you will use to run Jaxer.

2. Add ‘User <username>’ to the Apache httpd.conf file for the user you are using to run the Jaxer package. (/opt/AptanaJaxer/Apache22/conf/httpd.conf)

3. In some cases, you also need to make sure you have the ‘ServerName <name>’ directive in your httpd.conf file. Something like ‘ServerName localhost’ should work.

4. Run the ‘start.sh’ script location in the scripts folder (/opt/AptanaJaxer/scripts/start.sh)

5. At this point, you should be able to point your browser at http://localhost:8081/aptana/ to run some of the tests and samples

We’ve run this build successfully on 32 bit versions of Ubuntu and Fedora 6.

If it doesn’t work, check your logs files at /opt/AptanaJaxer/logs and let us know what went wrong. Be sure your permissions are set properly.

If Apache won’t start, try going to the /opt/AptanaJaxer/Apache22/bin directory and run ‘httpd’ and see what errors, if any, it displays.

Have fun!
User avatar
paul
 
Posts: 143
Joined: Thu Jul 13, 2006 6:44 pm

Postby andrewherron » Sat Feb 02, 2008 3:30 am

How do you change the default port for the Jaxer server?
andrewherron
 
Posts: 18
Joined: Wed Jan 30, 2008 2:25 am
Location: Metro Detroit, MI

Postby paul » Sat Feb 02, 2008 3:39 am

For the included Apache web server? I am assuming so. For that, you just edit the httpd.conf file that's in the supplied Apache. See /opt/AptanaJaxer/Apache22/conf/httpd.conf
User avatar
paul
 
Posts: 143
Joined: Thu Jul 13, 2006 6:44 pm

Postby andrewherron » Sat Feb 02, 2008 3:58 am

K, I've got it on my server but after running ./start.sh I get 5 httpd processes and no jaxer or jaxermanager processes.

The apache is starting correctly bug jaxer is not. ./logs/jaxer.log is not being created either.
andrewherron
 
Posts: 18
Joined: Wed Jan 30, 2008 2:25 am
Location: Metro Detroit, MI

Postby andrewherron » Sat Feb 02, 2008 4:43 am

When I run jaxermanager directly from the command line with the proper arguments, I get:

Code: Select all
Floating point exception (core dumped)


I'm running Ubuntu Edgy Server. If I run it on a VMWare install of Gutsy it works just fine.
andrewherron
 
Posts: 18
Joined: Wed Jan 30, 2008 2:25 am
Location: Metro Detroit, MI

Got it working....

Postby lummie » Tue Feb 05, 2008 11:20 am

Thanks for this, I've got it all working.
Are there any steps to get the server to start and stop via the Aptana IDE Server manager ?

I have created a Apache Server in servers view pointing to /opt/AptanaJaxer/Apache22/bin/httpd

I created a Jaxer Server and set the Binding ot the Local apache server from above. Then set the Manage Local Server checkbox and set the local folder to /opt/AptanaJaxer/jaxer

However, when I try to start he Jaxer server I get a blank error box with no message.

There is nothing obvious written to the log files.

Any ideas ?
lummie
 
Posts: 6
Joined: Mon Feb 04, 2008 12:36 pm

Postby k1awicki » Tue Feb 05, 2008 6:10 pm

Hi lummie,

Jaxer Integration is not yet fully supported in Aptana Studio on Linux. You can use the servers view to link to a running Jaxer but not actually manage the process. If you leave the box for manage local jaxer unchecked you will be able to see if you jaxer is server is running, pause, resume, and stop it although the process itself will not be managed.
Sincerely,
Kevin Sawicki
k1awicki
 
Posts: 738
Joined: Mon Dec 11, 2006 10:19 pm
Location: San Mateo, CA

Postby jbowman » Wed Feb 06, 2008 11:48 am

may be a case of I need to start thinking about working with my host to get moved to centos 5, but thought I'd throw this out there. Running a VPS Centos 4.5 server through knownhost, I get this when I try to start Jaxer

Code: Select all
./jaxer: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory
/opt/AptanaJaxer/Apache22/bin/httpd: /lib/tls/libpthread.so.0: version `GLIBC_2.4' not found (required by /opt/AptanaJaxer/Apache22/lib/libapr-1.so.0)
jbowman
 
Posts: 5
Joined: Wed Jan 23, 2008 11:50 am

Postby nlsmith » Wed Feb 06, 2008 2:42 pm

Code: Select all
./jaxer: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory
/opt/AptanaJaxer/Apache22/bin/httpd: /lib/tls/libpthread.so.0: version `GLIBC_2.4' not found (required by /opt/AptanaJaxer/Apache22/lib/libapr-1.so.0)


It looks like the Apache 2.2 distributed with Jaxer requires a Linux distribution with a glibc (the GNU C libraries) of at least version 2.4.

From what I've tried and looked at this would include:
    - Slackware 12
    - Ubuntu 6.10
    - CentOS 5

Compiling your own Apache 2.2 against an older version of glibc would be possible, but probably be more difficult to get working.

Is there anywhere to post known successes with using the Linux beta? None of my machines are current enough at the moment, but it would be nice for people to have an idea whether anyone else has had any luck running the beta on their distribution of choice.

Nathan
User avatar
nlsmith
 
Posts: 82
Joined: Wed Jan 23, 2008 2:57 am
Location: Iowa City, IA

Postby andrewherron » Wed Feb 06, 2008 4:21 pm

I've been toiling away with it for the last 3 days, both with the pre-built binary beta and with the source:

Xubuntu 7.10 32-bit VMWare: Pre-built binary works just fine, I'd assume it would work with a normal (non-VMWare) install. I haven't tried to build it from source.

Ubuntu 7.10 64-bit: Since the pre-built binary is built for 32-bit and I don't know that much about compiling against a different arch, I tried to do just that. No luck, compiling dies about something with PKIX and glibc.

Ubuntu 6.04 32-bit: Pre-built binary JaxerManager throws a floating point exception. I managed to get everything together to properly build it from 2012 source. Same error.

Ubuntu 7.10 Server 32-bit: I'm downloading both the pre-built binary and source; I should know how these both work by EOD today.

Xubuntu 7.04 Desktop 32-bit: I'll test both out on my workstation while I'm testing on my server.

I only run Ubuntu based distos since that's what I've most exposure to. If someone wants me to test the pre-built binary on a specific distro, let me know and I'll see what I can do.

When I get home this evening I'll post instructions on how to build from source if one of the admins doesn't beat me to it. I'm not even sure I'm doing it the exact proper way since there's no doc to help out.
andrewherron
 
Posts: 18
Joined: Wed Jan 30, 2008 2:25 am
Location: Metro Detroit, MI

Postby andrewherron » Wed Feb 06, 2008 6:54 pm

Well the Server I was going to use has decided to die randomly. It is old and probably just a heat issue as this has been ongoing.

On the Desktop, everything is working right out of the box.
andrewherron
 
Posts: 18
Joined: Wed Jan 30, 2008 2:25 am
Location: Metro Detroit, MI

Postby andrewherron » Fri Feb 08, 2008 2:17 am

I upgraded my home server today from Ubuntu 6.10 to 7.04. Once I did that the pre-build binaries all worked fine. There must be a library that needs updating.

Since building the source is quite difficult, I'll focus more on developing with server. As the building process progresses please feel free to hit me up and I'll test it out.
andrewherron
 
Posts: 18
Joined: Wed Jan 30, 2008 2:25 am
Location: Metro Detroit, MI

Postby paul » Fri Feb 08, 2008 9:34 pm

I've posted our latest version of the linux build to the same link as the first post in this thread.

We haven't necessarily resolved all of the dependency issues we have (i.e. glibc version, etc.)

We'll work towards producing our own system requirements list, but for now, here's the Firefox 3 list, and since we're based on the same code base, it should be similar for Jaxer:

Linux kernel - 2.2.14 or higher with the following libraries or packages:

- glibc 2.3.2 or higher
- XFree86-3.3.6 or higher
- gtk+2.0 or higher
- fontconfig (also known as xft)
- libstdc++5
User avatar
paul
 
Posts: 143
Joined: Thu Jul 13, 2006 6:44 pm

Running Jaxer with existing Apache2 (Ubuntu 7.10)

Postby jfsiii » Sat Feb 09, 2008 6:10 am

I'm in Ubuntu 7.10, but I believe this will hold true for other *nix+Apache2

I have an existing Apache2 install which I wanted to use instead of the one included in the zip. I just added
Code: Select all
Include "/opt/AptanaJaxer/jaxer/confs/jaxer-linux.httpd.conf"

to the bottom of my apache2.conf (/etc/apache2/apache2.conf for me)

and changed the commands in scripts/startApache.sh:
Code: Select all
sudo /etc/init.d/apache2 start     # OR sudo apache2ctl start


and scripts/stopApache.sh:
Code: Select all
# Pick one
sudo /etc/init.d/apache2 stop      # OR sudo apache2ctl stop


Then I invoke 'em with sudo
Code: Select all
sudo ./opt/AptanaJaxer/scripts/start.sh
sudo ./opt/AptanaJaxer/scripts/stop.sh


So far so good. On to moving it out of /opt/AptanaJaxer/ ;),
John
jfsiii
 
Posts: 1
Joined: Tue Jan 29, 2008 3:38 am
Location: Baltimore, MD

Kubuntu 7.10/x86-32

Postby r1evis » Sun Feb 10, 2008 4:39 pm

Everything looking good here so far with the latest version, and although Studio doesn't seem to be aware that Jaxer is running I had no problems getting the server to present content from my workspace.
r1evis
 
Posts: 33
Joined: Sun Jan 27, 2008 8:48 am

Next

Return to Installing and Configuring Jaxer