When i use this command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
I had got the error result:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
But in my computer, i can find libopenvswitch.a file:
/lib/libopenvswitch.a
/usr/local/lib/libopenvswitch.a
/home/mx/SDN/openvswitch-2.10.1/lib/.libs/libopenvswitch.a
But i use the command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
or command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/usr/local/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
or command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/home/mx/SDN/openvswitch-2.10.1/lib/.libs/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
all get same error result:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
Please help me, thanks!
You need version 2.3.1 of Open vSwitch to build OF-CONFIG.
I can reproduce your issue if I try to install OF-CONFIG with the last version of Open vSwitch:
$ ./configure --with-ovs-srcdir=/ovs PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
If I install Open vSwitch 2.3.1, however, everything works as expected:
$ wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
$ tar -xf openvswitch-2.3.1.tar.gz
$ cd openvswitch-2.3.1/
$ ./configure --prefix=/ --datarootdir=/usr/share
...
$ make -j && sudo make install -j
...
$ cd /of-config
$ ./configure --with-ovs-srcdir=/openvswitch-2.3.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
$ echo $?
0
Related
I've 0 knowledge in Go, but I'm trying to run a pds client explained in https://github.com/voximplant/pds-sample-client, but get errors when run.
When try to execute ./generate_proto.sh, I get:
-bash: ./generate_proto.sh: Permission denied
I tryed installing go1.12 and installing the package and get that golang.org/x/net/http2 requires Go 1.17
$ wget https://go.dev/dl/go1.12.linux-amd64.tar.gz
$ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.12.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
$ go version
go version go1.12 linux/amd64
$ go get -u google.golang.org/grpc#v1.20.1
$ go run main.go
# golang.org/x/net/http2
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/client_conn_pool.go:303:6: undefined: errors.Is
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/server.go:2750:9: h.Clone undefined (type http.Header has no field or method Clone)
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/transport.go:426:30: undefined: errors.Is
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/transport.go:426:45: undefined: os.ErrDeadlineExceeded
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/transport.go:2109:5: undefined: errors.Is
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/transport.go:2113:5: undefined: errors.Is
/root/go/pkg/mod/golang.org/x/net#v0.0.0-20220826154423-83b083e8dc8b/http2/transport.go:2117:5: undefined: errors.Is
note: module requires Go 1.17
So I tried with lastest version go1.19
$ wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
$ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
$ go version
go version go1.19 linux/amd64
$ go get -u google.golang.org/grpc#v1.20.1
go: downloading google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf
go: downloading golang.org/x/sys v0.0.0-20220829200755-d48e67d00261
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
go: upgraded golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64 => v0.0.0-20220829200755-d48e67d00261
$ go run main.go
panic: grpc: no transport security set (use grpc.WithInsecure() explicitly or set credentials)
goroutine 1 [running]:
main.main()
/home/pds-sample-client/main.go:17 +0x367
exit status 2
Please, has anyone been able to make it run, or If anyone been able to run a pds client in node or python?
I get an error when compiling (configure) Apache httpd. Please tell me how to solve it.
Error message
$ git clone -b 2.2.3 --single-branch https://github.com/apache/httpd.git
$ cd httpd
$ autoconf
$ ./configure
configure: error: cannot find required auxiliary files: config.guess config.sub
My environment
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ autoconf -V
autoconf (GNU Autoconf) 2.71
Update 1
The "configure" problem has probably been solved. (I stopped using github). However, an error occurs during make.
"make" error message
$ wget https://archive.apache.org/dist/httpd/httpd-2.2.3.tar.gz
$ gzip -d httpd-2.2.3.tar.gz
$ tar xvf httpd-2.2.3.tar
$ cd httpd-2.2.3
$ ./configure --prefix /home/ubuntu/local
$ make
/usr/bin/ld: .libs/htpasswd.o: undefined reference to symbol 'crypt##XCRYPT_2.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libcrypt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:39: htpasswd] Error 1
make[2]: Leaving directory '/home/ubuntu/httpd-2.2.3/support'
make[1]: *** [/home/ubuntu/httpd-2.2.3/build/rules.mk:72: all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/httpd-2.2.3/support'
make: *** [/home/ubuntu/httpd-2.2.3/build/rules.mk:72: all-recursive] Error 1
Installed modules
sudo apt-get install libapr1-dev libaprutil1-dev
sudo apt-get install build-essential
sudo apt-get install libpcre3-dev
Try this:
wget http://archive.apache.org/dist/httpd/httpd-2.2.3.tar.gz
tar -xf httpd-2.2.3.tar.gz
sudo ./configure --prefix=/opt/httpd --with-included-apr --with-ssl=/opt/openssl-1.0.1i --enable-ssl-staticlib-deps --enable-mods-static=ssl
sudo make
sudo make install
I`ve installed lte in ns2.35 but it gives the folowing error:
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "lte.tcl" line 21)
when i run lte.tcl
please hepe meto solve it
Your error: You are using a (wrong) copy of 'ns' with no LTE, or you have a failed build.
LTE, Howto ....
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
https://drive.google.com/file/d/0B7S255p3kFXNLVlDZ29EWWxJTFk/view?usp=sharing
$ ./install
$ cd ns-2.35/
$ sudo make install ('make install' will copy the executable 'ns' to /usr/local/bin/)
$ cp ns ns235-lte ( This is your backup and the recognizable "lte ns" )
$ sudo cp ns235-lte /usr/local/bin/
$ cd ../nam-1.15/
$ sudo make install
The examples : lte-examples-0614.tar.gz https://drive.google.com/file/d/0B7S255p3kFXNRWV4Mzc0bGYtQzA/view?usp=sharing
Run some examples:
$ ns235-lte bicfixdownlink.tcl
$ ns235-lte deVacto-lte.tcl
$ ns235-lte 24_downl413.tcl
EDIT : New example package, lte-examples-06.17.tar.gz, added 24_downl413.tcl, etc. https://drive.google.com/file/d/0B7S255p3kFXNSmd4Q3h3dXp1QWc/view?usp=sharing
And ns-allinone-2.35: gt-itm updated → ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
my project depends on llvm+clang+cmake.I use ninja to make compile simple.
my OS is : OS X Yosemite(10.10.5).here is how the error occurs.
1) get llvm&clang
$ mkdir ~/clang-llvm && cd ~/clang-llvm
$ git clone http://llvm.org/git/llvm.git
$ cd llvm/tools
$ git clone http://llvm.org/git/clang.git
$ cd clang/tools
$ git clone http://llvm.org/git/clang-tools-extra.git extra
2) install CMake and Ninja
$ cd ~/clang-llvm
$ git clone https://github.com/martine/ninja.git
$ cd ninja
$ git checkout release
$ ./bootstrap.py
$ sudo cp ninja /usr/bin/
$ cd ~/clang-llvm
$ git clone git://cmake.org/stage/cmake.git
$ cd cmake
$ git checkout next
$ ./bootstrap
$ make
$ sudo make install
3)compile ninja
$ cd ~/clang-llvm
$ mkdir build && cd build
$ cmake -G Ninja ../llvm -DLLVM_BUILD_TESTS=ON # Enable tests; default is off.
$ ninja
$ ninja install
4)config clang
$ cd ~/clang-llvm/build
$ ccmake ../llvm
after that , I get into the advanced mode (by press t)
CMAKE_CXX_COMPILER:*I change it to clang++*
CMAKE_C_COMPILER:*I change it to clang*
LLVM_ENABLE_EH and LLVM_ENABLE_RTTI: *I change it from OFF to ON*
and then I press c to configure. error happens.ERROR is :
**CMake Error at cmake/modules/HandleLLVMOptions.cmake:43 (message):
Host Clang must be able to find libstdc++4.7 or newer!
Call Stack (most recent call first):
CMakeLists.txt:358 (include)**
Any ideas?
Thanks
using homebrew apxs from homebrew apache httpd24 fails with libtool: compile: unable to infer tagged configuration
$ apxs -i -c -Wc,"-arch x86_64" -Wl,"-arch x86_64 " mod_uwsgi.c
/usr/share/apr-1/build-1/libtool --silent --mode=compile cc -prefer-pic -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/Cellar/httpd24/2.4.3/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -arch x86_64 -c -o mod_uwsgi.lo mod_uwsgi.c && touch mod_uwsgi.slo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
apxs:Error: Command failed with rc=65536
.
What environment must I export to have libtool not complain about tag?
after digging through the source I found that if LTFLAGS is set to --tag=cc things work.
$ LTFLAGS=--tag=cc apxs -i -c mod_uwsgi.c