Error in Installation of ffmpeg (Couldn't find package zlib1g-dev)

586 views
Skip to first unread message

Upen

unread,
Jul 28, 2013, 12:16:39 PM7/28/13
to bigbluebu...@googlegroups.com
Hello Everybody,

  I am in step 4. Install ffmpeg
 i created a file called install-ffmpeg.sh and copy and paste in the following script.

sudo apt-get install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev

LIBVPX_VERSION
=1.2.0
FFMPEG_VERSION
=0.11.3

if [ ! -d "/usr/local/src/libvpx-${LIBVPX_VERSION}" ]; then
  cd
/usr/local/src
  sudo git clone http
://git.chromium.org/webm/libvpx.git "libvpx-${LIBVPX_VERSION}"
  cd
"libvpx-${LIBVPX_VERSION}"
  sudo git checkout
"v${LIBVPX_VERSION}"
  sudo
./configure
  sudo make
  sudo checkinstall
--pkgname=libvpx --pkgversion="${LIBVPX_VERSION}" --backup=no --deldoc=yes --default
fi

if [ ! -d "/usr/local/src/ffmpeg-${FFMPEG_VERSION}" ]; then
  cd
/usr/local/src
  sudo wget
"http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2"
  sudo tar
-xjf "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
  cd
"ffmpeg-${FFMPEG_VERSION}"
  sudo
./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
  sudo make
  sudo checkinstall
--pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default
fi

Next, running the commands

chmod +x install-ffmpeg.sh
./install-ffmpeg.sh
And Found the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package zlib1g-dev
: command not found: line 2:
: command not found: line 5:
./install-ffmpeg.sh: line 24: syntax error near unexpected token `fi'
./install-ffmpeg.sh: line 24: `fi'


Now, what to do? should i proceed to next step Install BigBlueButton. Or please help me to out of this.

Thanks & Regards
Upen

Fred Dixon

unread,
Jul 28, 2013, 12:46:55 PM7/28/13
to bigbluebu...@googlegroups.com
Can you double-check that you didn't inadvertently insert any new lines in the script when you cut-and-pasted it.

In particular, check line 23 (just before the list 'fi') -- it should be one continuous line.

Regards,... Fred


Upen

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

Upen

unread,
Jul 28, 2013, 2:05:21 PM7/28/13
to bigbluebu...@googlegroups.com
Hello Fred ,
   Thanks for your reply, I pasted line 23 as

 sudo checkinstall --pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default

and it is a single line. You can check the screenshot as below.

Fred Dixon

unread,
Jul 28, 2013, 2:57:57 PM7/28/13
to bigbluebu...@googlegroups.com
Can you post the output of

  cat /etc/lsb-release

and

  sudo apt-get install zlib1g-dev


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

--

Upen

unread,
Jul 28, 2013, 3:31:20 PM7/28/13
to bigbluebu...@googlegroups.com
Dear Fred,
   The followings are the output:

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"

 sudo apt-get install zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  zlib1g-dev: Depends: libc6-dev but it is not going to be installed or
                       libc-dev
E: Broken packages


Regards
Upen


On Sunday, July 28, 2013 9:46:39 PM UTC+5:30, Upen wrote:

Fred Dixon

unread,
Jul 28, 2013, 5:33:04 PM7/28/13
to bigbluebu...@googlegroups.com
 Can you post the output of

  uname -a

Regards,... Fred
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Upen

unread,
Jul 29, 2013, 1:15:54 AM7/29/13
to bigbluebu...@googlegroups.com
Well  output of uname -a 

Linux u16772456 3.0.0-32-server #51~lucid1-Ubuntu SMP Fri Mar 22 17:53:04 UTC 20                         13 x86_64 GNU/Linux

Regards
Upen

On Sunday, July 28, 2013 9:46:39 PM UTC+5:30, Upen wrote:

Upen

unread,
Jul 29, 2013, 1:57:56 PM7/29/13
to bigbluebu...@googlegroups.com
Thanks a lot to Fred. Finally i am able to run bigbluebutton.


On Sunday, July 28, 2013 9:46:39 PM UTC+5:30, Upen wrote:

Fred Dixon

unread,
Jul 29, 2013, 1:59:09 PM7/29/13
to bigbluebu...@googlegroups.com
Hi Upen,

Can you share with others what was preventing your setup from installation BigBlueButton.

Regards,... Fred



--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Giuseppe Nocera

unread,
Apr 10, 2014, 9:31:54 PM4/10/14
to bigbluebu...@googlegroups.com
Hello Fred,

It is a great job you and developers do with bbb, definitively an amazing project.
I am trying to set up a bbb on a VPS server with Ubuntu 10.04 64 bit, everything did well until I came to the error about pkg-config. Any suggestion?
Please help.

root@cl-t025-453cl:/home/sshadmin/home# ./install-ffmpeg.sh

Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Couldn't find package pkg-config

: command not found: line 2:
: command not found: line 5:
./install-ffmpeg.sh: line 25: syntax error: unexpected end of file

Thank you in advance,
Giuseppe

Fred Dixon

unread,
Apr 10, 2014, 9:34:45 PM4/10/14
to bigbluebu...@googlegroups.com
Hi Giuseppe,

It's very likely a cut-and-paste error.  Check the install-ffmpeg.sh file with an editor (such as vi) and ensure there are no unexpected line breaks.  

If you've not used a Unix editor before (such as vi), suggest using Google to find a quick tutorial.  It's not hard, and you'll very quickly see any errors in the file.

Regards,.. Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Giuseppe Nocera

unread,
Apr 10, 2014, 10:35:50 PM4/10/14
to bigbluebu...@googlegroups.com
Hello Fred,

I am familiar with vi. What I am doing is:
- select the script and doing ctrl-c in the google chrome browser
- paste with shift-ctrl-v in vi editor.  I see that line 2 and 5 have indeed a break.
- escape end :w in order to save the file
- finally :q to exit.

But the error continue to show

Is there some location I can download the file as is?

Thank you,

Giuseppe

Giuseppe Nocera

unread,
Apr 10, 2014, 10:53:26 PM4/10/14
to bigbluebu...@googlegroups.com
Hello Fred,

My uname -a is
Linux cl-t025-453cl 2.6.32-57-generic #119-Ubuntu SMP Wed Feb 19 01:01:55 UTC 2014 x86_64 GNU/Linux

Regards,
Giuseppe

Fred Dixon

unread,
Apr 10, 2014, 10:54:15 PM4/10/14
to bigbluebu...@googlegroups.com
Hi Giuseppe,

You may be cutting and pasting in carriage returns.

Can you post to output of

 cat ffmpeg-install.sh | od -c | head

Regards,... Fred



--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Giuseppe Nocera

unread,
Apr 10, 2014, 11:43:09 PM4/10/14
to bigbluebu...@googlegroups.com
Hi Fred,

This is the output.
root@cl-t025-453cl:/home/sshadmin/home#  cat ffmpeg-install.sh | od -c | head
cat: ffmpeg-install.sh: No such file or directory
0000000

BTW I eliminated the 2 lines that were indeed line breaks with vi as you suggested.

Now when I execute the install comand, this is the output
root@cl-t025-453cl:/home/sshadmin/home# sudo ./install-ffmpeg.sh

Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Couldn't find package pkg-config
./install-ffmpeg.sh: line 22: syntax error: unexpected end of file
 
Regards,
Giuseppe

Giuseppe Nocera

unread,
Apr 10, 2014, 11:52:15 PM4/10/14
to bigbluebu...@googlegroups.com
Hello Fred,

I believe you are asking for cat install-ffmpeg.sh.

Follow the output.


Thank you in advance,
Giuseppe

root@cl-t025-453cl:/home/sshadmin/home# cat install-ffmpeg.sh | od -c | head
0000000   s   u   d   o       a   p   t   -   g   e   t       i   n   s
0000020   t   a   l   l       b   u   i   l   d   -   e   s   s   e   n
0000040   t   i   a   l       g   i   t   -   c   o   r   e       c   h
0000060   e   c   k   i   n   s   t   a   l   l       y   a   s   m   
0000100   t   e   x   i   2   h   t   m   l       l   i   b   v   o   r
0000120   b   i   s   -   d   e   v       l   i   b   x   1   1   -   d
0000140   e   v       l   i   b   x   f   i   x   e   s   -   d   e   v
0000160       z   l   i   b   1   g   -   d   e   v       p   k   g   -
0000200   c   o   n   f   i   g  \r  \n   L   I   B   V   P   X   _   V
0000220   E   R   S   I   O   N   =   1   .   2   .   0  \r  \n   F   F

Giuseppe Nocera

unread,
Apr 11, 2014, 1:43:15 AM4/11/14
to bigbluebu...@googlegroups.com
Hello Fred,

Sorry the amount of post.

Ok I was able to execute the script.  I execute the command "fromdos"  and get the .sh file fixed.

Now there is something strange. ffmpeg was apparently well installed but look....

root@cl-t025-453cl:/usr/local/src# ffmpeg -version
-bash: /usr/bin/ffmpeg: No such file or directory

How I know that ffmpeg was installed? Because the following:
**********************************************************************
 Done. The new package has been installed and saved to
 
/usr/local/src/ffmpeg-2.0.1/ffmpeg_5:2.0.1-1_amd64.deb

 You can remove it from your system anytime using:

      dpkg -r ffmpeg

**********************************************************************

Did I miss something?

Thank you again,

Giuseppe
 

Giuseppe Nocera

unread,
Apr 11, 2014, 3:05:15 AM4/11/14
to bigbluebu...@googlegroups.com
Sorry Fred never mind.

I have rebooted the server and "Ta da!!!"

BBB installed, let's do some tests.

Thank you for your pacience.

Best Regards,
Giuseppe

Fred Dixon

unread,
Apr 11, 2014, 6:37:53 AM4/11/14
to bigbluebu...@googlegroups.com
Yay!

Regards,... Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages