Downgrade tmux to 1.8 in jail

Status
Not open for further replies.

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I'm running freenas 9.3 and need to downgrade Tmux 2.1 to 1.8. I found some info on the web that said to go to
cd /usr/ports/sysutils/portdowngrade
make DEFAULT_CVS_SERVER=\freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs install clean
portdowngrade tmux

But there is no portdowngrade directory in sysutils.
I ran make DEFAULT_CVS_SERVER=\freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs install clean from the sysutils directory and got a bunch of errors.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
That didn't create the portdowngrade directory. Where do I run make DEFAULT_CVS_SERVER=\freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs install clean and portdowngrade tmux ?
 
D

dlavigne

Guest
You don't, those instructions are ancient. You want to install that software and can do so using the command I gave you.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I ran the command from the root of my jail and it worked but I don't know what to do next to downgrade to 1.8 tmux
 
D

dlavigne

Guest
Did you try running portdowngrade tmux ? Note that this command will only succeed if an earlier version of tmux is available in the package repository...
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
portdowngrade tmux
tmux-cssh-20150518 -> security/tmux-cssh
tmux-2.1_1 -> sysutils/tmux

Choose a port origin (directory) from the list
above, and then run portdowngrade category/port

Is there a way to get the old version in the package repository?
 
D

dlavigne

Guest
Follow the instructions in the output:

Choose a port origin (directory) from the list
above, and then run portdowngrade category/port

portdowngrade sysutils/tmux
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
dlavigne, Thanks for you help. The error message indicated that I don't have the correct URL for the repository. Any idea how to fix it?

portdowngrade sysutils/tmux
Choose a revision from this list and run /usr/local/sbin/portdowngrade sysutils/tmux revision
svn: E170013: Unable to connect to a repository at URL 'http://svn.freebsd.org/ports/head/sysutils/tmux'
svn: E000065: Error running context: No route to host
Choose a revision from the above list and run /usr/local/sbin/portdowngrade sysutils/tmux revision
 
D

dlavigne

Guest
Were you able to resolve your situation? It doesn't look like it is possible to downgrade...
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Had to reinstall the jail/ software. If I type pkg install tmux it want to do 2.1. Can I install 2.0 if it has not been installed yet? If so what would the command be?
 
D

dlavigne

Guest
Nope. According to freshports.org, 2.1.1 is the only version available.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Can you comment on why you need to downgrade to 1.8? Perhaps there's an alternate solution that wouldn't require using an old version.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Ah. Well, I'd think you could always install it from source.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Could you explain in detail how to do that? I just learning linux.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Download the source for the version that you need: https://github.com/tmux/tmux/releases
Review the readme file: https://github.com/tmux/tmux/blob/master/README
Note the installation instructions:
tmux depends on libevent 2.x. Download it from: http://libevent.org
It mentions needing libevent, so first make sure you have that port installed: pkg install devel/libevent2
Now you can compile:
To build tmux from a release tarball, do:
$ ./configure && make
$ sudo make install
You'll first need to extract the tarball and cd in to the resulting directory.
Also, as you'll be installing an older version for this specific project, it's a good idea to install it to a custom directory:
$ ./configure --prefix=/usr/local/custom/tmux-custom && make
$ sudo make install
If Modii needs tmux in a specific location or you can specify the location to Modii you can decide where tmux can/need be installed.
If you do install it to a custom directory, you will need to add that location to your path or run tmux using an absolute path. Also, tmux versions aren't always compatible so you won't be able to connect to an existing session with a different version. Basically, you probably shouldn't have more than one version of tmux installed at a time.

I think that covers it. Some of this is dependent on how Modii needs to find tmux and I have no experience there.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Wow fracai thank you. I will try it out tonight and let u know
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
we all started somewhere :smile:

post if anything doesn't work correctly
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Ok bear with me. I'm lost. Tried to follow the directions.:(:(
I created in my jail the directory
/usr/local/custom/
pkg install devel/libevent2
pkg install wget
wget https://github.com/tmux/tmux/releases/download/1.9/tmux-1.9.tar.gz
tar xvfz tmux-1.9.tar.gz
cd tmux-1.9
in /usr/local/custom/tmux-1.9/ tar xvfz libevent-2.0.22-stable.tar.gz

./configure && make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... etc/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-freebsd9.3
checking host system type... x86_64-unknown-freebsd9.3
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking bitstring.h usability... yes
checking bitstring.h presence... yes
checking for bitstring.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking libutil.h usability... yes
checking libutil.h presence... yes
checking for libutil.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pty.h usability... no
checking pty.h presence... no
checking for pty.h... no
checking for stdint.h... (cached) yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/tree.h usability... yes
checking sys/tree.h presence... yes
checking for sys/tree.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking for gcc that whines about -I... yes
checking for glibc... no
checking for library containing clock_gettime... none required
checking for pkg-config... no
checking for LIBEVENT... no
checking for library containing event_init... no
configure: error: "libevent not found"
root@nzedb_1:/usr/local/custom/tmux-1.9 #
 
Status
Not open for further replies.
Top