Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to install libmicrohttpd?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
southlux
Posts: 7
Joined: 2017-08-03 12:39

How to install libmicrohttpd?

#1 Post by southlux »

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

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to install libmicrohttpd?

#2 Post by dasein »

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

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How to install libmicrohttpd?

#3 Post by GarryRicketson »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to install libmicrohttpd?

#4 Post by stevepusser »

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.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to install libmicrohttpd?

#5 Post by stevepusser »

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.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to install libmicrohttpd?

#6 Post by stevepusser »

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.
MX Linux packager and developer

southlux
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

#7 Post by southlux »

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?

#8 Post by southlux »

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?

#9 Post by southlux »

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?

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: How to install libmicrohttpd?

#10 Post by pendrachken »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to install libmicrohttpd?

#11 Post by stevepusser »

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'
MX Linux packager and developer

southlux
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

#12 Post by southlux »

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:

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: How to install libmicrohttpd?

#13 Post by pendrachken »

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

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How to install libmicrohttpd?

#14 Post by GarryRicketson »

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.

southlux
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

#15 Post by southlux »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How to install libmicrohttpd?

#16 Post by stevepusser »

The best way to do it is to backport the janus packages that are in Debian testing. https://packages.debian.org/buster/janus

You could try requesting that in the Debian backports mailing list: https://lists.debian.org/debian-backports/

Or attempt it yourself: https://wiki.debian.org/SimpleBackportCreation

Though my daily driver is Jessie-based MX Linux, I've recently learned how to set up and use various generic Debian QEMU pbuilder machines on this, so I can throw the testing sources into the maw of a Stretch build environment and see what comes out the other end in var/cache/pbuilder. Let me see if it is a simple backport.

Edit: No problem with a simple backport of 64-bit packages, so a simple backport per the wiki procedure should also work for you.

If you can't install libmicrohttp-dev on your system, something is wrong with your software sources--the normal list is in /etc/apt/sources.list. Can you try installing inxi and giving the output of

Code: Select all

inxi -r
though if your main Debian repo is not working, you won't be able to install inxi and instead will have to give us the output of

Code: Select all

cat /etc/apt/sources.list
MX Linux packager and developer

southlux
Posts: 7
Joined: 2017-08-03 12:39

Re: How to install libmicrohttpd?

#17 Post by southlux »

Thanks for the advice.
I managed to install Janus without it.
Although I still have some issues with regards to getting this working.

Post Reply