Aimed at the longitudinal vibration of rope hoisting system with time-varying length, the governing equations are developed employing the Hamilton’s principle considering mutual influence of the rigid motion and deformation of rope. The Galerkin’s method is used to discretize the governing equations. In the mean time, The motions of elevator hoisting system were illustrated to evaluate the proposed mathematical models. The results of simulation show that the modeling methods can represent the longitudinal vibration of rope hoisting system with time-varying length in the paper. The governing equations derived can provide guidelines for further study on flexible hoisting system.