Silabs cp2102 driver problem
- by Zxy
I downloaded appropriate driver from its own site, unzipped it and then tried to install it. But:
root@ghostrider:/home/zero/Downloads# tar xvf cp210x-3.1.0.tar.gz
cp210x-3.1.0/
cp210x-3.1.0/COPYING
cp210x-3.1.0/cp210x/
cp210x-3.1.0/cp210x-3.1.0.spec
cp210x-3.1.0/cp210x/.rpmmacros
cp210x-3.1.0/cp210x/configure
cp210x-3.1.0/cp210x/cp210x.c
cp210x-3.1.0/cp210x/cp210x.h
cp210x-3.1.0/cp210x/cp210xuniversal.c
cp210x-3.1.0/cp210x/cp210xuniversal.h
cp210x-3.1.0/cp210x/installmod
cp210x-3.1.0/cp210x/Makefile24
cp210x-3.1.0/cp210x/Makefile26
cp210x-3.1.0/cp210x/rpmmacros24
cp210x-3.1.0/cp210x/rpmmacros26
cp210x-3.1.0/cp210x/Rules.make
cp210x-3.1.0/INSTALL
cp210x-3.1.0/makerpm
cp210x-3.1.0/PACKAGE-LIST
cp210x-3.1.0/README
cp210x-3.1.0/RELEASE-NOTES
cp210x-3.1.0/REPORTING-BUGS
cp210x-3.1.0/rpm/
cp210x-3.1.0/rpm/brp-java-repack-jars
cp210x-3.1.0/rpm/brp-python-bytecompile
cp210x-3.1.0/rpm/check-rpaths
cp210x-3.1.0/rpm/check-rpaths-worker
root@ghostrider:/home/zero/Downloads# cd cp210x-3.1.0
root@ghostrider:/home/zero/Downloads/cp210x-3.1.0# ls
COPYING cp210x-3.1.0.spec makerpm README REPORTING-BUGS
cp210x INSTALL PACKAGE-LIST RELEASE-NOTES rpm
root@ghostrider:/home/zero/Downloads/cp210x-3.1.0# run ./makerpm
No command 'run' found, did you mean:
Command 'zrun' from package 'moreutils' (universe)
Command 'runq' from package 'exim4-daemon-heavy' (main)
Command 'runq' from package 'exim4-daemon-light' (main)
Command 'runq' from package 'sendmail-bin' (universe)
Command 'grun' from package 'grun' (universe)
Command 'qrun' from package 'torque-client' (universe)
Command 'qrun' from package 'torque-client-x11' (universe)
Command 'lrun' from package 'lustre-utils' (universe)
Command 'rn' from package 'trn' (multiverse)
Command 'rn' from package 'trn4' (multiverse)
Command 'rup' from package 'rstat-client' (universe)
Command 'srun' from package 'slurm-llnl' (universe)
run: command not found
root@ghostrider:/home/zero/Downloads/cp210x-3.1.0# sudo ./makerpm
+ uname -r
+ kernel_release=3.2.0-25-generic-pae
+ pwd
+ current_dir=/home/zero/Downloads/cp210x-3.1.0
+ export current_dir
+ uname -r
+ KVER=3.2.0-25-generic-pae
+ echo 3.2.0-25-generic-pae
+ awk -F . -- { print $1 }
+ KVER1=3
+ echo 3.2.0-25-generic-pae
+ awk -F . -- { print $2 }
+ KVER2=2
+ sed -e s/3\.2\.//g
+ echo 3.2.0-25-generic-pae
+ KVER3=0-25-generic-pae
+ [ -f /root/.rpmmacros ]
+ echo 2
2
+ [ 2 == 4 ]
./makerpm: 25: [: 2: unexpected operator
+ echo 0-25-generic-pae
0-25-generic-pae
+ [ 0-25-generic-pae -gt 15 ]
./makerpm: 29: [: Illegal number: 0-25-generic-pae
+ cp /home/zero/Downloads/cp210x-3.1.0/cp210x/rpmmacros24 /root/.rpmmacros
+ d=/var/tmp/silabs
+ [ ! -d /var/tmp/silabs ]
+ mkdir /var/tmp/silabs
+ cd /var/tmp/silabs
+ r=/var/tmp/silabs/rpmbuild
+ o=cp210x-3.1.0
+ s=/var/tmp/silabs/rpmbuild/SOURCES
+ spec=cp210x-3.1.0.spec
+ rm -rf /var/tmp/silabs/rpmbuild
+ mkdir rpmbuild
+ mkdir rpmbuild/SOURCES
+ mkdir rpmbuild/SRPMS
+ mkdir rpmbuild/SPECS
+ mkdir rpmbuild/BUILD
+ mkdir rpmbuild/RPMS
+ cd /var/tmp/silabs/rpmbuild/SOURCES
+ rm -rf cp210x-3.1.0
+ mkdir cp210x-3.1.0
+ cp -r /home/zero/Downloads/cp210x-3.1.0/cp210x/Makefile24 /home/zero/Downloads/cp210x-3.1.0/cp210x/Makefile26 /home/zero/Downloads/cp210x- 3.1.0/cp210x/Rules.make /home/zero/Downloads/cp210x-3.1.0/cp210x/configure /home/zero/Downloads/cp210x-3.1.0/cp210x/cp210x.c /home/zero/Downloads/cp210x- 3.1.0/cp210x/cp210x.h /home/zero/Downloads/cp210x-3.1.0/cp210x/cp210xuniversal.c /home/zero/Downloads/cp210x-3.1.0/cp210x/cp210xuniversal.h /home/zero/Downloads/cp210x- 3.1.0/cp210x/installmod /home/zero/Downloads/cp210x-3.1.0/cp210x/rpmmacros24 /home/zero/Downloads/cp210x-3.1.0/cp210x/rpmmacros26 cp210x-3.1.0
+ echo 2
2
+ [ 2 == 4 ]
./makerpm: 64: [: 2: unexpected operator
+ echo 0-25-generic-pae
0-25-generic-pae
+ [ 0-25-generic-pae -gt 15 ]
./makerpm: 68: [: Illegal number: 0-25-generic-pae
+ cp /home/zero/Downloads/cp210x-3.1.0/cp210x/.rpmmacros24 cp210x-3.1.0/.rpmmacros
cp: cannot stat `/home/zero/Downloads/cp210x-3.1.0/cp210x/.rpmmacros24': No such file or directory
+ MyCopy=0
+ rm -f cp210x-3.1.0.tar
+ rm -f cp210x-3.1.0.tar.gz
+ tar -cf cp210x-3.1.0.tar cp210x-3.1.0
+ gzip cp210x-3.1.0.tar
+ cp /home/zero/Downloads/cp210x-3.1.0/cp210x-3.1.0.spec /var/tmp/silabs/rpmbuild/SPECS
+ rpmbuild -ba /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.1.0.spec
./makerpm: 121: ./makerpm: rpmbuild: not found
+ [ -f /root/.rpmmacros.cp210x ]
How may I solve my problem?
Thanks