LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-07-2007, 10:45 AM   #1
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Rep: Reputation: 30
How can I install the following packages in Ubuntu or Kubuntu?


Hello I am trying to install a program that uses a .sh file to install it whenever I press the .sh file a text editor window comes up and says that I need to have certain packages to install the program. From the looks of it I need to have:

uudecode, tar, and bzcat how do I install these in Ubuntu or Kubuntu?


just for reference I have posted the error message:

Code:
#!/bin/sh
function error()
{
	kdialog --error "$1" --title "Could not install Digital Handwriting Page Viewer"
	exit 1
}

if [ -z `which uudecode` ]
then
	error "You must have uudecode installed to run this installer."
fi

if [ -z `which tar` ]
then
	error "You must have tar installed to run this installer."
fi

if [ -z `which bzcat` ]
then
	error "You must have bzcat installed to run this installer."
fi

INSTALL=`kdialog --getexistingdirectory $PWD`
if [ -z $INSTALL ]
then
	error "You must specify an install directory that already exists."
fi

if [ `which kde-config` ]
then

#DESKTOP=`kde-config --expandvars --install xdgdata-apps`
DESKTOP="`kde-config --localprefix`/share/applnk"
mkdir -p $DESKTOP
touch $DESKTOP/DHWPageViewer.desktop || error "Could not create menu entry."
( cat > $DESKTOP/DHWPageViewer.desktop ) << DESKTOP_END
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=/bin/sh $INSTALL/DHWPageViewer2.0/wrapper
Icon=$INSTALL/DHWPageViewer2.0/icon.png
Name=Digital Handwriting Page Viewer
Categories=Qt;KDE;Graphics
DESKTOP_END
kbuildsycoca --menutest &> /dev/null
fi

mkdir -p $INSTALL || error "Could not write to install directory."
cd $INSTALL
(uudecode -o /dev/stdout | bzcat -c | tar -xv ) << ENDOFWRAPPER
begin-base64 644 encoded.dat
 
Old 07-07-2007, 11:21 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That isn't an error message, that is the program itself. You need to execute the .sh file as a program, not open it in a text editor.

To make the script executable, run the command: chmod +x ./filename, and then run the now executable script.
 
Old 07-07-2007, 01:17 PM   #3
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
Ok this is what I did:

Code:
chacmool@link:~$ chmod +x DHWPageViewer.sh
chacmool@link:~$ sh ./DHWPageViewer.sh
./DHWPageViewer.sh: 2: Syntax error: "(" unexpected
chacmool@link:~$
It still didnt work, did I do anything wrong? I know the program works because whenever I had SUSE linux I would just double click the .sh file and the program would be installed.

Is there anyway I can send you the file to see if you can install it? I really need to get this program to work because it allows me to view notes that I have on a Digital notepad, what the program does is it converts the stored notes into image files.


Here is the information on the application that I am trying to install: http://www.compamerica.com/digimemo/...cex-viewer.htm

Last edited by izquierdista; 07-07-2007 at 01:21 PM.
 
Old 07-07-2007, 04:21 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Either do
./program.sh
or
sh program.sh

In my experience you don't need to do both. In fact, for .sh files, I usually do the second option.
 
Old 07-07-2007, 04:44 PM   #5
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
Well I tried both commands and it still didnt work this is what I got:

Code:
chacmool@link:~$ cd /home/chacmool/
chacmool@link:~$ ./DHWPageViewer.sh
./DHWPageViewer.sh: 2: Syntax error: "(" unexpected
chacmool@link:~$ sh DHWPageViewer.sh
DHWPageViewer.sh: 2: Syntax error: "(" unexpected
chacmool@link:~$
Maybe I am missing something that it needs? I hope someone can help me out. Unfortunately I cant download the targ.gz file nor the .sh script again because the server where it was at has been shut down.And this is the only application that I can find that can do what I need.

Another option that I tried was installing the Windows XP program using WINE, the program installed but when I tried opening it the program would come up for a few seconds and then it would close.

Maybe someone can try to see if they can figure out how to install the program on WINE, I dont have any experience at all with WINE, maybe someone can be successful at it.

Here is the link to get the Windows XP version of it:
http://www.acecad.com.tw/digimemo-dl.html

I will be happy to try any route.

How hard is it to write a program to do this I dont know how to code that is why I ask?? All it needs is to convert the native format which is .DHW to .BMP or .jpg or any Pdf.

Last edited by izquierdista; 07-07-2007 at 04:46 PM.
 
Old 07-07-2007, 05:43 PM   #6
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
Ok after searching and searching on the internet I think I found a plausible solution to my problem I just need to know how to do it.

There is a perlscript program that is mentioned in a blog that I found. I downloaded the zip file that has the script and some sample pages, I guess they are to test out the program.

The guy says that to run this program you need ActivePerl.

here is the URL where you can download the .zip file:

http://www.kevlindev.com/blog/images...o/DigiMemo.zip


I downloaded the file and now all I have to know is how I can run it on Ubuntu linux? Also where can I download ActivePerl or something similar for Ubuntu.

I hope someone can help me
thanks,
 
Old 07-07-2007, 05:44 PM   #7
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
The shell script has a syntax error in it. Check back with the source of that script.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
suse, ubuntu, kubuntu all fail to install adele Linux - Laptop and Netbook 6 03-15-2007 04:14 AM
Okay to install Ubuntu over Kubuntu? Peter Cooper Ubuntu 5 10-13-2006 12:25 PM
Can I install Ubuntu in Kubuntu? isra_mv Linux - Distributions 5 08-28-2006 01:31 AM
Anyone know how to install make on Ubuntu/Kubuntu? manhinli Ubuntu 5 07-02-2006 12:06 PM
Ubuntu/Kubuntu post install ptawe Ubuntu 4 02-26-2006 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration