OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: qinohe on August 16, 2018, 09:10:33 pm

Title: [solved] install mc-light from ports failed, sorta
Post by: qinohe on August 16, 2018, 09:10:33 pm
Hey all, trying to install MC which has gmake as (make) dependency.

The problem lies here, it seems to not get installed no error.

This is what I did:

sudo opnsense-code ports
cd /usr/ports/devel/gmake/
sudo make install

The log contained the following:
Aug 16 20:44:52    sudo: opnadmin : TTY=pts/0 ; PWD=/usr/ports/devel/gmake ; USER=root ; COMMAND=/usr/bin/su
Aug 16 20:44:52    sudo: opnadmin : TTY=pts/0 ; PWD=/usr/ports/devel/gmake ; USER=root ; COMMAND=/usr/bin/su
Aug 16 20:44:28    sudo: opnadmin : TTY=pts/0 ; PWD=/usr/ports/devel/gmake ; USER=root ; COMMAND=/usr/bin/make install
Aug 16 20:44:28    sudo: opnadmin : TTY=pts/0 ; PWD=/usr/ports/devel/gmake ; USER=root ; COMMAND=/usr/bin/make install

Thanks mark

edit;forgot to mention it has worked in the past, I have bash & tmux installed  :)
Title: Re: install mc-light from ports failed, sorta
Post by: rantwolf on August 16, 2018, 09:20:20 pm
Hi.
Midnight Commander is in the package repo.

Code: [Select]
pkg search mcAnd followed by „pkg install ...“
Title: Re: install mc-light from ports failed, sorta
Post by: qinohe on August 16, 2018, 09:32:05 pm
Hey rantwolf, thanks for your answer, okay there is a binary. But that still don't explain why I'm not able to build from source.

Thanks mark
Title: Re: install mc-light from ports failed, sorta
Post by: franco on August 17, 2018, 09:01:12 am
Hi mark,

I don't see anything wrong. Does it hang? Does it produce direct output? The syslog output is not indicating an issue.


Cheers,
Franco
Title: Re: install mc-light from ports failed, sorta
Post by: qinohe on August 17, 2018, 08:20:03 pm
Hi franco,

You're right there seems to be nothing wrong but mc-light needs gmake.

Trying to install gmake gives the output from my previous post.

After that I tried to install mc-light but it needs 'gmake' and will not make install.

I'm not able to check that machine right now, but that's about it  ::)


Thanks mark
Title: Re: install mc-light from ports failed, sorta
Post by: franco on August 17, 2018, 09:18:03 pm
Hi mark,

Normally you build the port you want, not the dependencies. So if something is wrong the ports framework will tell you.

You can also install gmake as a package from the repository mirror but that won't hep you with the mc build if something is wrong with building packages itself. ;)


Cheers,
Franco
Title: Re: install mc-light from ports failed, sorta
Post by: qinohe on August 20, 2018, 04:54:11 pm
Hey franco,


I understand and I did try to install mc-light port and let it install the dependecies like gmake but I get the next notification:
Quote
===>   mc-light-4.1.40.p9_11 depends on executable: gmake - not found
===>   mc-light-4.1.40.p9_11 depends on executable: gmake - not found
*** Error code 1

Stop.
make: stopped in /usr/ports/misc/mc-light

So, shouldn't mc-light makefile take care of this or...?
Otherwise I will install gmake pkg, btw. I was just testing and don't even know if I keep it installed :)

Thanks mark
Title: Re: install mc-light from ports failed, sorta
Post by: qinohe on August 23, 2018, 05:30:52 pm
Duh, ::) when changing to root I can  install ports, my 'opnadmin' is in wheel and a root and I was able to compile bash and tmux with this user.

Anyway, after compiling mc-light gawk gmake & texinfo(makeinfo)  it's working very well now  8)
I also started reading up on https://www.freebsd.org/doc/en/books/porters-handbook/makefiles.html#makefile-source  :-[ it's been a while..

Thanks for your support, mark
Title: Re: [solved] install mc-light from ports failed, sorta
Post by: franco on September 03, 2018, 04:39:26 pm
Hi mark,

Could have been that a

# sudo make clean

was missing, too.


Cheers,
Franco
Title: Re: [solved] install mc-light from ports failed, sorta
Post by: qinohe on September 07, 2018, 01:11:11 am
Hi franco,

I did run 'make clean' .. for all ports I installed.

But, I didn't know you had too because you get in trouble installing new ports ;D

Thanks, mark