ask cannot install usb-modeswitch

Post Reply
Message
Author
east_spirit
Posts: 9
Joined: Fri 25 Oct 2013, 17:28

ask cannot install usb-modeswitch

#1 Post by east_spirit »

I use lucid puppy 5.2 and cannot install usmodeswitch,help me,thanks

# mkdir usb-modeswitch
# cd usb-modeswitch
# tar jxvf usb-modeswitch-2.0.1.tar.bz2
tar: Record size = 8 blocks
usb-modeswitch-2.0.1/
usb-modeswitch-2.0.1/usb_modeswitch.1
usb-modeswitch-2.0.1/README
usb-modeswitch-2.0.1/usb_modeswitch.c
usb-modeswitch-2.0.1/usb_modeswitch_dispatcher.1
usb-modeswitch-2.0.1/ChangeLog
usb-modeswitch-2.0.1/usb_modeswitch.h
usb-modeswitch-2.0.1/Makefile
usb-modeswitch-2.0.1/usb_modeswitch@.service
usb-modeswitch-2.0.1/COPYING
usb-modeswitch-2.0.1/usb-modeswitch-upstart.conf
usb-modeswitch-2.0.1/jim/
usb-modeswitch-2.0.1/jim/jimregexp.c
usb-modeswitch-2.0.1/jim/jim-load.c
usb-modeswitch-2.0.1/jim/tclcompat.tcl
usb-modeswitch-2.0.1/jim/Makefile.in
usb-modeswitch-2.0.1/jim/rlprompt.tcl
usb-modeswitch-2.0.1/jim/jim-package.c
usb-modeswitch-2.0.1/jim/autosetup/
usb-modeswitch-2.0.1/jim/autosetup/find-tclsh
usb-modeswitch-2.0.1/jim/autosetup/system.tcl
usb-modeswitch-2.0.1/jim/autosetup/cc-shared.tcl
usb-modeswitch-2.0.1/jim/autosetup/README.autosetup
usb-modeswitch-2.0.1/jim/autosetup/autosetup
usb-modeswitch-2.0.1/jim/autosetup/LICENSE
usb-modeswitch-2.0.1/jim/autosetup/config.guess
usb-modeswitch-2.0.1/jim/autosetup/cc-lib.tcl
usb-modeswitch-2.0.1/jim/autosetup/config.sub
usb-modeswitch-2.0.1/jim/autosetup/test-tclsh
usb-modeswitch-2.0.1/jim/autosetup/cc.tcl
usb-modeswitch-2.0.1/jim/README
usb-modeswitch-2.0.1/jim/jim-eventloop.c
usb-modeswitch-2.0.1/jim/make-bootstrap-jim
usb-modeswitch-2.0.1/jim/utf8.c
usb-modeswitch-2.0.1/jim/bootstrap.tcl
usb-modeswitch-2.0.1/jim/jim-subcmd.c
usb-modeswitch-2.0.1/jim/LICENSE
usb-modeswitch-2.0.1/jim/README.usb_modeswitch
usb-modeswitch-2.0.1/jim/jimautoconf.h.in
usb-modeswitch-2.0.1/jim/regtest.tcl
usb-modeswitch-2.0.1/jim/make-index
usb-modeswitch-2.0.1/jim/linenoise.c
usb-modeswitch-2.0.1/jim/jim-array.c
usb-modeswitch-2.0.1/jim/make-load-static-exts.tcl
usb-modeswitch-2.0.1/jim/parse-unidata.tcl
usb-modeswitch-2.0.1/jim/AUTHORS
usb-modeswitch-2.0.1/jim/make-c-ext.tcl
usb-modeswitch-2.0.1/jim/auto.def
usb-modeswitch-2.0.1/jim/jim-interactive.c
usb-modeswitch-2.0.1/jim/configure.ac
usb-modeswitch-2.0.1/jim/jim-nvp.c
usb-modeswitch-2.0.1/jim/linenoise.h
usb-modeswitch-2.0.1/jim/jim-file.c
usb-modeswitch-2.0.1/jim/glob.tcl
usb-modeswitch-2.0.1/jim/jim-exec.c
usb-modeswitch-2.0.1/jim/jim-nvp.h
usb-modeswitch-2.0.1/jim/jimsh.c
usb-modeswitch-2.0.1/jim/jim.c
usb-modeswitch-2.0.1/jim/configure
usb-modeswitch-2.0.1/jim/jim-subcmd.h
usb-modeswitch-2.0.1/jim/jim-readdir.c
usb-modeswitch-2.0.1/jim/jim.h
usb-modeswitch-2.0.1/jim/jim-config.h.in
usb-modeswitch-2.0.1/jim/jim-clock.c
usb-modeswitch-2.0.1/jim/jim-regexp.c
usb-modeswitch-2.0.1/jim/tree.tcl
usb-modeswitch-2.0.1/jim/freebsd/
usb-modeswitch-2.0.1/jim/freebsd/duane.txt
usb-modeswitch-2.0.1/jim/freebsd/andrew.txt
usb-modeswitch-2.0.1/jim/freebsd/clemens.txt
usb-modeswitch-2.0.1/jim/freebsd/pat.txt
usb-modeswitch-2.0.1/jim/freebsd/salvatore.txt
usb-modeswitch-2.0.1/jim/freebsd/uwe.txt
usb-modeswitch-2.0.1/jim/freebsd/oharboe.txt
usb-modeswitch-2.0.1/jim/jim-posix.c
usb-modeswitch-2.0.1/jim/jim-aio.c
usb-modeswitch-2.0.1/jim/initjimsh.tcl
usb-modeswitch-2.0.1/jim/jim-signal.h
usb-modeswitch-2.0.1/jim/jim-signal.c
usb-modeswitch-2.0.1/jim/tcl.license.terms
usb-modeswitch-2.0.1/jim/jim-readline.c
usb-modeswitch-2.0.1/jim/jim-sdl.c
usb-modeswitch-2.0.1/jim/stdlib.tcl
usb-modeswitch-2.0.1/jim/jim-format.c
usb-modeswitch-2.0.1/jim/jimregexp.h
usb-modeswitch-2.0.1/jim/jim-win32compat.h
usb-modeswitch-2.0.1/jim/jim-eventloop.h
usb-modeswitch-2.0.1/jim/utf8.h
usb-modeswitch-2.0.1/jim/jim-pack.c
usb-modeswitch-2.0.1/jim/jim-syslog.c
usb-modeswitch-2.0.1/usb_modeswitch.tcl
usb-modeswitch-2.0.1/usb_modeswitch.sh
usb-modeswitch-2.0.1/usb_modeswitch.conf
usb-modeswitch-2.0.1/dispatcher.c
usb-modeswitch-2.0.1/make_string.tcl
# cd usb-modeswitch-2.0.1
# ./configure
bash: ./configure: No such file or directory
# install
install: missing file operand
Try `install --help' for more information.
# cd usb-modeswitch-2.0.1
bash: cd: usb-modeswitch-2.0.1: No such file or directory
# make install
bash: make: command not found
# install
install: missing file operand
Try `install --help' for more information.

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#2 Post by Ted Dog »

usb-modeswitch already exist in most puppies by default, and has been since the early days, but it may not be current, however the textfile that contains the updated 'switches' would be available to pass the newer stuff on the command line using the older never changed part of usb-modeswitch, if you want to save compiling

However, looks like you are missing the devx squashfile, and/or did not use the load-as-sfs method. DEVELOPMENT TOOLS ARE NOT INCLUDED BY DEFAULT

Check where you got the ISO file and look for the same named dev.sfs file, if you did not download it already.

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#3 Post by Ted Dog »

Usb-modeswitch is a good easy to compile code, so not bad if this is your learning to compile.

standard 3 steps:

./configure
make
make install

install as a sinlge command is not useful in this case, make install will fully install the software when ran in this case. but you need to run a single 'make' before make install.

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#4 Post by watchdog »

Load the lupu_devx_520.sfs:

http://distro.ibiblio.org/puppylinux/pu ... vx_520.sfs

If you haven't load-sfs-on-the-fly use bootmanager to load it at boot. Move the devx sfs where is your save file and then type in console:

Code: Select all

bootmanager
Choose to load the sfs at boot. Reboot. You should have a frugal install only to compile. So I suggest to you to copy the save file with another name only to compile. When you have loaded the devx sfs, try:

Code: Select all

cd /mnt/home
tar xjvf /path-to/usb-modeswitch-2.0.1.tar.bz2
cd usb-modeswitch-2.0.1
make
new2dir make install
The same procedure without "make" should be done to build the usb-modeswitch-2.0.1-data-20130807.i486.pet. Then install both the pets.

EDIT: I did the job for all users:

http://www.murga-linux.com/puppy/viewto ... 851#732851

Post Reply