Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

perl and ubuntu 8.04 AMD64

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


lists at gmnet

May 8, 2008, 1:00 PM

Post #1 of 11 (222 views)
Permalink
perl and ubuntu 8.04 AMD64

Hi,

I need to move some catalogs onto an Ubuntu 8.04 server AMD64. There
are multiple versions of IC that I need to run, so I won't be using
apt-get install interchange... One will be 5.4.0 and I will have a
couple of 5.4.2's going as well, so they will be installed from source.

I saw some postings about perl 5.8.8. is OK to run with threads. Is this
true? I am using the ubuntu 8.02 server AMD64 standard "threaded"
perl.

when I installed Bundle::Interchange, I had to use "force" in order for
it to work. and for some reason, my catalogs are not working with mysql.
I get an error that says:
"must have either MySQL or Postgres"
So for some reason, it is not seeing the variable.txt entry:
"MYSQL 1 Database"
Or something else is going on...

These may be unrelated issues, but does anybody have experience
installing source versions of IC on ubuntu (not using apt-get)? and how
should I deal with perl on this distro?

Thanks!
Rick




_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jon at endpoint

May 8, 2008, 5:19 PM

Post #2 of 11 (218 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

On Thu, 8 May 2008, Rick Bragg wrote:

> I need to move some catalogs onto an Ubuntu 8.04 server AMD64. There
> are multiple versions of IC that I need to run, so I won't be using
> apt-get install interchange... One will be 5.4.0 and I will have a
> couple of 5.4.2's going as well, so they will be installed from source.
>
> I saw some postings about perl 5.8.8. is OK to run with threads. Is this
> true? I am using the ubuntu 8.02 server AMD64 standard "threaded"
> perl.
>
> when I installed Bundle::Interchange, I had to use "force" in order for
> it to work. and for some reason, my catalogs are not working with mysql.
> I get an error that says:
> "must have either MySQL or Postgres"
> So for some reason, it is not seeing the variable.txt entry:
> "MYSQL 1 Database"
> Or something else is going on...
>
> These may be unrelated issues, but does anybody have experience
> installing source versions of IC on ubuntu (not using apt-get)? and how
> should I deal with perl on this distro?

Rick,

Are you moving these catalogs from 32-bit to 64-bit? If so, you may be
having problems with your variable.txt and other non-SQL databases if the
GDBM files are 32-bit and can't be read. Before migrating from 32-bit to
64-bit (or across platforms such as from FreeBSD to Linux or vice versa)
you should export each table from GDBM to .txt/.asc, then on the new
server, delete all the .gdbm or .db files (or just don't copy them over).

It's safe to not export the data if the .txt/.asc file's timestamp is the
same as or newer than the .gdbm/.db file.

As far as running on Ubuntu 8.04 x86_64, I am doing that but with a custom
unthreaded Perl 5.10.0 in /usr/local, and it works well. Doing that, or
building an unthreaded Perl 5.8.8, would probably be your fastest route.
It does require a custom build command, so after downloading and unpacking
the Perl tarball, do:

./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
make
make test
sudo make install

If you want to run with the system threaded Perl 5.8.8, you may be better
off upgrading Interchange to the latest 5.5.2 development release (though
read the UPGRADE document and make sure you make any needed compatibility
changes). Upgrading has many stability and feature benefits in any case.

HTH,
Jon

--
Jon Jensen
End Point Corporation
http://www.endpoint.com/

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


m.mescoli at omnib

May 9, 2008, 6:32 AM

Post #3 of 11 (208 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

ubuntu 7.10 threaded system perl 5.8.8
--------------------------------------

1) download source perl 5.8.8 and compile unthreaded: compile problem.
STOP
2) install and run interchange 5.4.2 on system threaded perl 5.8.8.
This is not the best solution ... big warning ... drop performance ...
less reliable. NO

As suggest Jon
3) download perl 5.10.0 and compile unthreaded: (make test 99,7% ok)
4) download interchange 5.5.2 but problem on make test:

make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
server/unixmode.......ok 1
server/startup........ok 2
link/unixmode.........not ok 3

# When the above test fails, it may be due to your ISP or some other
# mechanism blocking port 8786.

server/inetmode.......The previous Interchange server was not running
and probably
terminated with an error.
ok 4
link/inetmode.........not ok 5
server/control........The previous Interchange server was not running
and probably
terminated with an error.
not ok 6
not ok 6
6 tests run -- 4/6 failed.
make: *** [test_dynamic] Error 1
-------------------------------------

Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
reliable solution ?

Marco Mescoli

Jon Jensen wrote:
> On Thu, 8 May 2008, Rick Bragg wrote:
>
>
>>I need to move some catalogs onto an Ubuntu 8.04 server AMD64. There
>>are multiple versions of IC that I need to run, so I won't be using
>>apt-get install interchange... One will be 5.4.0 and I will have a
>>couple of 5.4.2's going as well, so they will be installed from source.
>>
>>I saw some postings about perl 5.8.8. is OK to run with threads. Is this
>>true? I am using the ubuntu 8.02 server AMD64 standard "threaded"
>>perl.
>>
>>when I installed Bundle::Interchange, I had to use "force" in order for
>>it to work. and for some reason, my catalogs are not working with mysql.
>>I get an error that says:
>>"must have either MySQL or Postgres"
>>So for some reason, it is not seeing the variable.txt entry:
>>"MYSQL 1 Database"
>>Or something else is going on...
>>
>>These may be unrelated issues, but does anybody have experience
>>installing source versions of IC on ubuntu (not using apt-get)? and how
>>should I deal with perl on this distro?
>
>
> Rick,
>
> Are you moving these catalogs from 32-bit to 64-bit? If so, you may be
> having problems with your variable.txt and other non-SQL databases if the
> GDBM files are 32-bit and can't be read. Before migrating from 32-bit to
> 64-bit (or across platforms such as from FreeBSD to Linux or vice versa)
> you should export each table from GDBM to .txt/.asc, then on the new
> server, delete all the .gdbm or .db files (or just don't copy them over).
>
> It's safe to not export the data if the .txt/.asc file's timestamp is the
> same as or newer than the .gdbm/.db file.
>
> As far as running on Ubuntu 8.04 x86_64, I am doing that but with a custom
> unthreaded Perl 5.10.0 in /usr/local, and it works well. Doing that, or
> building an unthreaded Perl 5.8.8, would probably be your fastest route.
> It does require a custom build command, so after downloading and unpacking
> the Perl tarball, do:
>
> ./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
> make
> make test
> sudo make install
>
> If you want to run with the system threaded Perl 5.8.8, you may be better
> off upgrading Interchange to the latest 5.5.2 development release (though
> read the UPGRADE document and make sure you make any needed compatibility
> changes). Upgrading has many stability and feature benefits in any case.
>
> HTH,
> Jon
>

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


mike at perusion

May 9, 2008, 7:00 AM

Post #4 of 11 (208 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

Quoting Marco Mescoli (m.mescoli[at]omnib.it):
> ubuntu 7.10 threaded system perl 5.8.8
> --------------------------------------
>
> 1) download source perl 5.8.8 and compile unthreaded: compile problem.
> STOP
> 2) install and run interchange 5.4.2 on system threaded perl 5.8.8.
> This is not the best solution ... big warning ... drop performance ...
> less reliable. NO
>
> As suggest Jon
> 3) download perl 5.10.0 and compile unthreaded: (make test 99,7% ok)
> 4) download interchange 5.5.2 but problem on make test:
>
> make test
> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> server/unixmode.......ok 1
> server/startup........ok 2
> link/unixmode.........not ok 3
>
> # When the above test fails, it may be due to your ISP or some other
> # mechanism blocking port 8786.
>
> server/inetmode.......The previous Interchange server was not running
> and probably
> terminated with an error.
> ok 4
> link/inetmode.........not ok 5
> server/control........The previous Interchange server was not running
> and probably
> terminated with an error.
> not ok 6
> not ok 6
> 6 tests run -- 4/6 failed.
> make: *** [test_dynamic] Error 1
> -------------------------------------
>
> Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
> reliable solution ?

Bet you have SELINUX running.

--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike[at]perusion.com>

Software axiom: Lack of speed kills.

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


m.mescoli at omnib

May 9, 2008, 7:32 AM

Post #5 of 11 (208 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

Mike Heins wrote:
>>
>>Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
>>reliable solution ?
>
>
> Bet you have SELINUX running.
Mumble mumble ... ennglish lunguage is very very so hardest for me, do
you remember "apex" ? (-:
What is SELINUX ? Is it the worse distribution ?

Marco


_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jon at endpoint

May 9, 2008, 7:55 AM

Post #6 of 11 (207 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

On Fri, 9 May 2008, Marco Mescoli wrote:

>>> Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
>>> reliable solution ?
>>
>> Bet you have SELINUX running.
>
> Mumble mumble ... ennglish lunguage is very very so hardest for me, do
> you remember "apex" ? (-:
> What is SELINUX ? Is it the worse distribution ?

SELinux isn't commonly used on Ubuntu. Marco, look in / and if you don't
have an selinux directory, I don't think you could be running it.

Ubuntu may have AppArmor, but I haven't had trouble with that because I
think it's more selectively applied.

Also, yesterday I said to Rick:

> ./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"

That is actually for RHEL/CentOS/Fedora, which use multilib to allow both
64- and 32-bit libraries without a chroot. On Ubuntu, which is based on
Debian, they only use a single lib/ directory, so you should be able to do
simply:

./Configure -des

As on a 32-bit system.

Jon

--
Jon Jensen
End Point Corporation
http://www.endpoint.com/

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


lists at gmnet

May 9, 2008, 9:52 AM

Post #7 of 11 (206 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

On Fri, 2008-05-09 at 08:55 -0600, Jon Jensen wrote:
> On Fri, 9 May 2008, Marco Mescoli wrote:
>
> >>> Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
> >>> reliable solution ?
> >>
> >> Bet you have SELINUX running.
> >
> > Mumble mumble ... ennglish lunguage is very very so hardest for me, do
> > you remember "apex" ? (-:
> > What is SELINUX ? Is it the worse distribution ?
>
> SELinux isn't commonly used on Ubuntu. Marco, look in / and if you don't
> have an selinux directory, I don't think you could be running it.
>
> Ubuntu may have AppArmor, but I haven't had trouble with that because I
> think it's more selectively applied.
>
> Also, yesterday I said to Rick:
>
> > ./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
>
> That is actually for RHEL/CentOS/Fedora, which use multilib to allow both
> 64- and 32-bit libraries without a chroot. On Ubuntu, which is based on
> Debian, they only use a single lib/ directory, so you should be able to do
> simply:
>
> ./Configure -des
>
> As on a 32-bit system.
>
> Jon
>

Thanks this is REALLY helpful!

Also, I need to compile and copy over all new vlink binaries...

Does anybody know a shell command I can use to copy over the data in all
my current .gdbm files to their respective .txt files in one shot?

Thanks again
rick


_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


ron at endpoint

May 9, 2008, 10:13 AM

Post #8 of 11 (201 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

Rick Bragg wrote:
> On Fri, 2008-05-09 at 08:55 -0600, Jon Jensen wrote:
>> On Fri, 9 May 2008, Marco Mescoli wrote:
>>
>>>>> Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
>>>>> reliable solution ?
>>>> Bet you have SELINUX running.
>>> Mumble mumble ... ennglish lunguage is very very so hardest for me, do
>>> you remember "apex" ? (-:
>>> What is SELINUX ? Is it the worse distribution ?
>> SELinux isn't commonly used on Ubuntu. Marco, look in / and if you don't
>> have an selinux directory, I don't think you could be running it.
>>
>> Ubuntu may have AppArmor, but I haven't had trouble with that because I
>> think it's more selectively applied.
>>
>> Also, yesterday I said to Rick:
>>
>>> ./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
>> That is actually for RHEL/CentOS/Fedora, which use multilib to allow both
>> 64- and 32-bit libraries without a chroot. On Ubuntu, which is based on
>> Debian, they only use a single lib/ directory, so you should be able to do
>> simply:
>>
>> ./Configure -des
>>
>> As on a 32-bit system.
>>
>> Jon
>>
>
> Thanks this is REALLY helpful!
>
> Also, I need to compile and copy over all new vlink binaries...
>
> Does anybody know a shell command I can use to copy over the data in all
> my current .gdbm files to their respective .txt files in one shot?
>
> Thanks again
> rick
>
>

Hi Rick,

What I normally do is build an IC page with the contents:

[tmp tables]access locale[/tmp]

[loop list="[scratch tables]"]
[loop-code]: [export table="[loop-code]"]<br>
[/loop]

Set the tables scratch to all of the gdbm/db files you have, then access the page, it will export them to the default .txt/.asc files.

--
Ron Phipps
End Point Corporation
ron[at]endpoint.com

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


mike at perusion

May 9, 2008, 10:18 AM

Post #9 of 11 (206 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

Quoting Rick Bragg (lists[at]gmnet.net):
>
> On Fri, 2008-05-09 at 08:55 -0600, Jon Jensen wrote:
> > On Fri, 9 May 2008, Marco Mescoli wrote:
> >
> > >>> Now ? Interchange 5.5.2 on threaded system perl 5.8.8 maybe most
> > >>> reliable solution ?
> > >>
> > >> Bet you have SELINUX running.
> > >
> > > Mumble mumble ... ennglish lunguage is very very so hardest for me, do
> > > you remember "apex" ? (-:
> > > What is SELINUX ? Is it the worse distribution ?
> >
> > SELinux isn't commonly used on Ubuntu. Marco, look in / and if you don't
> > have an selinux directory, I don't think you could be running it.
> >
> > Ubuntu may have AppArmor, but I haven't had trouble with that because I
> > think it's more selectively applied.
> >
> > Also, yesterday I said to Rick:
> >
> > > ./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
> >
> > That is actually for RHEL/CentOS/Fedora, which use multilib to allow both
> > 64- and 32-bit libraries without a chroot. On Ubuntu, which is based on
> > Debian, they only use a single lib/ directory, so you should be able to do
> > simply:
> >
> > ./Configure -des
> >
> > As on a 32-bit system.
> >
> > Jon
> >
>
> Thanks this is REALLY helpful!
>
> Also, I need to compile and copy over all new vlink binaries...
>
> Does anybody know a shell command I can use to copy over the data in all
> my current .gdbm files to their respective .txt files in one shot?

No shell command that I know of, but you can just do:

[loop list="[list-databases]"]
Export [loop-code]:
[seti foo][export [loop-code]][/seti]
[if scratch foo]OK[/if]<br>
[set foo][/set]
[/loop]

in an Interchange page. Bear in mind, that will export *every* table,
and if you have large files you may instead want to do:

[loop list="access locale mv_metadata survey variable"]
....

--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike[at]perusion.com>

The tenor's voice is spoilt by affectation,
And for the bass, the beast can only bellow;
In fact, he had no singing education,
An ignorant, noteless, timeless, tuneless fellow. -- Lord Byron

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


m.mescoli at omnib

May 9, 2008, 10:27 AM

Post #10 of 11 (200 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

> SELinux isn't commonly used on Ubuntu. Marco, look in / and if you don't
> have an selinux directory, I don't think you could be running it.
I HAVE NOT /selinux
> Also, yesterday I said to Rick:
>
>
>>./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
>
>
> That is actually for RHEL/CentOS/Fedora, which use multilib to allow both
> 64- and 32-bit libraries without a chroot. On Ubuntu, which is based on
> Debian, they only use a single lib/ directory, so you should be able to do
> simply:
>
> ./Configure -des
>
> As on a 32-bit system.
>
> Jon
I have seen your post but:
./Configure des
don't run and don't run also:
./Configure -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64"
although my ubuntu has /lib64 and /usr/lib/64 dirs (?)

Now testing ubuntu 7.10 with ic5.2.2 on system threaded perl 5.8.8
For now seems ok.
Next i tell you.

Great thanks Jon

Marco





_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


m.mescoli at omnib

May 13, 2008, 10:16 AM

Post #11 of 11 (179 views)
Permalink
Re: perl and ubuntu 8.04 AMD64 [In reply to]

Testing ubuntu 7.10 with ic5.2.2 on system threaded perl 5.8.8

Put an old catalog with more services, for the first tests.

Compatibility with 4.9.8: no one problems
Performance tested on heavy pages but without benchmark: seems good
Reliability: waiting for the future ...

Marco Mescoli

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.