How to install libmicrohttpd?

New to Debian (Or Linux in general)? Ask your questions here!

How to install libmicrohttpd?

Postby southlux » 2017-08-03 14:04

Hi, I am a linux noob.
I am trying to install janus-gateway on Debian stretch. Part of the installation suggests apt-get install libmicrohttpd. Even though my Google searches indicate that this is valid I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmicrohttpd

I managed to find a manual install but now I am getting this error when making Janus:
transports/janus_http.c:370:38: error: ‘MHD_USE_POLL_INTERNALLY’ undeclared (first use in this function)
MHD_USE_THREAD_PER_CONNECTION | MHD_USE_POLL_INTERNALLY | MHD_USE_POLL | MHD_USE_DUAL_STACK,

I have traced this to the fact that it is missing from the microhttpd.h that came with the manual install.
Anyone got suggestions as to how I can move forward with this install?
thanks
southlux
 
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

Postby dasein » 2017-08-03 15:31

You do realize that your question has nothing to do with Debian, right?
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to install libmicrohttpd?

Postby GarryRicketson » 2017-08-03 21:30

Except that the OP is trying to install it to Debian stretch:
Post by southlux » 2017-08-03 08:04
Hi, I am a linux noob.
I am trying to install janus-gateway on Debian stretch.


It appears that the package is not available for Debian Stretch

https://packages.debian.org/search?keywords=janus

Before trying to mix and install things that are not intended for the version
of Debian you are running, perhaps read this:
https://wiki.debian.org/DontBreakDebian
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4463
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How to install libmicrohttpd?

Postby stevepusser » 2017-08-03 21:38

Your question should be "How can I install libmicrohttpd headers in Stretch?" The instructions you were using don't apply to Debian specifically.

If you want to compile a program to use a certain library, you'll have to install the headers package, which is separate as part of Debian packaging policy, and in this case called "libmicrohttpd-dev". Installing just the runtime library won't help you build your program, and Debian also has a version as part of this package name, so a user can have different runtime versions installed at once (often useful). The Stretch runtime is called libmicrohttpd12.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: How to install libmicrohttpd?

Postby stevepusser » 2017-08-03 21:52

Edit: I am also forced to give you 2.38 Debian demerits :lol: for not bothering to read the complete README file included with the source, or reading it on the github page, where it states what Debian packages are need to build it:

Code: Select all
On Ubuntu or Debian, it would require something like this:

aptitude install libmicrohttpd-dev libjansson-dev libnice-dev \
   libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
   libopus-dev libogg-dev libcurl4-openssl-dev pkg-config gengetopt \
   libtool automake


You can use apt instead of aptitude. The " \ " symbol just means the next line is also part of the command instead of a new command, so you could edit those out to make it one long command for the install.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: How to install libmicrohttpd?

Postby stevepusser » 2017-08-03 22:02

A little bit of google-fu also showed some slightly dated repositories for the Janus packages maintained by the developers: http://projects.ag-projects.com/project ... positories

Are you looking to get their whole shebang of packages, or just janus-gateway? Because I can very probably just rebuild their janus properly for Stretch for an openSUSE build service Debian repository.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: How to install libmicrohttpd?

Postby southlux » 2017-08-04 07:47

stevepusser wrote:Edit: I am also forced to give you 2.38 Debian demerits :lol: for not bothering to read the complete README file included with the source, or reading it on the github page, where it states what Debian packages are need to build it:

Code: Select all
On Ubuntu or Debian, it would require something like this:

aptitude install libmicrohttpd-dev libjansson-dev libnice-dev \
   libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
   libopus-dev libogg-dev libcurl4-openssl-dev pkg-config gengetopt \
   libtool automake


You can use apt instead of aptitude. The " \ " symbol just means the next line is also part of the command instead of a new command, so you could edit those out to make it one long command for the install.

You should get demerits for not reading my post. I tried installing these packages with apt and I indicated the error that I received from the attempting to install ' libmicrohttpd-dev' :lol:
Last edited by southlux on 2017-08-04 07:50, edited 1 time in total.
southlux
 
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

Postby southlux » 2017-08-04 07:48

stevepusser wrote:A little bit of google-fu also showed some slightly dated repositories for the Janus packages maintained by the developers: http://projects.ag-projects.com/project ... positories

Are you looking to get their whole shebang of packages, or just janus-gateway? Because I can very probably just rebuild their janus properly for Stretch for an openSUSE build service Debian repository.


I want to install the janus-gateway and perhaps the libwebsockets option if requires
southlux
 
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

Postby southlux » 2017-08-04 07:51

dasein wrote:You do realize that your question has nothing to do with Debian, right?


which part of 'Unable to locate package libmicrohttpd' has nothing to do with Debian?
southlux
 
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

Postby pendrachken » 2017-08-04 18:04

southlux wrote:
dasein wrote:You do realize that your question has nothing to do with Debian, right?


which part of 'Unable to locate package libmicrohttpd' has nothing to do with Debian?



Which part of the command where it tells you to install libmicrohttpd-dev didn't you do again?
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1291
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: How to install libmicrohttpd?

Postby stevepusser » 2017-08-04 21:58

And another demerit for you! libmicrohttp is not the same package as libmicrohttp-dev. If you don't follow instructions exactly as written, I doubt you'll see much success in Linux. Just sayin'
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: How to install libmicrohttpd?

Postby southlux » 2017-08-06 12:45

Ok so as a noob I was mistaken as to how to do something. Thanks for the comments.
I guess I will have to find some other forum to help with this?
Everytime I try installing stuff in Linux I get reminded why so many people use Windoze :shock:
southlux
 
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

Postby pendrachken » 2017-08-06 14:01

Learn or don't. We don't care.


Here is a bit of advice though: life is much easier when you grow some thicker skin.


See ya!
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1291
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: How to install libmicrohttpd?

Postby GarryRicketson » 2017-08-06 16:45

by southlux »Everytime I try installing stuff in Linux I get reminded why so many people use Windoze

Oh no, another one of these,..........zzzzzz .
If the OP prefers the other OS, then that is what they need to use.

by southlux »I guess I will have to find some other forum to help with this?

If you want to use Debian, then there is no need to look for another forum, of course if you don't like this one, that is fine as well, no problem.

If you prefer Windows, and it sounds like you do, any other Linux forum will not be the
right place for you. Your best option would be to use the OS you like, and ask them
on their forum, I am sure Microsoft and it's affiliates have some kind of software you can pay them for, and get support as needed, at a price.

by stevepusser » Because I can very probably just rebuild their janus properly for Stretch for an openSUSE build service Debian repository.

Steve has offered to maybe help you rebuild this package properly for Stretch, and at no charge,...
Another option would be to upgrade to "testing", buster:
If you looked at the link I showed before:
https://packages.debian.org/search?keywords=janus
The package is NOT available for Debian Stretch, however it is available for
"Testing" Buster,............
https://packages.debian.org/buster/janus
And then help out with the developement and testing of this new package.
But if all you want is a easy "free meal" and don't want to do any real work,
that is not a good option. I think you would be best off just using your MS windows,
and go to their forums.
======================================
https://packages.debian.org/buster/libmicrohttpd12

Post by southlux » 2017-08-03 08:04
Hi, I am a linux noob.
I am trying to install janus-gateway on Debian stretch. Part of the installation suggests apt-get install libmicrohttpd.

Code: Select all
E: Unable to locate package libmicrohttpd

It can not find the package, because you are using the wrong name.

As pointed out by Steve,

Post by stevepusser » 2017-08-03 15:38
Your question should be "How can I install libmicrohttpd headers in Stretch?" The instructions you were using don't apply to Debian specifically.

If you want to compile a program to use a certain library, you'll have to install the headers package, which is separate as part of Debian packaging policy, and in this case called "libmicrohttpd-dev". Installing just the runtime library won't help you build your program, and Debian also has a version as part of this package name, so a user can have different runtime versions installed at once (often useful). The Stretch runtime is called libmicrohttpd12.


by southlux »You should get demerits for not reading my post. I tried installing these packages with apt and I indicated the error that I received from the attempting to install ' libmicrohttpd-dev' :lol:

I have looked through the posts, but no where do I see that you tried installing :
'libmicrohttpd-dev' as instructed to.

Anyway, yes , it can be some what difficult for any one, not just "new to linux", but
long time , experienced users, it can be difficult to install some packages, there are "hoops" to jump through and tricks to learn. And for MS windows lovers, it is all to
complicated and difficult, so they just keep being used by MS, and using it,...no problem
we understand, and nobody will miss you.
User avatar
GarryRicketson
 
Posts: 4463
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How to install libmicrohttpd?

Postby southlux » 2017-08-07 08:38

Even though I did not mention libmicrohttpd-dev specifically, I was following the instructions found here:https://github.com/meetecho/janus-gateway
I cut and pasted this:
Code: Select all
aptitude install libmicrohttpd-dev libjansson-dev libnice-dev \
   libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
   libopus-dev libogg-dev libcurl4-openssl-dev pkg-config gengetopt \
   libtool automake

and changed the 'aptitude' to 'apt-get'.

You are correct stevepusser did offer to build it and part of his statement was he asked me exactly what I wanted and I replied to his question.

I never said I wanted to use windows. My comment was simply based on the fact the for most windows installions one does not have to worry about all the dependencies etc.
In Linux to install one thing you often end up installing many things and when a long list of instructions fails part way it is difficult for noobs to figure out why.

My current status is that I have libmicrohttpd-dev installed, but as pointed out above, that is not why I get the error. It appears that I need the libmicrohttpd headers...?
I have Googled that but have not found out how they are installed. Any suggestions would be welcomed.

Thanks to all of you that have commented
southlux
 
Posts: 7
Joined: 2017-08-03 12:39

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable