Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssl 1.1x安装失败的解决方法 #81

Open
tianpu opened this Issue Mar 21, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@tianpu
Copy link

commented Mar 21, 2019

centos和freebsd都遇到了这个问题,libevent编译不通过,可以通过在setup.sh给libevent安装增加--disable-openssl来解决

@tianpu tianpu closed this Mar 21, 2019

@tianpu tianpu reopened this Mar 21, 2019

@Masterton

This comment has been minimized.

Copy link

commented Mar 29, 2019

这个代码加到代码中的哪里 --disable-openssl

# check & install libevent
old_version=
echo -n "Checking libevent ... "
if test -f $prefix/include/event2/event-config.h ; then
  old_version=`cat $prefix/include/event2/event-config.h | grep EVENT_VERSION | cut -d\" -f2`
  echo $old_version
else
  echo "no"
fi
do_install=$set_force
new_file=`ls ./packages/libevent-*`
new_version=`echo $new_file | sed 's#^.*libevent-\(.*\)\.tar\.bz2#\1#'`
if test -z "$old_version" ; then
  if test -z "$new_version" ; then
    echo "ERROR: Missing libevent package (缺少 libevent 安装包)"
    exit 2
  fi
  echo "Installing libevent ($new_version) ... "
  do_install=yes
elif ! test -z "$new_version" && test "$new_version" != "$old_version" ; then
  echo "Upgrading libevent ($old_version -> $new_version)"
  do_install=yes
fi

if test "$do_install" = "yes" ; then
  echo "Extracting libevent package ..."
  tar -xjf $new_file
  cd libevent-$new_version
  echo "Configuring libevent ..."
  ./configure --prefix=$prefix >> ../setup.log 2>&1
  if test $? -ne 0 ; then
    setup_abort "configure libevent"
  fi
  echo "Compiling & installing libevent ..."
  make clean >> ../setup.log 2>&1
  make $mk_add_option install >> ../setup.log 2>&1
  if test $? -ne 0 ; then
    setup_abort "compile libevent"
  fi
  cd ..
fi
@tianpu

This comment has been minimized.

Copy link
Author

commented Apr 1, 2019

兄台也遇到这个问题了啊。

L334

-   ./configure --prefix=$prefix >> ../setup.log 2>&1
+  ./configure --prefix=$prefix --disable-openssl >> ../setup.log 2>&1
@Masterton

This comment has been minimized.

Copy link

commented Apr 3, 2019

谢谢兄台的帮助 安装成功

@KEN-studio

This comment has been minimized.

Copy link

commented Apr 4, 2019

libevent
感谢分享!

我试了下更换libevent版本,不可行。只有你这个办法可以。
openssl 1.1 对应需要 libevent 2.1.x以上,目前安装包自带的是 libevent 2.0.x。
将 packages 中的libevent 更换到 2.1以上不能成功,返回错误 error: libevent 2.0.0 or greater required!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.