Installing Glorp in Pharo 1.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing Glorp in Pharo 1.1

Giuseppe
Hi all,

I'm trying to install Glorp in Pharo 1.1. I connected to Glorp  
Squeaksource repo, and Loaded the GlorpPharoLoader package.

Then, I do:
GlorpPharoLoader loadGlorpWithNativePostgreSQLDriver

If I accept this windown, then a DNU appears.

Images attached.

Some idea?

Thanks a lot..

glorp1.jpeg (148K) Download Attachment
glorp2.jpeg (185K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Installing Glorp in Pharo 1.1

Yanni Chiu
On 09/11/10 12:59 PM, [hidden email] wrote:
> Hi all,
>
> I'm trying to install Glorp in Pharo 1.1. I connected to Glorp
> Squeaksource repo, and Loaded the GlorpPharoLoader package.

Try something like:

"GlorpDBX"
Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfGlorpDBX';
load.
!
ConfigurationOfGlorpDBX ensureMetacello.
!
(ConfigurationOfGlorpDBX project version: '1.2') load: { 'All with
PostgreSQL native'. }


Reply | Threaded
Open this post in threaded view
|

Re: Installing Glorp in Pharo 1.1

Giuseppe
Hi Yanni,

El mar, 09-11-2010 a las 13:50 -0500, Yanni Chiu escribió:

> On 09/11/10 12:59 PM, [hidden email] wrote:
> > Hi all,
> >
> > I'm trying to install Glorp in Pharo 1.1. I connected to Glorp
> > Squeaksource repo, and Loaded the GlorpPharoLoader package.
>
> Try something like:
>
> "GlorpDBX"
> Gofer new
> squeaksource: 'MetacelloRepository';
> package: 'ConfigurationOfGlorpDBX';
> load.
> !
> ConfigurationOfGlorpDBX ensureMetacello.

Worked..

> !
> (ConfigurationOfGlorpDBX project version: '1.2') load: { 'All with
> PostgreSQL native'. }

Failed with: Error: Name not found: All with PostgreSQL native

But It worked with

(ConfigurationOfGlorpDBX project version: '1.2') load: 'default'

Thanks.

--
--
Giuseppe Luigi
http://www.lordzealon.com


Reply | Threaded
Open this post in threaded view
|

Re: Installing Glorp in Pharo 1.1

Mariano Martinez Peck

Worked..

> !
> (ConfigurationOfGlorpDBX project version: '1.2') load: { 'All with
> PostgreSQL native'. }

Failed with: Error: Name not found: All with PostgreSQL native

But It worked with

(ConfigurationOfGlorpDBX project version: '1.2') load: 'default'



But this will install SqueakDBX as the database driver. IF this is what you want, then it is ok. If you want the postgresql native driver, you should do:

(ConfigurationOfGlorpDBX project version: '1.2') load:  'All with PostgreSQL native'

should work.

Otherwise, browse ConfigurationOfGlorpDBX >> baseline12:  and see in the groups definitions if such group is defined. It should.

Cheers

Mariano

 
Thanks.

--
--
Giuseppe Luigi
http://www.lordzealon.com



Reply | Threaded
Open this post in threaded view
|

Re: Installing Glorp in Pharo 1.1

Giuseppe
Hola Mariano,


El mar, 09-11-2010 a las 16:31 -0300, Mariano Martinez Peck escribió:

>
>         Worked..
>        
>         > !
>         > (ConfigurationOfGlorpDBX project version: '1.2') load:
>         { 'All with
>         > PostgreSQL native'. }
>        
>        
>         Failed with: Error: Name not found: All with PostgreSQL native
>        
>         But It worked with
>        
>         (ConfigurationOfGlorpDBX project version: '1.2') load:
>         'default'
>        
>
>
> But this will install SqueakDBX as the database driver. IF this is
> what you want, then it is ok. If you want the postgresql native
> driver, you should do:
>
> (ConfigurationOfGlorpDBX project version: '1.2') load:  'All with
> PostgreSQL native'

This is the content of baseline12:
baseline12: spec
        <version: '1.2-baseline'>
       
        spec for: #pharo do: [
                spec blessing: #baseline.
                spec repository: 'http://www.squeaksource.com/SqueakDBX'.

                spec package: 'Glorp' with: [ spec preLoadDoIt: #loadUnderscoreFix ].
                spec package: 'GlorpPostload' with: [ spec requires: #('Glorp') ].
                spec package: 'GlorpTest'.
                spec package: 'GlorpTestPostload' with: [ spec repository:
'http://www.squeaksource.com/Glorp' ].
                spec package: 'GlorpPharoPort' with: [
                        spec repository: 'http://www.squeaksource.com/Glorp'.
                        spec requires: #('GlorpPostload')
                        ].
               
               
               
                spec project: 'SqueakDBX' with: [
                        spec
                                className: 'ConfigurationOfSqueakDBX';
                                file: 'ConfigurationOfSqueakDBX';
                                repository: 'http://www.squeaksource.com/MetacelloRepository' ].
               
                spec package: 'GlorpDriverSqueakDBX' with: [
                        spec postLoadDoIt: #postLoadGlorpDriverSqueakDBX.
                        spec requires: #('SqueakDBX') ] .
               
                spec package: 'GlorpDBX-ConnectionPool' with: [
                        spec postLoadDoIt: #postLoadGlorpDriverSqueakDBXConnectionPool.
                        spec requires: #('GlorpDriverSqueakDBX') ] .
       
                spec package: 'PostgresV2' with: [ spec repository:
'http://www.squeaksource.com/PostgresV2' ].
               
                spec package: 'GlorpDriverPostgreSQL' with: [
                        spec repository: 'http://www.squeaksource.com/PostgresV2'.
                        spec postLoadDoIt: #postLoadGlorpDriverPostgreSQL.
                        spec requires: #('PostgresV2')
                        ].
               
               
                spec
                        group: 'default' with: #('GlorpSqueakDBX');
                        group: 'Core' with: #('Glorp' 'GlorpPostload' 'GlorpPharoPort');
                        group: 'Tests' with: #('GlorpTest' 'GlorpTestPostload');
                        group: 'GlorpSqueakDBX' with: #('Core' 'Tests'
'GlorpDriverSqueakDBX');
                        group: 'GlorpSqueakDBX Pool' with: #('GlorpSqueakDBX'
'GlorpDBX-ConnectionPool');
                        group: 'All with PostgreSQL native' with: #('Core' 'Tests'
'GlorpDriverPostgreSQL');
                        yourself.
                       

        ]
                       
                       

What I want, is to load the SmallPOS in SqueakSource to try it, and it
needs Glorp
--
--
Giuseppe Luigi
http://www.lordzealon.com


Reply | Threaded
Open this post in threaded view
|

Re: Installing Glorp in Pharo 1.1

Giuseppe
In reply to this post by Mariano Martinez Peck
Ok, I tried again with Yanni instruction, but without '{' '}' and now
seems to be installed.

Sorry for the noise.

El mar, 09-11-2010 a las 16:31 -0300, Mariano Martinez Peck escribió:

>
>         Worked..
>        
>         > !
>         > (ConfigurationOfGlorpDBX project version: '1.2') load:
>         { 'All with
>         > PostgreSQL native'. }
>        
>        
>         Failed with: Error: Name not found: All with PostgreSQL native
>        
>         But It worked with
>        
>         (ConfigurationOfGlorpDBX project version: '1.2') load:
>         'default'
>        
>
>
> But this will install SqueakDBX as the database driver. IF this is
> what you want, then it is ok. If you want the postgresql native
> driver, you should do:
>
> (ConfigurationOfGlorpDBX project version: '1.2') load:  'All with
> PostgreSQL native'
>
> should work.
>
> Otherwise, browse ConfigurationOfGlorpDBX >> baseline12:  and see in
> the groups definitions if such group is defined. It should.
>
> Cheers
>
> Mariano
>
>  
>         Thanks.
>        
>         --
>         --
>         Giuseppe Luigi
>         http://www.lordzealon.com
>        
>        
>
--
--
Giuseppe Luigi
http://www.lordzealon.com