Difficulty installing mojo portal on Ubuntu 10.04

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
7/16/2010 10:01:59 AM
Gravatar
Total Posts 4

Difficulty installing mojo portal on Ubuntu 10.04

Hi all,

I'm trying to install mojo portal on a pc running Ubuntu 10.04, 8.4.4-0ubuntu10.04, and Mono 2.4.4~svn151842-1ubuntu4 and mojoportal-2-3-4-5-pgsql-mono-deploymentfiles.

I am having difficult setting up the database. I tried to follow the instructions on from http://www.mojoportal.com/postgresqlsetup.aspx but when i try to implement step 2: 

[quote]

Run
psql -d template1 -f 1CreateDatabase.sql
[/quote]

 

I get this error

[quote]

postgres@NET-SERVER-PC:/home/mbuotidem$ psql -d template1 -f 1CreateDatabase.sql
could not change directory to "/home/mbuotidem"
1CreateDatabase.sql: No such file or directory
[/quote]

 

what could be responsible for this and how do i correct this problem?

7/17/2010 9:03:09 AM
Gravatar
Total Posts 18439

Re: Difficulty installing mojo portal on Ubuntu 10.04

Hi,

The documentation was not up to date and the files mentioned are not included with mojoPortal. I've updated the article to show the contents of those files so you can create them. I think the error is just because the files don't exist on disk, with the updated article you could create them.

http://www.mojoportal.com/postgresqlsetup.aspx

To be honest I'm no linux super guru myself. I generally prefer the gui tools, I would guess that Ubuntu has something available or you might try installing pgAdmin. I have pgsql running on a linux box but I connect to it from windows using pgAdmin to create and manage databases.

Or if you just want to play with mojoPortal you could try the Sqlite package for Mono since it has a zero configuration database. For a real production site pgsql would be a better choice.

Hope it helps,

Joe

7/20/2010 1:21:23 PM
Gravatar
Total Posts 4

Re: Difficulty installing mojo portal on Ubuntu 10.04

Thanks for the reply. I followed the link to the upgraded tutorial. 

I am still experiencing the same difficulty. After creating the files, using gedit. For the first file, i named it plpgsql.sql and then put all the content that was below it in the text file, i.e,

"SET search_path = public, pg_catalog;

CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler
AS '$libdir/plpgsql', 'plpgsql_call_handler'
LANGUAGE c;

CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler;" 

and then saved the file. Did same with  CreateDatabase.sql.

i placed them in the home directory. Your tutorial said or any other working directory. Could you clarify what you mean by a working directory? 

I hope i am correct in assuming that i should use the terminal to carry out the instructions in the tutorial.

when i ran su postgres and i then copied and pasted the instruction:"psql -d template1 -f plpgsql.sql"  i get this output from the terminal: 

mbuotidem@NET-SERVER-PC:~$ su postgres
Password:
postgres@NET-SERVER-PC:/home/mbuotidem$ psql -d template1 -f plpgsql.sql
could not change directory to "/home/mbuotidem"
plpgsql.sql: No such file or directory
postgres@NET-SERVER-PC:/home/mbuotidem$ psql -d template1 -f CreateDatabase.sql
could not change directory to "/home/mbuotidem"
CreateDatabase.sql: No such file or directory
postgres@NET-SERVER-PC:/home/mbuotidem$ createuser --pwprompt --no-adduser --no-createdb mojo
could not change directory to "/home/mbuotidem"
Enter password for new role:
Enter it again:
Shall the new role be allowed to create more new roles? (y/n) y
createuser: creation of new role failed: ERROR: role "mojo" already exists
postgres@NET-SERVER-PC:/home/mbuotidem$

 

Yes, i have installed pgadminIII and i am going through the help files. 

Any help would be appreciated.

 

7/29/2010 10:32:30 AM
Gravatar
Total Posts 4

Re: Difficulty installing mojo portal on Ubuntu 10.04

well, after waiting for a while i decided to forget about mojo portal for a while and thought that well, if i wanted to use mojo portal, i might have to cough out some money to buy a microsoft os license and go thru the hassle of downloading visual web developer. but fortunately for me , i stumbled on webmin. with webmin, i was able to run both plpgsql.sql and CreateDatabase.sql easily from within the webmin interface.

newbies like me who may experience any difficulty might want to try it. now i need to get my asp. net files to open.

webmin is a web based app so it has a beautiful gui.

thanks Joe Audette. would hae loved to download the sql lite package but internet is costly where i live so dowloading it would have been painful.

besides, you said: "Or if you just want to play with mojoPortal you could try the Sqlite package for Mono since it has a zero configuration database. For a real production site pgsql would be a better choice." i don't want to just play with it,  i want to do a "real production site" . thanks for mojo portal by the way.

 

 

You must sign in to post in the forums. This thread is closed to new posts.